[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problème postfix et gmail



Bonjour à tous
J'ai configuré Postfix (Squeeze) afin d’utiliser le smtp de gmail en relayhost. Postfix marche
correctement en local mais il est impossible d'envoyer un mail à l'extérieur. 
Mon fai est orange.fr
Merci d'avance pour toute aide.
M

mail maderios@gmail.com -s test

tail -f /var/log/mail.info

May 26 17:34:09 salix postfix/smtp[22814]: connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out
May 26 17:34:09 salix postfix/smtp[22815]: connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out
May 26 17:34:09 salix postfix/smtp[22814]: 2B8185B12C: to=<maderios@gmail.com>, relay=none, delay=1589, delays=1484/0.01/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out)
May 26 17:34:09 salix postfix/smtp[22815]: 58230274D18: to=<maderios@gmail.com>, relay=none, delay=782, delays=677/0.01/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out)
May 26 17:34:09 salix postfix/smtp[22816]: connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out
May 26 17:34:09 salix postfix/smtp[22816]: 8B65F274D15: to=<maderios@gmail.com>, relay=none, delay=847, delays=742/0.02/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out)
May 26 17:34:39 salix postfix/pickup[22746]: 54089271232: uid=0 from=<root>
May 26 17:34:39 salix postfix/cleanup[22824]: 54089271232: message-id=<20100526153439.54089271232@salix>
May 26 17:34:39 salix postfix/qmgr[22747]: 54089271232: from=<root@salix.localdomain>, size=293, nrcpt=1 (queue active)
May 26 17:34:39 salix postfix/error[22826]: 54089271232: to=<maderios@gmail.com>, relay=none, delay=0.04, delays=0.02/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out)

Problèmes:
port :25
 normal que cela bloque
relay=none
 Bizarre, alors que tout est paramétré pour le relay soit le smtp de gmail
root@salix.localdomain ne risque pas d'être accepté par gmail. J'ai donc un mis 'smtp_generic_maps =
hash:/etc/postfix/generic' dans /etc/postfix/main.cf et édité un /etc/postfix/generic pour que mon
adresse mcmcpc@gmail.com qui sert à l'authentification soit envoyée par postfix à gmail. 
Rien n'y fait, root@salix.localdomain est toujours là .....

Pour info
postconf -n

config_directory = /etc/postfix
myhostname = salix
myorigin = $myhostname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)    biff = no    append_dot_mydomain = no    alias_maps = hash:/etc/aliases    alias_database = hash:/etc/aliases    transport_maps = hash:/etc/postfix/transport    mydestination = $myhostname, localhost, $mydomain    disable_dns_lookups = yes    relay_domains =     relayhost = [smtp.gmail.com]:587    mynetworks = 127.0.0.0/8    mailbox_command = procmail -a "$EXTENSION"    mailbox_size_limit = 0    recipient_delimiter = +    inet_interfaces = all    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache   smtp_tls_loglevel = 1   smtp_generic_maps = hash:/etc/postfix/generic   smtp_tls_CAfile = /etc/postfix/cacert.pem   smtp_tls_cert_file = /etc/postfix/gmail-cert.pem   smtp_tls_key_file = /etc/postfix/gmail-key.pem   smtp_tls_note_starttls_offer = yes   smtp_tls_security_level = may   smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem   smtpd_tls_cert_file = /etc/ssl/certs/gmail-cert.pem   smtpd_tls_key_file = /etc/ssl/private/gmail-key.pem   smtpd_tls_received_header = yes   smtpd_use_tls = yes   smtpd_enforce_tls = yes   tls_random_source = dev:/dev/urandom   smtpd_sasl_auth_enable = no   smtp_sasl_auth_enable = yes   smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd   smtpd_sasl_local_domain = $myhostname   smtp_sasl_security_options = noanonymous   smtp_sasl_tls_security_options = noanonymous   smtpd_sasl_application_name = smtpd

Avec TELNET
salix:/etc/postfix# telnet smtp.gmail.com 587
Trying 209.85.227.109...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP l46sm195333wed.10
ehlo smtp.gmail.com
250-mx.google.com at your service, [90.22.118.203]
250-SIZE 35651584
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
starttls
220 2.0.0 Ready to start TLS
mail from:mcmcpc@gmail.com
Connection closed by foreign host.





Reply to: