installation serveur : MAIL (mode relay smtp vers 1&1)


utiliser basiquement la même conf qu'un outlook

sudo apt-get install postfix sasl2-bin libsasl2-2 libsasl2-modules

emacs /etc/postfix/

See /usr/share/postfix/ for a commented, more complete version

Debian specific: Specifying a file name will cause the first

line of that file to be used as the name. The Debian default

is /etc/mailname.

#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

appending .domain is the MUA's job.

append_dot_mydomain = no

delay_warning_time = 2h
bounce_notice_recipient =
delay_notice_recipient =
error_notice_recipient =

readme_directory = no

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain =
myorigin = $mydomain
mydestination =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces =
inet_protocols = ipv4

SSL parameters - these are used when sending mail via 1and1 to ensure the connection's secure.

smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_sasl_tls_security_options = noanonymous
tls_random_source = dev:/dev/urandom

SASL Settings - These are the setting to authenticate with 1and1. Basically it passes a username & password.

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous

apres on crée le fichier de mot de passe :

emacs /etc/postfix/sasl_passwd

chown root.root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd

postmap sasl_passwd
postfix check
/etc/init.d/postfix restart

apt-get install mailutils

tester avec : mail vérifier les logs : tail -f /var/log/mail.log