this looks like was solved by adding more about smtpd: smtpd_sasl_auth_enable = yes add: smtpd_sasl_authenticated_header = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = cyrus
and now people can't login in smtp when I remove this line: smtp_sasl_password_maps = hash:/etc/postfix/mailpasswd it was suspicous because write in the logs: warning: hash:/etc/postfix/mailpasswd lookup error for "u...@domain.ru" also I got trouble with fiew domains, for instance one of them MS Exchange based mail server, and mails everytime goes deferr in spool: Jun 16 13:49:05 mail postfix/smtpd[12125]: 25549758AA1: client=localhost[127.0.0.1] Jun 16 13:49:10 mail postfix/cleanup[12128]: 25549758AA1: message-id=<20150616034905.25549758...@mail.domain.ru> Jun 16 13:49:10 mail postfix/qmgr[12092]: 25549758AA1: from=<u...@domain.ru>, size=309, nrcpt=1 (queue active) Jun 16 13:49:10 mail postfix/error[12151]: 25549758AA1: to=<testnoma...@primtep.ru>, relay=none, delay=16, delays=16/0/0/0.06, dsn=4.3.0, status=deferred (delivery temporarily suspended: local data error while talking to mail.primtep.ru[194.213.96.170]) I sent this mail just from telnet. On 6/15/15, Noel Jones <njo...@megan.vbhcs.org> wrote: > On 6/14/2015 10:55 PM, basteon wrote: >> hi there, >> I got another trouble with sending mails when I use sasl with postfix. >> >> For instance, use send message inside server, but not put it into imap >> folder and keep it in queue. >> Jun 15 13:15:51 mail postfix/smtpd[1732]: BD4FA758A81: >> client=unknown[192.168.1.84] >> Jun 15 13:15:51 mail postfix/cleanup[1725]: BD4FA758A81: >> message-id=<a29d7942-f7ba-45cd-ae60-827eaf8df...@domain.ru> >> Jun 15 13:15:51 mail postfix/qmgr[1121]: BD4FA758A81: >> from=<a...@domain.ru>, size=106641, nrcpt=2 (queue active) >> Jun 15 13:15:52 mail postfix/lmtp[1726]: BD4FA758A81: >> to=<mi...@domain.ru>, relay=mail.domain.ru[/var/lib/imap/socket/lmtp], >> delay=0.32, delays=0.13/0/0/0.19, dsn=2.1.5, status=sent (250 2.1.5 >> Ok) > > The log lines above don't show any problem at all. The status=sent > indicates that postfix delivered mail successfully to your lmtp imap > server. Is there more logging that shows an error? > >> Jun 15 13:22:14 mail postfix/qmgr[1863]: BD4FA758A81: >> from=<a...@domain.ru>, size=106641, nrcpt=2 (queue active) > > This shows a different queue manager process. Apparently postfix > was reloaded, but that's not shown in the logs you shared. > >> >> Several users witch can't send not login in sasl like this: >> Jun 15 13:24:04 mail imap[1884]: badlogin: [192.168.1.65] >> plaintext mi...@domain.ru SASL(-13): authentication failure: checkpass >> failed >> Jun 15 13:24:07 mail imap[1887]: badlogin: [192.168.1.65] >> plaintext mi...@domain.ru SASL(-13): authentication failure: checkpass >> failed >> and many other logining well, but can't send the message. > > Unrelated "imap" logging. This isn't postfix, although it may > indicate a problem with your authentication back end. > > >> >> and queue start working just after I moving out this lines: >> smtp_sasl_auth_enable = yes >> smtp_sasl_security_options = noanonymous >> smtp_sasl_type = cyrus >> smtp_sasl_mechanism_filter = login >> smtp_sender_dependent_authentication = yes > > The above "smtp_" lines have to do with postfix sending mail out. > > >> >> smtpd_sasl_auth_enable = yes > > And this enables AUTH for postfix receiving mail. > >> >> and if I just restart the server, not remove those lines from main.cf, >> queue not start working. >> also I've tryed >> postsuper -d QUEUEID >> this wont help too. > > It's not clear what you mean by "this won't help". Please explain > what isn't working as expected, and show the commands and response. > > If you need more help, you'll need to show us "postconf -n" and logs > demonstrating the problem, and explain what isn't working as > expected. Please also see: > http://www.postfix.org/DEBUG_README.html#mail > > > > -- Noel Jones >