User Tools

Site Tools


public:mail:postfix

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:mail:postfix [2012/03/15 13:29] – [Configuring SMTP authentication] toonypublic:mail:postfix [2012/03/15 13:55] (current) – [Configuring SMTP authentication] toony
Line 25: Line 25:
  
 ===== Configuring SMTP authentication ==== ===== Configuring SMTP authentication ====
- 
-Tell Postix to use saslauthd service. Create file "///etc/postfix/sasl/smtpd.conf//" : 
- 
-<code> 
-pwcheck_method: saslauthd 
-</code> 
  
 Edit postfix configuration : Edit postfix configuration :
Line 37: Line 31:
 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 51: Line 50:
 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
 +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.1331818187.txt.gz · Last modified: 2012/03/15 13:29 by toony