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 19/04/2008, à 20:46

Samuel2202

[Postfix] Impossible d'envoyer des mails

Bonjour à tous,

Je viens ici pour exposer un problème que je n'arrive pas à résoudre : j'ai installer postfix avec mysql, sasl, etc... ( tout ça : http://doc.ubuntu-fr.org/serveur/postfix_mysql_tls_sasl )...

J'ai un gros problème. Je ne peut pas envoyer de mail et le "telnet localhost 25" à partir du serveur en localhost ne marche pas...

Voilà "postconf -n":

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 51200000
mydestination = mail.mes-stats.fr, localhost.localdomain, localhost
myhostname = mail.mes-stats.fr
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_non_fqdn_hostname,  reject_non_fqdn_sender,  reject_non_fqdn_recipient,    reject_unauth_destination,  reject_unauth_pipelining,     reject_invalid_hostname,  reject_rbl_client opm.blitzed.org,  reject_rbl_client list.dsbl.org,  reject_rbl_client bl.spamcop.net,  reject_rbl_client sbl-xbl.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000

/var/log/mail.log :

pr 19 20:32:42 stock courierpop3login: Connection, ip=[::ffff:91.171.146.37]
Apr 19 20:32:42 stock authdaemond: received auth request, service=pop3, authtype=login
Apr 19 20:32:42 stock authdaemond: authmysql: trying this module
Apr 19 20:32:42 stock authdaemond: SQL query: SELECT username, password, "", 5000, 5000, "/home/vmail", maildir, "", name, "" FROM mailbox WHERE username = "webmaster@mes-stats.fr"
Apr 19 20:32:42 stock authdaemond: password matches successfully
Apr 19 20:32:42 stock authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:32:42 stock authdaemond: authmysql: clearpasswd=<null>, passwd=0CiE1I7NJCRWI
Apr 19 20:32:42 stock authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:32:42 stock authdaemond: Authenticated: clearpasswd=5jjuXKUkck, passwd=0CiE1I7NJCRWI
Apr 19 20:32:42 stock courierpop3login: LOGIN, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37]
Apr 19 20:32:42 stock courierpop3login: LOGOUT, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37], top=0, retr=0, rcvd=12, sent=39, time=0
Apr 19 20:33:04 stock postfix/smtpd[25283]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:33:04 stock postfix/smtpd[25283]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:33:04 stock postfix/proxymap[25284]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:33:04 stock postfix/proxymap[25284]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:33:04 stock postfix/smtpd[25283]: connect from dyn-91-171-146-37.ppp.tiscali.fr[91.171.146.37]
Apr 19 20:33:04 stock postfix/anvil[25285]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:33:04 stock postfix/anvil[25285]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:33:04 stock postfix/trivial-rewrite[25286]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:33:04 stock postfix/trivial-rewrite[25286]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:33:05 stock postfix/smtpd[25283]: NOQUEUE: reject: RCPT from dyn-91-171-146-37.ppp.tiscali.fr[91.171.146.37]: 504 5.5.2 <samuelc2d>: Helo command rejected: need fully-qualified hostname; from=<webmaster@mes-stats.fr> to=<samuel.roze@aliceadsl.fr> proto=ESMTP helo=<samuelc2d>
Apr 19 20:33:05 stock postfix/smtpd[25283]: NOQUEUE: reject: RCPT from dyn-91-171-146-37.ppp.tiscali.fr[91.171.146.37]: 504 5.5.2 <samuelc2d>: Helo command rejected: need fully-qualified hostname; from=<webmaster@mes-stats.fr> to=<webmaster@mes-stats.fr> proto=ESMTP helo=<samuelc2d>
Apr 19 20:33:08 stock postfix/smtpd[25283]: disconnect from dyn-91-171-146-37.ppp.tiscali.fr[91.171.146.37]
Apr 19 20:36:28 stock postfix/anvil[25285]: statistics: max connection rate 1/60s for (smtp:91.171.146.37) at Apr 19 20:33:04
Apr 19 20:36:28 stock postfix/anvil[25285]: statistics: max connection count 1 for (smtp:91.171.146.37) at Apr 19 20:33:04
Apr 19 20:36:28 stock postfix/anvil[25285]: statistics: max cache size 1 at Apr 19 20:33:04
Apr 19 20:37:58 stock courierpop3login: Connection, ip=[::ffff:91.171.146.37]
Apr 19 20:37:58 stock authdaemond: received auth request, service=pop3, authtype=login
Apr 19 20:37:58 stock authdaemond: authmysql: trying this module
Apr 19 20:37:58 stock authdaemond: SQL query: SELECT username, password, "", 5000, 5000, "/home/vmail", maildir, "", name, "" FROM mailbox WHERE username = "webmaster@mes-stats.fr"
Apr 19 20:37:58 stock authdaemond: password matches successfully
Apr 19 20:37:58 stock authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:37:58 stock authdaemond: authmysql: clearpasswd=<null>, passwd=0CiE1I7NJCRWI
Apr 19 20:37:58 stock authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:37:58 stock authdaemond: Authenticated: clearpasswd=5jjuXKUkck, passwd=0CiE1I7NJCRWI
Apr 19 20:37:58 stock courierpop3login: LOGIN, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37]
Apr 19 20:37:59 stock courierpop3login: LOGOUT, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37], top=0, retr=0, rcvd=12, sent=39, time=1
Apr 19 20:39:52 stock postfix/smtpd[25326]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:39:52 stock postfix/smtpd[25326]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:39:52 stock postfix/proxymap[25327]: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Apr 19 20:39:52 stock postfix/proxymap[25327]: warning: inet_protocols: configuring for IPv4 support only
Apr 19 20:39:52 stock postfix/smtpd[25326]: connect from localhost.localdomain[127.0.0.1]
Apr 19 20:43:05 stock courierpop3login: Connection, ip=[::ffff:91.171.146.37]
Apr 19 20:43:05 stock authdaemond: received auth request, service=pop3, authtype=login
Apr 19 20:43:05 stock authdaemond: authmysql: trying this module
Apr 19 20:43:05 stock authdaemond: SQL query: SELECT username, password, "", 5000, 5000, "/home/vmail", maildir, "", name, "" FROM mailbox WHERE username = "webmaster@mes-stats.fr"
Apr 19 20:43:05 stock authdaemond: password matches successfully
Apr 19 20:43:05 stock authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:43:05 stock authdaemond: authmysql: clearpasswd=<null>, passwd=0CiE1I7NJCRWI
Apr 19 20:43:05 stock authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=webmaster@mes-stats.fr, fullname=Boite webmaster, maildir=mes-stats/webmaster/, quota=<null>, options=<null>
Apr 19 20:43:05 stock authdaemond: Authenticated: clearpasswd=5jjuXKUkck, passwd=0CiE1I7NJCRWI
Apr 19 20:43:05 stock courierpop3login: LOGIN, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37]
Apr 19 20:43:06 stock courierpop3login: LOGOUT, user=webmaster@mes-stats.fr, ip=[::ffff:91.171.146.37], top=0, retr=0, rcvd=12, sent=39, time=1

