En cours de rédaction

VRAC - Postfix

Code BASH :
apt-get install postfix heirloom-mailx


<div class="formatter-container formatter-blockquote"><span class="formatter-title title-perso">/etc/postfix/main.cf :</span><div class="formatter-content">myhostname = adrien-N76VZ
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost = [smtp.orange.fr]
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = 127.0.0.0/8 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
</div></div>

<div class="formatter-container formatter-blockquote"><span class="formatter-title title-perso">/etc/mailname :</span><div class="formatter-content">
mondomaine.fr
</div></div>

Code BASH :
/etc/init.d/postfix restart
 * Stopping Postfix Mail Transport Agent postfix                                                                                   [ OK ] 
 * Starting Postfix Mail Transport Agent postfix                                                                                   [ OK ] 
 
 
mail -s TEST destinataire@domaine.fr
SSSSSSSSSSSSSSSSSSSS
.
EOT
 
Cette page a été vue 2167 fois