I have several VPS with Webmin/Virtualmin and they work fine. But on one i have error when trying to send mail from outlook or other mail clients. I`m receiving mails without problems but i have problem when i try to send mails from the mail client software.
For example i get this error:
Your message did not reach some or all of the intended recipients.
Sent: 03.03.2011 10:45
The following recipient(s) cannot be reached:
'email@example.com' on 03.03.2011 10:45
554 5.7.1 <firstname.lastname@example.org>: Relay access denied
( The mail address is hidden for protection of spam email@example.com is not real mail. )
I have try different mail accounts, different domains, different e-mail clients and different ISP. All the time i get the same message so i think is problem with the VPS i have. The strange thing is that i CAN send mails without problem from SquirrelMail ( i have installed ) and from usermin without problem. I have just problems when sending from mail client.
Any idea what can be the problem ?!
A common cause of the error you’re seeing is due to the email client not being configured to authenticate outgoing SMTP messages.
If it doesn’t authenticate those messages, Postfix doesn’t realize that you’re a legitimate user, and will deliver a relay access denied error.
Outlook doesn’t do that by default, you’d need to go into your account settings, find the Outgoing SMTP section, and then set it up to authenticate for outgoing SMTP.
I have done and try that.
Get the same error :(.
Any other idea ?
just want to send update about my problem.
If i set authenticate for outgoing SMTP in outlook it ask me for passwords like my password if not correct i have recheck my pass several times and is ok. The strange this is i turn off authenticate for outgoing SMTP i receive mails without problem and my pass is ok.
I think several days ago this was not happening just did not send mail and no password problem and i did not change anything on my VPS.
ANY HELP ?!
What I would do is enable Outgoing SMTP authentication again, and then look in the mail logs for any errors that may help you figure out what’s going on.
The mail logs are in either /var/log/maillog, or /var/log/mail.log, depending on your distro.
here is what i get when setup authenticate for outgoing SMTP in outlook:
Mar 6 14:58:12 vps dovecot: pop3-login: Login: firstname.lastname@example.org, method=PLAIN, rip=::ffff:xx.xx.2.74, lip=::ffff:xxx.xx.127.87
Mar 6 14:58:14 vps dovecot: POP3(email@example.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 6 14:58:15 vps postfix/smtpd: connect from unknown[xx.xx.2.74]
Mar 6 14:58:17 vps postfix/smtpd: warning: unknown[xx.xx.2.74]: SASL LOGIN authentication failed: authentication failure
Mar 6 14:58:18 vps postfix/smtpd: lost connection after AUTH from unknown[xx.xx.2.74]
Mar 6 14:58:18 vps postfix/smtpd: disconnect from unknown[xx.xx.2.74]
Mar 6 14:58:20 vps postfix/smtpd: connect from unknown[xx.xx.2.74]
Mar 6 14:58:23 vps postfix/smtpd: warning: unknown[xx.xx.2.74]: SASL LOGIN authentication failed: authentication failure
Mar 6 14:58:23 vps postfix/smtpd: lost connection after AUTH from unknown[xx.xx.2.74]
Mar 6 14:58:23 vps postfix/smtpd: disconnect from unknown[xx.xx.2.74]
I do not know why is saying like i do not have the correct password but i do. I log over SquirrelMail and usermin without problem with the same password.
Any idea what can be the problem ?!
Is saslauthd running with the -r parameter?
You can determine that by running this command:
ps auxw | grep saslauth
Yeah, that doesn’t appear to be running with the -r parameter, which can cause the problems you’re seeing.
What does your /etc/sysconfig/saslauthd file look like?
Here is it:
[root@vps ~]# nano /etc/sysconfig/saslauthd
Directory in which to place saslauthd’s listening socket, pid file, and so
on. This directory must already exist.
Mechanism to use when checking passwords. Run “saslauthd -v” to get a list
of which mechanism your installation was compiled with the ablity to use.
Additional flags to pass to saslauthd on the command line. See saslauthd(8)
for the list of accepted flags.
Okay, at the bottom where it says:
Change that to read:
FLAGS="-n 2 -r"
Then restart saslauthd:
After that, are you able to send email?