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
Prochaine révisionLes deux révisions suivantes
informatique:reseau:postfix [17/02/2016 09:45] – [Remove queued mails] cyrilleinformatique:reseau:postfix [24/02/2016 15:34] – [méthode #2 smtp_generic_maps] cyrille
Ligne 43: Ligne 43:
   * http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html   * http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html
  
-==== Sender/From depuis son ordi portable ====+==== 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> ... Sub mon Ubuntu les mails envoyés de la console partaient avec from=<cyrille@cyrille-W740SU> ...
  
-Création du fichier /etc/postfix/generic+Création du fichier ''/etc/postfix/generic'': 
 Édition: Édition:
   cyrille@cyrille-W740SU  w740su@giquello.fr   cyrille@cyrille-W740SU  w740su@giquello.fr
Ligne 53: Ligne 61:
   sudo postmap /etc/postfix/generic   sudo postmap /etc/postfix/generic
 Ajouter sa réf dans /etc/postfix/main.cf Ajouter sa réf dans /etc/postfix/main.cf
-  sudo smtp_generic_maps = hash:/etc/postfix/generic+  smtp_generic_maps = hash:/etc/postfix/generic
 Redémarrer postfix Redémarrer postfix
   sudo service postfix restart   sudo service postfix restart
  
 Et voilà, maintenant les mails arrivent dans les boites avec from w740su@giquello.fr 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.txt · Dernière modification : 16/05/2019 17:06 de cyrille

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