PDA

View Full Version : Postfix SMTP-AUTH Issue


max0r
9th May 2008, 14:37
I followed the tutorial called “Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)”. I did it on Fedora 8.

Everything went fine, with one or two minor issues that I solve quickly; except one annoying problem that I have no idea how to solve it.

The problem is that only the first account ever created, for each virtual e-mail domain, is capable of using the SMTP-AUTH feature, the next added account keeps asking for password, and the “maillog” shows:

-May 9 11:12:28 punk postfix/smtpd[29706]: warning: unknown[192.168.111.254]: SASL LOGIN authentication failed “(Obs: The password is correct, I’ve checked that, in IMAP, for example)”

-May 9 11:12:28 punk postfix/smtpd[29706]: lost connection after AUTH from unknown[192.168.111.254]


In "messages" log file:

May 9 17:00:31 punk saslauthd[2497]: do_auth : auth failure: [user=<username>(without realm)] [service=smtp] [realm=<realmname>] [mech=pam] [reason=PAM auth error]

With “My Outgoing server (SMTP) requires authentication” (@ Outlook) turned off, the sending is automatically rejected, as expected.

With all the first accounts ever created, per domain, everything works fine (with internal and external delivers).

EDIT: Only the first account ever added works. The others, with no visible reason, where using the username/password of that account for smtp-auth, when sending e-mails. They dont work with their credentials.

Does Postfix/SMTP-AUTH has some kind of "Max Connections" per IP protection?

Thanks in Advance! :)

falko
10th May 2008, 17:40
That's the first time I hear of such a problem. Have you compared your configuration with the one from the tutorial to rule out typos?

max0r
13th May 2008, 18:12
Hello Falko, thanks for your time.

I did what you told and i found the following error on configuration:

in /usr/lib/sasl2/smtpd.conf

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket

i forgot to change the pwcheck_method, so i did it and switched it to "authdaemon"

Now i cannot send from any account (but i do receive very well, using IMAP), and i got the following error message:

postfix/smtpd[20338]: warning: SASL authentication problem: unknown password verifier
postfix/smtpd[20338]: warning: unknown[192.168.111.119]: SASL LOGIN authentication failed
postfix/smtpd[20338]: lost connection after AUTH from unknown[192.168.111.119]

Any help would be appreciated!

max0r
13th May 2008, 18:41
Solved! It was a simple problem after all!

I had to restart "Postfix" and "saslauth" in the following order

/etc/init.d/postfix stop
/etc/init.d/saslauth restart
/etc/init.d/postfix start

:D