#1 Le 14/10/2006, à 16:40
- phlinux
[Resolu] Probleme d'envoi de mail avec postfix
Bonjour,
j'essaie depuis quelques jours et des tonnes de docs, trucs, astuces, manuels, howto de configurer postfix....
et je n'arrive toujours pas à envoyer un message à l'exterieur.
Je sèche !
Si quelqu'un peut m'aider sur ce coup là...
Merci d'avance
En local tout semble fonctionner :
telnet ma_machine 25
Trying mon.adr.ip.1...
Connected to ma_machine.mon_domaine.
Escape character is '^]'.
220 ma_machine.mon_domaine ESMTP Postfix (Ubuntu)
quit
telnet ma_machine.mon_domaine 25
Trying mon.adr.ip.1...
Connected to ma_machine.mon_domaine.
Escape character is '^]'.
220 ma_machine.mon_domaine ESMTP Postfix (Ubuntu)
quit
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.mon_domaine.
Escape character is '^]'.
220 ma_machine.mon_domaine ESMTP Postfix (Ubuntu)
quit
L'envoi d'un mail d'un compte local à un autre compte local fonctionne.
L'envoi d'un mail via telnet d'un compte local à l'une de mes adresses exterieures fonctionne mais si
j'envoie un mail en utilisant la commande mail il n'arrive jamais à destination et reste bloqué dans la mail queue
mailq >
585E2233E1 342 Sat Oct 14 16:15:37 moi_local@ma_machine.mon_domaine
(delivery temporarily suspended: transport is unavailable)
moi_fai@mon_fai.domaine_fai
dans la log j'ai toutes les minutes :
Oct 14 15:00:43 ma_machine postfix/qmgr[7364]: warning: connect to transport smtp: Connection refused
Il me semble donc que qmgr n'arrive pas à communiquer avec smtp pour envoyer le message au smtp du fai mais j'avoue ne pas comprendre ou est le problème puisque cela fonctionne "à la main".
Au cas où, je joins mon paramètrage
main.cf
append_dot_mydomain = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myhostname=ma_machine.mon_domaine
mydomain=mon_domaine
mydestination = $myhostname, localhost, localhost.$mydomain, $mydomain
relayhost = [smtp.mon_fai]
mynetworks = 127.0.0.0/8 mon.adr.ip.0/24
myorigin = $myhostname
default_transport = smtp
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 127.0.0.1 mon.adr.ip.1
master.cf
smtp inet n - n - - smtpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
relay unix - - - - - smtp
-o fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
Un coup d'oeil sur les ports ouverts:
netstat -tapn
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 127.0.0.1:60000 0.0.0.0:* LISTEN 4569/postgrey.pid -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4717/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 5023/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 4580/spamd.pid
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4546/cupsd
tcp 0 0 mon.adr.ip.1:25 0.0.0.0:* LISTEN 7362/master
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 7362/master
tcp6 0 0 :::80 :::* LISTEN 5180/apache2
tcp6 0 0 :::22 :::* LISTEN 4955/sshd
Dernière modification par phlinux (Le 15/10/2006, à 15:24)
Ubuntu - Precise Pangolin 64bits
ATI Radeon HD5670
Hors ligne
#2 Le 15/10/2006, à 15:18
- phlinux
Re : [Resolu] Probleme d'envoi de mail avec postfix
Mon problème est résolu :
la ligne :
smtp unix - - n - - smtp
était manquante dans mon master.cf
Merci à Sandy Drobic !
Ubuntu - Precise Pangolin 64bits
ATI Radeon HD5670
Hors ligne