VRAC - Postfix

Code BASH :
apt-get install postfix heirloom-mailx


/etc/postfix/main.cf:
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


/etc/mailname:

mondomaine.fr


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 1194 fois