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

Aller à la navigation Aller à la recherche
aucun résumé des modifications
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
4 231

modifications

Menu de navigation