Voila "telnet localhost 25":

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.mes-stats.fr ESMTP Postfix (Debian/GNU)
Connection closed by foreign host.

Pouvez-vous m'aider ?

Merci beaucoup d'avance !
Cordialement, Samuel.

NB: J'ai déplacer le socket de mysql dans : /databases/var/mysql.sock... Je ne sais pas du tout mais ça a peut-être un rapport étant donné que postfix utilise mysql...

Dernière modification par Samuel2202 (Le 19/04/2008, à 20:52)

Hors ligne

#2 Le 20/04/2008, à 23:17

Uggy

Re : [Postfix] Impossible d'envoyer des mails

Samuel2202 a écrit :

reject_non_fqdn_hostname,


Apr 19 20:33:05 stock postfix/smtpd[25283]: NOQUEUE: reject: RCPT from dyn-91-171-146-37.ppp.tiscali.fr[91.171.146.37]: 504 5.5.2 <samuelc2d>: Helo command rejected: need fully-qualified hostname; from=<webmaster@mes-stats.fr> to=<samuel.roze@aliceadsl.fr> proto=ESMTP helo=<samuelc2d>

Tu dis de rejeter les " non_fqdn_hostname " et tu en envoi un non fqdn...
Donc Postfix fait ce que tu as demandé.

Hors ligne

#3 Le 20/04/2008, à 23:39

Samuel2202

Re : [Postfix] Impossible d'envoyer des mails

Je l'ai envoyé avec Outlook pourtant... Pourquoi ce client très répandu ne respecte pas ça ??  mad

Hors ligne

#4 Le 21/04/2008, à 00:58

Uggy

Re : [Postfix] Impossible d'envoyer des mails

J'imagine que ton client mail, utilise en helo le nom de machine (qu'il soit defini en FQDN ou non)

Il y a un endroit dans windows ou tu peux configurer ce "fqdn" mais j'ai pas de windows pour te deccrire exactement l'endroit ou c'est.

C'est pas forcément une bonne idée de rejeter les HELO non FQDN car justement il y a plein de serveurs (comme ton PC) mal configurés.

Hors ligne

#5 Le 21/04/2008, à 01:11

Samuel2202

Re : [Postfix] Impossible d'envoyer des mails

Toute façon, moi... Je passe définitivement sous Debian... smile

Et j'ai enlever le reject non fqdn !!

Merci à toi smile

Hors ligne

#6 Le 21/04/2008, à 10:25

Uggy

Re : [Postfix] Impossible d'envoyer des mails

cool... [Resolu] ? wink

Hors ligne

#7 Le 21/04/2008, à 12:01

Samuel2202

Re : [Postfix] Impossible d'envoyer des mails

Oui smile

Hors ligne

#8 Le 21/04/2008, à 12:02

Samuel2202

Re : [Postfix] Impossible d'envoyer des mails

Quoi-que... Vous savez que quand je veux éditer mon message ( le 1er ), tout le texte n'est pas dans le textarea, il est tronqué !
Est-ce normal ? ^^

Hors ligne