Postfix + SASL [repost]

From: Piotr Strycharz (Piotr.Strycharz_at_antispam-account.com)
Date: 05/24/05


Date: Tue, 24 May 2005 17:02:38 +0200

Hi

I have very big trouble setting up SMTP AUTH with postfix. Here goes
summary:
- system is Mandrake 10.1
- postfix-2.1.4, cyrus-sasl-2.1.19, libsasl2, libsasl2-plug-login-2.1.19,
libsasl2-plug-plain-2.1.19
- ldd smtpd - OK (linked to libsasl2.so.2)
- options in main.cf: smtpd_sasl_auth_enable = yes;
smtpd_sasl_security_options = noanonymous; smtpd_sasl_application_name =
smtpd; smtpd_sasl_local_domain = $myhostname; smtpd_sasl_path =
/etc/postfix/sasl; smtpd_recipient_rectrictions = permit_sasl_authenticated,
permit_mynetworks, check_relay_domains
- lines in /etc/postfix/sasl/smtpd.conf: pwcheck_method: saslauthd;
mech_list: plain login
- saslauthd demon is running
- SASL_AUTHMECH=pam in /etc/sysconfig/saslauthd file
- smtpd in /etc/pam.d
- testsaslauthd -u ... -p ... -r smtpd ends with OK "Succcess"
- when starts, saslauthd creates hardlink /var/lib/sasl2/mux to
/var/spool/postfix/var/lib/sasl2/

So, it is supposed to work. But it does not. Telnet to port 25 almost
immediately closes connection (no 220 invitation from postfix). Connection
makes also error in mail logs: "fatal: no SASL authentication mechanism".
Commenting out just the smtpd_sasl_auth_enable line makes the postfix run
.... (without AUTH of course)

I'm stuck. Any help?

Regards.

Piotr.



Relevant Pages

  • Postfix + Sasl. Anyone succesful?
    ... I have very big trouble setting up SMTP AUTH with postfix. ... saslauthd demon is running ... immediately closes connection. ...
    (comp.os.linux.networking)
  • Postfix + Sasl. Anyone succesful?
    ... I have very big trouble setting up SMTP AUTH with postfix. ... saslauthd demon is running ... immediately closes connection. ...
    (comp.os.linux.setup)
  • Postfix + SASL [repost]
    ... I have very big trouble setting up SMTP AUTH with postfix. ... saslauthd demon is running ... immediately closes connection. ...
    (comp.os.linux.setup)
  • Re: how to install postfix on my 11.10 box with everything else in place?
    ... ISP's increasingly require some kind of authentication for outgoing ... SMTP Authentication for Mail servers ... SMTP AUTH for mail server is a feature that is often required to relay ... Configure Postfix to enable SMTP AUTH for the smtp daemon ...
    (Ubuntu)
  • Re: [SLE] Postfix help
    ... postfix ... I fetch before tiscali) on the first fetchmail run after my first ... connection of the day - but sometimes also happens later on the day. ... and fetchmail aborts this server. ...
    (SuSE)