![]() |
SMTP SASL authentication
Hello,
I'm running postfix on FC14. Followed Falko's brilliant-as-always guide to do this. I setup 3 virtual users. I'll call them a@domain, b@domain, c@domain. I inserted them into the user table in that order, and used ENCRYPT command on the password field for all. I am using my cellphone to connect to the accounts. My phone managed to connect to both incoming (IMAP) and outgoing (SMTP, duh!) servers with a@domain's credentials. However, for b and c, it only authenticated the incoming, but responds saying User Authentication failed for outgoing. If I put a's credentials for outgoing, it works. This is also true in Thunderbird. I have to use a's credentials to login to SMTP. Maillog shows the following: Using b Code:
Mar 22 23:44:21 server postfix/smtpd[6560]: warning: unknown[192.168.1.1]: SASL LOGIN authentication failed: authentication failureCode:
Mar 22 23:48:56 server postfix/qmgr[4119]: 2F8522C1F6F: from=<b@domain>, size=1113, nrcpt=1 (queue active) |
That's strange. Do b and c's password contain any special characters?
What's the output of Code:
getenforce |
SELINUX is disabled, and passwords are alpha-numeric only.
|
Do you have the same problem for further users as well? Does it maybe have anything to do with the password length?
|
The password for user a is the same as the password for user c. Right now I really only have 3 users on my server. User b has a different password from a and c.
Since a and c have the same password, however, I don't know why it would work for a and not c. |
sorry double post
|
This is interesting, though. I turned on level2 debugging in authdaemonrc:
Syslog Code:
Mar 24 10:00:20 server saslauthd[1906]: do_auth : auth failure: [user=c] [service=smtp] [realm=domain] [mech=pam] [reason=PAM auth error]Code:
Mar 24 10:06:34 server imapd-ssl: Connection, ip=[::ffff:174.252.166.49] |
NOW I'M MAD!! The server is not accepting connections from the outside for mail delivery... I can send to anyone, receive e-mails from user a>c, b>a, etc. But mails coming from say, Gmail, are not being processed and I can't find any logs that will let me know where the connection is dropping... I've tried it with firewall off, so it's not that.
|
Fixed the not receiving from outside... I forgot that I changed smtp in main.cf file to listen at port 465... guess what? Port 25 is still needed for mail exchange from outside world. I uncommented the smtps line in main.cf to allow port 465 connections.
Reloaded postfix and now I can receive again. Now, if I could only get this authenctication thing figured out... I feel like I'm writing a novel here... lol |
| All times are GMT +2. The time now is 02:05. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.