Ce document presente dans le detail comment installer et gerer le serveur d'envoi/reception des mails.
# This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. # To accept external mail, replace with: listen on all listen on localhost listen on eth0 inet6 port 25 hostname mail.beta.hadoly.fr listen on eth0 inet6 port 465 hostname mail.beta.hadoly.fr # If you edit the file, you have to run "smtpctl update table aliases" table aliases file:/etc/aliases table vusers ldap:/etc/smtpd/ldap.conf table vdoms ldap:/etc/smtpd/ldap.conf # Uncomment the following to accept external mail for domain "example.org" #accept from any for domain "example.org" alias <aliases> deliver to mbox accept for local alias <aliases> deliver to mbox accept from any for domain <vdoms> virtual <vusers> deliver to lmtp gauvain.hadoly.fr:24 accept for any relay # miscellaneous options queue encryption key MAJOLIECLEQUELLEESTBELLE queue compression max-message-size 10M Generer une cle pour la queue # openssl rand -hex 16
TODO:
La commande magique de test de la config: smtpd -n
La commande magique de gestion live: smtpctl …
# lister la queue # smtpctl show queue # Visualiser un message # smtpctl show message <msgid> # Visualiser l'enveloppe d'un message # smtpctl show envelope # Effacer un message de la queue # smtpctl remove <msgid> # Voir les stats # smtpctl show stats #Live monitor # smtpctl monitor