informatique:reseau:postfix
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
informatique:reseau:postfix [17/02/2010 17:07] – cyrille | informatique:reseau:postfix [16/05/2019 17:06] (Version actuelle) – cyrille | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
MTA, Service SMTP | MTA, Service SMTP | ||
+ | |||
+ | voir aussi | ||
+ | * [[/ | ||
+ | * [[/ | ||
* [[http:// | * [[http:// | ||
Ligne 7: | Ligne 11: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Ligne 19: | Ligne 24: | ||
===== Tips ===== | ===== Tips ===== | ||
+ | |||
+ | ==== Gérer la pile de mails ==== | ||
+ | |||
+ | Voir le contenu de la pile (queue): | ||
+ | # mailq | ||
+ | |||
+ | Forcer l' | ||
+ | # postfix flush | ||
+ | |||
+ | > (Force delivery: attempt to deliver every message in the deferred mail queue. Normally, attempts | ||
+ | |||
+ | Pour effacer les mails dans la pile: | ||
+ | |||
+ | To remove all mail from the queue, enter: | ||
+ | # postsuper -d ALL | ||
+ | |||
+ | To remove all mails in the deferred queue, enter: | ||
+ | # postsuper -d ALL deferred | ||
+ | |||
+ | See more: | ||
+ | * http:// | ||
+ | |||
+ | ==== rewrite the Sender/From ==== | ||
+ | |||
+ | === méthode #1 === | ||
+ | |||
+ | dans le fichier de configuration principal ''/ | ||
+ | append_dot_mydomain = yes | ||
+ | |||
+ | === méthode #2 smtp_generic_maps === | ||
+ | |||
+ | Sub mon Ubuntu les mails envoyés de la console partaient avec from=< | ||
+ | |||
+ | Création du fichier ''/ | ||
+ | |||
+ | Édition: | ||
+ | cyrille@cyrille-W740SU | ||
+ | Compiler la table | ||
+ | sudo postmap / | ||
+ | Ajouter sa réf dans / | ||
+ | smtp_generic_maps = hash:/ | ||
+ | Redémarrer postfix | ||
+ | sudo service postfix restart | ||
+ | |||
+ | Et voilà, maintenant les mails arrivent dans les boites avec from w740su@giquello.fr | ||
+ | |||
+ | === méthode #3 sender_canonical === | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | PAS TESTÉE | ||
+ | </ | ||
+ | |||
+ | Avec une table canonique de re-écriture: | ||
+ | |||
+ | / | ||
+ | infinito infinito@hotmail.com | ||
+ | Donc dans mon cas : | ||
+ | tripwire tripwire@artefacts.coop | ||
+ | |||
==== Restrictions ==== | ==== Restrictions ==== |
informatique/reseau/postfix.txt · Dernière modification : 16/05/2019 17:06 de cyrille