Outils pour utilisateurs

Outils du site


informatique:reseau:postfix

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:reseau:postfix [17/02/2010 17:07] cyrilleinformatique:reseau:postfix [16/05/2019 17:06] (Version actuelle) cyrille
Ligne 2: Ligne 2:
  
 MTA, Service SMTP MTA, Service SMTP
 +
 +voir aussi
 +  * [[/informatique/reseau/exim4|Exim4]]
 +  * [[/informatique/spam|/informatique/spam]] pour de la "bonne" configuration
  
   * [[http://www.postfix.org/documentation.html|Documentation officielle]]   * [[http://www.postfix.org/documentation.html|Documentation officielle]]
Ligne 7: Ligne 11:
     * [[http://www.postfix.org/SMTPD_PROXY_README.html|Postfix Before-Queue Content Filter]]     * [[http://www.postfix.org/SMTPD_PROXY_README.html|Postfix Before-Queue Content Filter]]
     * [[http://www.postfix.org/FILTER_README.html|Postfix After-Queue Content Filter]]     * [[http://www.postfix.org/FILTER_README.html|Postfix After-Queue Content Filter]]
 +    * [[http://www.postfix.org/ADDRESS_REWRITING_README.html|Postfix Address Rewriting]]
   * [[http://www.postfix.org/docs.html|Postfix Howtos and FAQs]]   * [[http://www.postfix.org/docs.html|Postfix Howtos and FAQs]]
   * [[http://x.guimard.free.fr/postfix/|Doc en français]]   * [[http://x.guimard.free.fr/postfix/|Doc en français]]
Ligne 19: Ligne 24:
  
 ===== Tips ===== ===== Tips =====
 +
 +==== Gérer la pile de mails ====
 +
 +Voir le contenu de la pile (queue):
 +  # mailq
 +
 +Forcer l'envoi (tentative) des mails:
 +  # postfix flush
 +
 +> (Force delivery: attempt to deliver every message in the deferred mail queue. Normally, attempts  to  deliver  delayed mail happen at regular intervals, the interval doubling after each failed attempt. Warning: flushing undeliverable mail frequently will result in poor  delivery  performance of all other mail.
 +
 +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://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
 +
 +==== rewrite the Sender/From ====
 +
 +=== méthode #1  ===
 +
 +dans le fichier de configuration principal ''/etc/postfix/main.cf'' :
 +  append_dot_mydomain = yes
 +
 +=== méthode #2 smtp_generic_maps ===
 +
 +Sub mon Ubuntu les mails envoyés de la console partaient avec from=<cyrille@cyrille-W740SU> ...
 +
 +Création du fichier ''/etc/postfix/generic'':
 +
 +Édition:
 +  cyrille@cyrille-W740SU  w740su@giquello.fr
 +Compiler la table
 +  sudo postmap /etc/postfix/generic
 +Ajouter sa réf dans /etc/postfix/main.cf
 +  smtp_generic_maps = hash:/etc/postfix/generic
 +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
 +</WRAP>
 +
 +Avec une table canonique de re-écriture:
 +
 +/etc/postfix/sender_canonical, and add user -> email references like this:
 +  infinito infinito@hotmail.com
 +Donc dans mon cas :
 +  tripwire tripwire@artefacts.coop
 +
  
 ==== Restrictions ==== ==== Restrictions ====
informatique/reseau/postfix.1266422870.txt.gz · Dernière modification : 19/05/2012 00:15 (modification externe)

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki