I’ve been trying to get my mail working and I think POP3 is working properly (I can receive emails), but SMTP isn’t - I try to send emails and I get “Error: authentication failed: authentication failure” in Mailbird (My mail client).
I have the username set to:
name.domain (As per Virtualmin’s instructions)
and port set to 465 with STARTTLS
What other information can I provide to help figure out this issue? Log files to look at, configs to include, etc.
We’d probably want to see the relevant entries from mail.log or the journal for postfix and saslauthd units.
When you say “per Virtualmin’s instructions” do you mean the username as it appears on the Edit Users page under the IMAP/POP3/FTP Login column? (That shows actual usernames, there may be multiple names for the same user, depending on configuration and age of system, and all should work assuming they’re allowed to send mail.)
You can check to be sure the saslauthd service is running, as well as Postfix (though if Postfix weren’t running, you wouldn’t receive new mail).
Well, SMTP authentication is provided the saslauthd. So, that service needs to be running.
Also, only SASL PLAIN is supported (none of the SASL hash types overlap with the hash types available for Linux users in /etc/shadow), though the client should be able to figure that out automatically, I think, since the server reports what’s accepted.
So…did you remove saslauthd and reinstall it? Or was Virtualmin installed without the install script?
You’re missing the options that make any kind of username with a domain extension work, I believe (as far as I know, the -r option is still required).
Also, if your Postfix is running chrooted (which is the default in some Ubuntu versions, I believe), you’d need to specify a different path within the chroot. That should be handled automatically by the install script (or virtualmin-config, actually).
Check /etc/postfix/master. Are the smtp and submission services running in a chroot? (Look for a y in the chroot column.)
If they aren’t (a n in that column), then you need to just add -r to the OPTIONS line.
If they are (y in the chroot column), I believe you’d want:
If you uninstalled and then reinstalled any Virtualmin dependencies, it’s possible you’ve replaced the config files with things that won’t have our modifications…which would break them. Or, if you installed without using the install script, you’re going to be missing a ton of stuff and lots of things will act weird.
The gist of it is that your system has chrooted Postfix daemons (which is not true of all systems! we don’t change this, we use whatever the OS chooses, which is chroot on some distros and not chrooted on others), and you have the correct -r option. OP is missing the -r option, and maybe the chroot stuff.
Some distros need PARAMS set, I don’t remember which is which, but I’m gonna get you just need OPTIONS, since that’s all that it’s your config pasted above.
You also need START=yes
You definitely have a default config file, which means one of three things:
Virtualmin install script wasn’t used for installation.
saslauthd package was removed and reinstalled (probably including a --purge, since a config file should survive that in most cases).
The configuration portion of the install didn’t complete. It looks like Postfix did get configured (since you have sasl and TLS enabled, and I think we do that), and that happens quite near the end of the configure step, it would have had to have failed very near the end. So…maybe nothing else is broken.
I don’t know if it matters, but a friend of mine whose domain I host said:
IDK if this helps but I just realized when I logged into webmail on the new server there was no “inbox” link. Just links to my folders (which were empty).
In regards to when I transferred his domain from our old server to this new one.