Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/05/2007, à 16:55

redx

Serveur de mail - POSTFIX

Bonjour j'ai un probleme de serveur de mail sous postfix

voici mon /etc/postfix/main.cf

myhostname = debian.reseau.lan
mydomain = reseau.lan
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_command = procmail -a "$EXTENSION"
sender_canonical_maps = hash:/etc/postfix/sender_canonical


voici mon /etc/postfix/sender_canonical

redx redx@microchiotte.com
nanou nanou@microchiotte.com


J'ai donc fait un
postmap /etc/postfix/sender_canonical


Voila Smile


kan j'envoi un mail depui linux avec la commande "mail redx@laposte.net" ou "mail nanou@laposte.net", tt marche bien, le mail arrive avec comme expediteur : redx@microchiotte.com ou nanou@microchiotte.com

Mais kan je suis sous outlook ou tunderbird, je configure mes comte mais kan j'envoi un mail sur redx@laposte.net ou nanou@laposte.net le mail par bien, arrive bien dans la boite a lettre de l'expediteur mais l'adresse n'est pas reecrite et est "redx" (devrai etre redx@microchiotte.com).

petite precision, dan les log, l'expediteur a bien l'adresse reecrite.... BIZARRR

Voila mon probleme c'est le reecriture
PS : j'ai effacer ce matin ma debian de test "serveur de mail" et je l'est recréé normalement a l'identik et hier ca marchai,,, outlookaussi marchai,,, (donc pas un probleme d'outlook...)


MERCI

Hors ligne

#2 Le 26/05/2007, à 19:48

tuxben

Re : Serveur de mail - POSTFIX

salut voici mon fichier de configuration de postfix que tu m'avais demandé :

# See /usr/share/postfix/main.cf.dist 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 (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = yes

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = www.xxx.com
#myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = xxx.com, localhost, localhost.localdomain, localhost
#relayhost = 208.67.222.222
#relayhost = smtp.tvcablenet.be
relayhost =
mynetworks = 127.0.0.0/8 192.168.0.1/192.168.0.255 gmail.com www.xxx.com subnet all
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
sender_canonical_maps = hash:/etc/postfix/sender_canonical
home_mailbox = Maildir/
mailbox_command = procmail -a "$EXTENSION"
inet_protocols = all

Dernière modification par tuxben (Le 14/12/2010, à 18:05)

Hors ligne

#3 Le 26/05/2007, à 19:55

tuxben

Re : Serveur de mail - POSTFIX

en fait tu as une adresse msn ou autre (je préfère par msn comme ca on peut poser ses questions et tout directement)
edit si oui clique sur mon pseudo et puis sur envoyer un e-mail

Dernière modification par tuxben (Le 26/05/2007, à 19:55)

Hors ligne

#4 Le 27/05/2007, à 19:54

Uggy

Re : Serveur de mail - POSTFIX

Comment soumettre un problème Postfix sur le forum
http://doc.ubuntu-fr.org/serveur/comment_soumettre_un_probleme_postfix_sur_le_forum

A toi de fournir au moins les logs et un postconf -n
Le source du message recu également...

Extrait du man canonical

NOTE: Postfix versions 2.2 and later rewrite message headers from remote SMTP clients only
       if  the  client  matches   the   local_header_rewrite_clients   parameter,   or   if   the
       remote_header_rewrite_domain  configuration  parameter specifies a non-empty value.

Hors ligne