[Dovecot] Postfix and Dovecot SASL authentication error
ear All, I configured Postfix 2.3.3-2 on CentOS 5.2 using SASL Dovecot authentication put I am facing the problem to receive mails . My postconf -n result is: [root@mails ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/spool/mail mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mydomain = coreteamsolutions.in myhostname = mails.coreteamsolutions.in mynetworks = 192.168.1.0/24, 127.0.0.0/8 mynetworks_style = subnet myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot unknown_local_recipient_reject_code = 550
And my /var/log/maillog is: Aug 23 19:01:03 mails dovecot: Dovecot v1.0.rc15 starting up Aug 23 19:01:55 mails postfix/smtpd[3472]: warning: SASL: Connect to private/auth failed: No such file or directory Aug 23 19:01:55 mails postfix/smtpd[3472]: fatal: no SASL authentication mechanisms Aug 23 19:01:56 mails postfix/master[3407]: warning: process /usr/libexec/postfix/smtpd pid 3472 exit status 1 Aug 23 19:01:56 mails postfix/master[3407]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 23 19:02:56 mails postfix/smtpd[3507]: warning: SASL: Connect to private/auth failed: No such file or directory Aug 23 19:02:56 mails postfix/smtpd[3507]: fatal: no SASL authentication mechanisms Aug 23 19:02:57 mails postfix/master[3407]: warning: process /usr/libexec/postfix/smtpd pid 3507 exit status 1 Aug 23 19:02:57 mails postfix/master[3407]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 23 19:11:08 mails postfix/smtpd[3579]: warning: SASL: Connect to private/auth failed: No such file or directory Aug 23 19:11:08 mails postfix/smtpd[3579]: fatal: no SASL authentication mechanisms Aug 23 19:11:09 mails postfix/master[3407]: warning: process /usr/libexec/postfix/smtpd pid 3579 exit status 1 Aug 23 19:11:09 mails postfix/master[3407]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 23 19:12:09 mails postfix/smtpd[3582]: warning: SASL: Connect to private/auth failed: No such file or directory Aug 23 19:12:09 mails postfix/smtpd[3582]: fatal: no SASL authentication mechanisms Aug 23 19:12:10 mails postfix/master[3407]: warning: process /usr/libexec/postfix/smtpd pid 3582 exit status 1 Aug 23 19:12:10 mails postfix/master[3407]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
And our server 's fetchmail -vvv log is: [sharad@mails ~]$ fetchmail -vvv fetchmail: 6.3.6 querying coreteamsolutions.in (protocol POP3) at Sat 23 Aug 2008 07:13:41 PM IST: poll started Trying to connect to 66.7.148.25/110...connected. fetchmail: POP3< +OK Hello there. fetchmail: POP3> CAPA fetchmail: POP3< +OK Here's what I can do: fetchmail: POP3< STLS fetchmail: POP3< TOP fetchmail: POP3< USER fetchmail: POP3< LOGIN-DELAY 10 fetchmail: POP3< PIPELINING fetchmail: POP3< UIDL fetchmail: POP3< IMPLEMENTATION Courier Mail Server fetchmail: POP3< . fetchmail: POP3> USER sharad@coreteamsolutions.in fetchmail: POP3< +OK Password required. fetchmail: POP3> PASS * fetchmail: POP3< +OK logged in. fetchmail: selecting or re-polling default folder fetchmail: POP3> STAT fetchmail: POP3< +OK 1 805 fetchmail: POP3> LAST fetchmail: POP3< -ERR Invalid command. fetchmail: Invalid command. fetchmail: POP3> UIDL fetchmail: POP3< +OK fetchmail: POP3< 1 UID60-1217729843 fetchmail: 1 is unseen fetchmail: POP3< . 1 message for sharad@coreteamsolutions.in at coreteamsolutions.in (805 octets). fetchmail: POP3> LIST 1 fetchmail: POP3< +OK 1 805 fetchmail: POP3> TOP 1 99999999 fetchmail: POP3< +OK headers follow. reading message sharad@coreteamsolutions.in@coreteamsolutions.in:1 of 1 (805 octets) About to rewrite Return-Path: sharad@coreteamsolutions.in Rewritten version is Return-Path: sharad@coreteamsolutions.in
About to rewrite From: sharad@coreteamsolutions.in Rewritten version is From: sharad@coreteamsolutions.in
About to rewrite To: sharad@coreteamsolutions.in Rewritten version is To: sharad@coreteamsolutions.in
Trying to connect to 127.0.0.1/25...connected. fetchmail: smtp listener protocol error Trying to connect to 127.0.0.1/25...connected. fetchmail: smtp listener protocol error fetchmail: SMTP connect to localhost failed fetchmail: POP3> QUIT fetchmail: POP3< This is an e-mail message sent automatically by Microsoft Office Outlook's Account Manager while testing the settings for your POP3 account. fetchmail: SMTP transaction error while fetching from sharad@coreteamsolutions.in@coreteamsolutions.in and delivering to SMTP host localhost fetchmail: 6.3.6 querying coreteamsolutions.in (protocol POP3) at Sat 23 Aug 2008 07:13:56 PM IST: poll completed fetchmail: discarding new UID list fetchmail: Query status=10 (SMTP) fetchmail: Deleting fetchids file. fetchmail: normal termination, status 10 fetchmail: Deleting fetchids file.
please help me to rectify this problem.
Thanks and Regards,
-- Thanks and Regards,
Sharad Kanekar
Am 23.08.2008 16:00 schrieb sharad kanekar:
ear All, I configured Postfix 2.3.3-2 on CentOS 5.2 using SASL Dovecot authentication put I am facing the problem to receive mails . My postconf -n result is: [root@mails ~]# postconf -n … smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot
Looks good.
And my /var/log/maillog is: Aug 23 19:01:03 mails dovecot: Dovecot v1.0.rc15 starting up Aug 23 19:01:55 mails postfix/smtpd[3472]: warning: SASL: Connect to private/auth failed: No such file or directory ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
And our server 's fetchmail -vvv log is: … Not so interesting while your system is not proper setup yet. ;-)
You have forgot to send the output from dovecot -n
. But before doing
so, please read http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL.
Compare your dovecot.conf with the example dovecot.conf excerpt.
Regards, Pascal
Pascal Volk schrieb:
Am 23.08.2008 16:00 schrieb sharad kanekar:
ear All, I configured Postfix 2.3.3-2 on CentOS 5.2 using SASL Dovecot authentication put I am facing the problem to receive mails . My postconf -n result is: [root@mails ~]# postconf -n … smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot
Looks good.
And my /var/log/maillog is: Aug 23 19:01:03 mails dovecot: Dovecot v1.0.rc15 starting up Aug 23 19:01:55 mails postfix/smtpd[3472]: warning: SASL: Connect to private/auth failed: No such file or directory ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^
And our server 's fetchmail -vvv log is: … Not so interesting while your system is not proper setup yet. ;-)
You have forgot to send the output from
dovecot -n
. But before doing so, please read http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL. Compare your dovecot.conf with the example dovecot.conf excerpt.Regards, Pascal
i recommend to upgrade first postfix to current stable 2.5.4 for security and other reasons, and i am not sure dovecot auth was allready working in 2.3.3 after that follow http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL be sure not to conflict with a chroot setup in Postfix as its default i.e in ubuntu hardy then everthing should work like charme
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On 8/23/2008, sharad kanekar (sharad.kanekar@gmail.com) wrote:
Aug 23 19:01:03 mails dovecot: Dovecot v1.0.rc15 starting up
This is seriously old... you should upgrade before further troubleshooting... most likely an upgrade (follow the upgrade docs) will fix your problem unless it is a config issue - but you should upgrade regardless...
--
Best regards,
Charles
On Sat, 23 Aug 2008, sharad kanekar wrote:
ear All, I configured Postfix 2.3.3-2 on CentOS 5.2 using SASL Dovecot authentication put I am facing the problem to receive mails . My postconf -n result is:
Old software - does it have the recent security patch?
And my /var/log/maillog is: Aug 23 19:01:03 mails dovecot: Dovecot v1.0.rc15 starting up
Old software - is CentOS bugfixing that?
Aug 23 19:01:55 mails postfix/smtpd[3472]: warning: SASL: Connect to private/auth failed: No such file or directory Aug 23 19:01:55 mails postfix/smtpd[3472]: fatal: no SASL authentication mechanisms
If Dovecot is configured to export that socket to Postfix, be sure to restart Dovecot and check that the socket is there (ls -ld /var/spool/postfix/private/auth).
And our server 's fetchmail -vvv log is: [sharad@mails ~]$ fetchmail -vvv fetchmail: 6.3.6 querying coreteamsolutions.in (protocol POP3) at Sat 23 Aug
Seriously outdated. Does it have all the security fixes?
-- Matthias Andree
participants (5)
-
Charles Marcus
-
Matthias Andree
-
Pascal Volk
-
Robert Schetterer
-
sharad kanekar