User Tools

Site Tools


public:mail:postfix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:mail:postfix [2010/10/12 15:17] – created toonypublic:mail:postfix [2012/03/15 13:55] (current) – [Configuring SMTP authentication] toony
Line 25: Line 25:
  
 ===== Configuring SMTP authentication ==== ===== Configuring SMTP authentication ====
 +
 +Edit postfix configuration :
  
 <code> <code>
 smtpd_sasl_auth_enable=yes smtpd_sasl_auth_enable=yes
 broken_sasl_auth_clients=yes broken_sasl_auth_clients=yes
 +smtpd_sasl_security_options = noanonymous
 smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
 smtpd_sasl_authenticated_header=yes smtpd_sasl_authenticated_header=yes
 </code> </code>
  
-Saslauthd service can be used to check password on LDAP.+Saslauthd service can be used to check password on LDAP. Create file "///etc/postfix/sasl/smtpd.conf//"
 + 
 +<code> 
 +pwcheck_method: saslauthd 
 +</code>
  
 Postfix is chrooted by default, 2 solutions can be used to allow Postfix/saslauthd : Postfix is chrooted by default, 2 solutions can be used to allow Postfix/saslauthd :
Line 39: Line 46:
   * moving saslauthd unix socket into Postfix chroot :   * moving saslauthd unix socket into Postfix chroot :
 <code> <code>
-rm -rf /var/spool/postfix/var/run/saslauthd > /dev/null 2>&1+rm -rf /var/spool/postfix/var/run/saslauthd
 mkdir -p /var/spool/postfix/var/run/saslauthd mkdir -p /var/spool/postfix/var/run/saslauthd
 chown root:sasl /var/spool/postfix/var/run/saslauthd chown root:sasl /var/spool/postfix/var/run/saslauthd
 chmod 710 /var/spool/postfix/var/run/saslauthd chmod 710 /var/spool/postfix/var/run/saslauthd
-# Needed if local Cyrus use saslauthd too+rm -rf /var/run/saslauthd
 ln -s /var/spool/postfix/var/run/saslauthd /var/run ln -s /var/spool/postfix/var/run/saslauthd /var/run
 </code> </code>
public/mail/postfix.1286896653.txt.gz · Last modified: 2010/10/12 15:17 by toony