[RESOLU] Envoye de mail avec postfix

Bonjour a tous,

Voilà, je suis abonné orange et j’ai une debian etch qui tourne sur mon reseau.

J’aimerai envoyer des mails vers l’exterieur.
Je doit donc utiliser un smarthost du type “smtp.orange.fr”.

Cependant apres l’envoie de mail rien n’arrive a destination.
Quelqu’un a une idée ?
(sachant que orange autorise le relays de mail a ses abonnés)

mon main.cf

[quote]# 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 (Debian/GNU)
biff = no

appending .domain is the MUA’s job.

append_dot_mydomain = no

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.

mydomain = savpc.fr
myhostname = intranet.savpc.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = savpc.fr, localhost.localdomain, localhost
relayhost = smtp.orange.fr
mynetworks = 192.168.1.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
myorigin = /etc/mailname[/quote]

Merci.

Salut,
lorsque je fais un host sur orange.fr j’ai ceci :

host -t MX orange.fr orange.fr mail is handled by 10 smtp-in.orange.fr

ça serait pas plutôt smtp-in.orange.fr le serveur de mail de ton FAI ?

[quote=“corsica13”]Bonjour a tous,
J’aimerai envoyer des mails vers l’exterieur.
Je doit donc utiliser un smarthost du type “smtp.orange.fr”.

Cependant apres l’envoie de mail rien n’arrive a destination.
Quelqu’un a une idée ?
[/quote]
Après un petit test : smtp.orange.fr est accessible sur le port 25

Pourquoi utilises tu les paramètres TLS dans ta configuration postfix ? En plus smtpd* c’est pour un serveur smtp en local.

Je n’ai pas regardé ta configuration postfix de plus près, il serait intéressant d’avoir les logs pour aller au moins dans un direction plutôt que de chercher au hasard.

Merci de vos reponses.

Voici mon log :

[quote]Dec 5 09:26:44 intranet postfix/pickup[7082]: 428A34B790: uid=0 from=
Dec 5 09:26:44 intranet postfix/cleanup[7135]: 428A34B790: message-id=20071205082644.428A34B790@savpc.fr
Dec 5 09:26:44 intranet postfix/qmgr[7083]: 428A34B790: from=<root@intranet@savpc.fr>, size=303, nrcpt=1 (queue active)
Dec 5 09:26:44 intranet postfix/smtp[7137]: 428A34B790: to=rma.savpc@orange.fr, relay=smtp-in.orange.fr[193.252.22.78]:25, delay=0.4, delays=0.04/0.01/0.3/0.06, dsn=5.0.0, status=bounced (host smtp-in.orange.fr[193.252.22.78] said: 550 <root@intranet@savpc.fr>: Sender address rejected: Please use user@domain address forms only. (in reply to MAIL FROM command))
Dec 5 09:26:44 intranet postfix/cleanup[7135]: AFD094B794: message-id=20071205082644.AFD094B794@savpc.fr
Dec 5 09:26:44 intranet postfix/bounce[7138]: 428A34B790: sender non-delivery notification: AFD094B794
Dec 5 09:26:44 intranet postfix/qmgr[7083]: AFD094B794: from=<>, size=2204, nrcpt=1 (queue active)
Dec 5 09:26:44 intranet postfix/qmgr[7083]: 428A34B790: removed
Dec 5 09:26:45 intranet postfix/smtp[7137]: AFD094B794: to=root@intranet, orig_to=<root@intranet@savpc.fr>, relay=smtp-in.orange.fr[193.252.22.65]:25, delay=0.42, delays=0.01/0/0.33/0.08, dsn=5.0.0, status=bounced (host smtp-in.orange.fr[193.252.22.65] said: 504 root@intranet: Recipient address rejected: need fully-qualified address (in reply to RCPT TO command))
Dec 5 09:26:45 intranet postfix/qmgr[7083]: AFD094B794: removed[/quote]

Je pense que l’erreur vient d’ici :

Mais je n’ai aucune idée de comment resoudre le probleme.

J’ai enfin trouvé !

il fallait modifier le fichier /etc/mailname

Il contenait intranet@savpc.fr

j’ai remplacé par savpc.fr et tout a fonctionné parfaitement.

Merci encore pour votre aide precieuse!!!