LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64, postfix and cyrus-sasl (https://www.linuxquestions.org/questions/slackware-14/slackware64-postfix-and-cyrus-sasl-796179/)

wargus 03-17-2010 10:06 PM

Slackware64, postfix and cyrus-sasl
 
Hi all

My problem is to get postfix working with a smarthost, to send mails from home with dynamic IP, and which needs authentication. I did exactly the same with Slackware 12.2 (postfix 2.6.2) and it worked. Now I tried to do with 2.6.2 (actual running version is 2.7.0 with the same problem) on Slackware 13 64bit. Following error message occurs around every minute in the maillog:


Code:

Mar 18 03:41:46 slackpc postfix/smtp[5156]: warning: unsupported SASL client implementation: cyrus
Mar 18 03:41:46 slackpc postfix/smtp[5156]: fatal: SASL library initialization
Mar 18 03:41:47 slackpc postfix/master[4216]: warning: process /usr/libexec/postfix/smtp pid 5156 exit status 1
Mar 18 03:41:47 slackpc postfix/master[4216]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

So what I do not understand is the configuring difference between 12.2 and 13, I read a lot about configuring cyrus (which seems I didn't manage or understand). There seems no sbopkg.org difference between 12.2 slackbuild and 13.0 slackbuild.

Postconf -A gives nothing. Do I need to give a special compile parameter or edit the postfix.Slackbuild?

Thanks in advance :hattip:

Gerard Lally 03-18-2010 12:56 AM

Quote:

Originally Posted by wargus (Post 3902634)
Hi all

My problem is to get postfix working with a smarthost, to send mails from home with dynamic IP, and which needs authentication. I did exactly the same with Slackware 12.2 (postfix 2.6.2) and it worked. Now I tried to do with 2.6.2 (actual running version is 2.7.0 with the same problem) on Slackware 13 64bit. Following error message occurs around every minute in the maillog:


Code:

Mar 18 03:41:46 slackpc postfix/smtp[5156]: warning: unsupported SASL client implementation: cyrus
Mar 18 03:41:46 slackpc postfix/smtp[5156]: fatal: SASL library initialization
Mar 18 03:41:47 slackpc postfix/master[4216]: warning: process /usr/libexec/postfix/smtp pid 5156 exit status 1
Mar 18 03:41:47 slackpc postfix/master[4216]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

So what I do not understand is the configuring difference between 12.2 and 13, I read a lot about configuring cyrus (which seems I didn't manage or understand). There seems no sbopkg.org difference between 12.2 slackbuild and 13.0 slackbuild.

Postconf -A gives nothing. Do I need to give a special compile parameter or edit the postfix.Slackbuild?

Thanks in advance :hattip:

Hi

I had to edit the postfix.Slackbuild to get the compile-time options I needed, including cyrus-sasl.

Have a look at my reply to my own question here for the compile-time options. Cyrus SASL is needed only if you want Postfix to act as a client to an external SMTP server which requires authentication; use Dovecot for SASL otherwise.

I wanted MySQL and LDAP support in Postfix as well, so I compiled these options in. I used the standard Slackware packages for Cyrus-SASL, TLS (OpenSSL), MySQL and OpenLDAP. I used the latest stable source for Postfix from postfix.org and adjusted the Slackbuild accordingly. I am using Slackware-13-64.

rpedrica 03-18-2010 01:41 AM

I also had to add in a soft link at /etc/sasl2 -> /usr/lib64/sasl2 otherwise postfix refused to pick up my sasl settings ( specifically smtpd.conf ). Of course make sure /etc/rc.d/rc.saslauthd is executable and running.


All times are GMT -5. The time now is 11:52 PM.