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:27] – [Configuring TLS on client side] toonypublic:mail:postfix [2012/03/15 13:55] (current) – [Configuring SMTP authentication] toony
Line 15: Line 15:
  
 ==== Configuring TLS on client side ==== ==== Configuring TLS on client side ====
- 
-Tell Postix to use saslauthd service. Create file <file>/etc/postfix/sasl/smtpd.conf</file> : 
- 
-<code> 
-pwcheck_method: saslauthd 
-</code> 
  
 This Postfix configuration options enable TLS support on client. Client is used by Postfix server when relaying mail to another server using SMTP. This Postfix configuration options enable TLS support on client. Client is used by Postfix server when relaying mail to another server using SMTP.
Line 31: 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 49: 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.1331818024.txt.gz · Last modified: 2012/03/15 13:27 by toony