Outlook error when sending mail

12 posts / 0 new
Last post
#1 Thu, 03/03/2011 - 03:55
sumi

Outlook error when sending mail

Hello,

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.

  Subject:  test
  Sent: 03.03.2011 10:45

The following recipient(s) cannot be reached:

  'name@xxx.com' on 03.03.2011 10:45

554 5.7.1 name@xxx.com: Relay access denied

( The mail address is hidden for protection of spam name@xxx.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 ?!

Thanks

Thu, 03/03/2011 - 09:24
andreychek

Howdy,

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.

-Eric

Thu, 03/03/2011 - 16:50
sumi

Hello,

I have done and try that. Get the same error :(.

Any other idea ?

Thu, 03/03/2011 - 18:36
sumi

Hello,

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 ?!

Thu, 03/03/2011 - 18:45
andreychek

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.

-Eric

Sun, 03/06/2011 - 05:57
sumi

Hello,

here is what i get when setup authenticate for outgoing SMTP in outlook:

Mar 6 14:58:12 vps dovecot: pop3-login: Login: user=, method=PLAIN, rip=::ffff:xx.xx.2.74, lip=::ffff:xxx.xx.127.87
Mar 6 14:58:14 vps dovecot: POP3(test@motoparts.com.mk): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 6 14:58:15 vps postfix/smtpd[30371]: connect from unknown[xx.xx.2.74]
Mar 6 14:58:17 vps postfix/smtpd[30371]: warning: unknown[xx.xx.2.74]: SASL LOGIN authentication failed: authentication failure
Mar 6 14:58:18 vps postfix/smtpd[30371]: lost connection after AUTH from unknown[xx.xx.2.74]
Mar 6 14:58:18 vps postfix/smtpd[30371]: disconnect from unknown[xx.xx.2.74]
Mar 6 14:58:20 vps postfix/smtpd[30371]: connect from unknown[xx.xx.2.74]
Mar 6 14:58:23 vps postfix/smtpd[30371]: warning: unknown[xx.xx.2.74]: SASL LOGIN authentication failed: authentication failure
Mar 6 14:58:23 vps postfix/smtpd[30371]: lost connection after AUTH from unknown[xx.xx.2.74]
Mar 6 14:58:23 vps postfix/smtpd[30371]: 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 ?!

Sun, 03/06/2011 - 15:41
andreychek

Is saslauthd running with the -r parameter?

You can determine that by running this command:

ps auxw | grep saslauth

Sun, 03/06/2011 - 17:47
sumi

Here are the results:

[root@vps ~]# ps auxw | grep saslauth
root     10091  0.0  0.1   5720  1092 ?        Ss   Mar04   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
root     10098  0.0  0.1   5832  1088 ?        S    Mar04   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
root     26198  0.0  0.0   3080   708 pts/0    R+   02:53   0:00 grep saslauth
Sun, 03/06/2011 - 17:53
andreychek

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?

-Eric

Tue, 03/08/2011 - 02:48
sumi

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.
SOCKETDIR=/var/run/saslauthd

# 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.
MECH=pam

# Additional flags to pass to saslauthd on the command line.  See saslauthd(8)
# for the list of accepted flags.
FLAGS="-n 2"

Thanks!

Tue, 03/08/2011 - 09:03
andreychek

Okay, at the bottom where it says:

FLAGS="-n 2"

Change that to read:

FLAGS="-n 2 -r"

Then restart saslauthd:

/etc/init.d/saslauthd restart

After that, are you able to send email?

-Eric

Wed, 03/09/2011 - 18:30
sumi

IT WORKS!!! THANKS!

Topic locked