Thursday, February 23, 2012

warning: unsupported SASL server implementation: cyrus

Advertisements


You may get this error while enabling the smtp_auth using cyrus with postfix

[root@work1 postfix-2.9.1]# postfix start
postfix/postfix-script: starting the Postfix mail system
[root@work1 postfix-2.9.1]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

Errors:
tail -f /var/log/maillog
Feb 23 15:54:17 work1 postfix/postfix-script[10991]: starting the Postfix mail system
Feb 23 15:54:17 work1 postfix/master[10992]: daemon started -- version 2.9.1, configuration /etc/postfix
Feb 23 15:57:22 work1 postfix/smtpd[10996]: warning: unsupported SASL server implementation: cyrus
Feb 23 15:57:22 work1 postfix/smtpd[10996]: fatal: SASL per-process initialization failed
Feb 23 15:57:23 work1 postfix/master[10992]: warning: process /usr/libexec/postfix/smtpd pid 10996 exit status 1
Feb 23 15:57:23 work1 postfix/master[10992]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Reason and solution:
The Postfix-with-Cyrus-SASL build procedure has changed. You now need to specify -DUSE_CYRUS_SASL in addition to -DUSE_SASL_AUTH

Run the command as follows:
[root@work1 postfix-2.9.1]# make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" AUXLIBS="-L/usr/lib -lsasl2"

Now it works
[root@work1 postfix-2.9.1]# postfix start
postfix/postfix-script: starting the Postfix mail system
[root@work1 postfix-2.9.1]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 work1.lap.work ESMTP Postfix
ehlo localhost
250-work1.lap.work
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH GSSAPI LOGIN PLAIN DIGEST-MD5 CRAM-MD5 NTLM
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

2 comments:

  1. Thanks... ! I was facing same problem but got resolved with the help of this article.

    Thanks again !!!!!!!!!!!!!

    ReplyDelete
  2. Thanks :)
    I've just started working on postfix and the videos I'm referring to are for postfix 2.1.5 and the one I downloaded is 2.10.1..

    Thanks once again

    ReplyDelete

Be nice. That's all.