Mobile app version of vmapp.org
Login or Join
Gretchen104

: Cannot logon to POP server on my VPS or recieve emails I recently purchased an unmanaged VPS to host my business websites, however I am struggling to get the email accounts working as I have

@Gretchen104

Posted in: #Email #Vps #Webmin

I recently purchased an unmanaged VPS to host my business websites, however I am struggling to get the email accounts working as I have only ever had experience with shared hosting.

The VPS is running CentOS and I have Webmin/Virtualmin installed. I have added my domain, which is lyke.org.uk, and that is working OK. However, when I've added a user and tried to access their email account using Apple Mail, I've been able to establish a SMTP connection but I've not been able to login using POP.

Furthermore, I've set up squirrelmail and I can send an email to any email address from there but I haven't recieved any that I have sent to that email address from other accounts.

I would very much appreciate any help or suggestions as I am completely new to VPS and web hosting without Plesk or cPanel.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen104

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pierce454

I should have posted this answer a while ago as thanks to @closetnoc I actually managed to get the mail server working correctly the same night I posted this question. As memory serves, the following was the solution to my issue.

I had changed the username format for the mail usernames under 'System Settings'->'Server Templates'->'Mail for domain' to be username@domain instead of username.domain which was the root of the login issue. The saslauthd daemon that is responsible for sending email securely must be running with the -r flag to accept usernames in this format. For CentOS, which is what my VPS is running, the method to make saslauthd run with the -r flag by default can be found on the following forum topic: www.virtualmin.com/node/15570
It took me more time to resolve this on my server as I had changed other settings in Webmin in trying to get it to work. The moral is that if you use Virtualmin, you should very rarely need to go into Webmin and alter settings (especially for mail) as this can often cause more issues and is unnecessary.

One other complication I had was that the domain was also being hosted on a shared hosting server and even though the domain was pointing to the name servers of the VPS, the shared hosting server still had the DNS records enabled for the domain. This caused a conflict when I tried to send emails from other domains that were also hosted on the shared hosting server and meant that the emails were not being delivered. I simply disabled the domain in Plesk on my shared hosting server to resolve this.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme