« Postfix en tant que relay » : différence entre les versions

De Linux Server Wiki
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<pre>aptitude install postfix</pre>
<pre>aptitude install postfix</pre>
relay.domain.tld port 578 (submission)
user : test@otherdomain.tld
pass : password


Configuez le en tant que "internet with smarthost". Dans SMTP Relay Host, entrez l'hostname:port que vous souhaitez utiliser comme smtp sortant.
Configuez le en tant que "internet with smarthost". Dans SMTP Relay Host, entrez l'hostname:port que vous souhaitez utiliser comme smtp sortant.


<pre>
<pre>
echo "hostname:port login@domain:password" > /etc/postfix/smarthost_passwd
echo "relay.domain.tld:587 test@otherdomain.tld:password" > /etc/postfix/smarthost_passwd
chown root:root /etc/postfix/smarthost_passwd
chown root:root /etc/postfix/smarthost_passwd
chmod 600 /etc/postfix/smarthost_passwd
chmod 600 /etc/postfix/smarthost_passwd
Ligne 12 : Ligne 16 :
configuration de postfix :
configuration de postfix :
<pre>
<pre>
relayhost = hostname:port
relayhost = relay.domain.tld:587
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd
smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd

Version du 13 juillet 2014 à 10:13

aptitude install postfix

relay.domain.tld port 578 (submission) user : test@otherdomain.tld pass : password

Configuez le en tant que "internet with smarthost". Dans SMTP Relay Host, entrez l'hostname:port que vous souhaitez utiliser comme smtp sortant.

echo "relay.domain.tld:587 test@otherdomain.tld:password" > /etc/postfix/smarthost_passwd
chown root:root /etc/postfix/smarthost_passwd
chmod 600 /etc/postfix/smarthost_passwd
postmap /etc/postfix/smarthost_passwd

configuration de postfix :

relayhost = relay.domain.tld:587
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd
smtp_sasl_security_options = noanonymous
/etc/init.d/postfix restart