Bonjoour à tous,
J’ai un serveur dédié chez online.net sous esxi.
J’ai installé une debian.
J’essais de configurer postfix pour recevoir les mails sur gmail mais j’ai des soucis.
Quand je fais un :
echo test | mail -s "test message" monmail@gmail.com
Et je vérifie que le mail est bien envoyé.
Je teste avec la commande tail -f.
tail -f /var/log/mail.log
Il me met :
Sep 27 19:40:47 pfl postfix/bounce[17026]: D8678300069: sender non-delivery notification: 31031300070
Sep 27 19:40:47 pfl postfix/qmgr[16972]: 31031300070: from=<>, size=2956, nrcpt=1 (queue active)
Sep 27 19:40:47 pfl postfix/qmgr[16972]: D8678300069: removed
Sep 27 19:40:47 pfl postfix/cleanup[17021]: 31CEC300069: message-id=<20140927174047.31031300070@pfl.port-frejus-location.fr>
Sep 27 19:40:47 pfl postfix/local[17024]: 31031300070: to=<root@pfl.port-frejus-location.fr>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (forwarded as 31CEC300069)
Sep 27 19:40:47 pfl postfix/qmgr[16972]: 31CEC300069: from=<>, size=3113, nrcpt=1 (queue active)
Sep 27 19:40:47 pfl postfix/qmgr[16972]: 31031300070: removed
Sep 27 19:40:47 pfl postfix/smtp[17025]: Host offered STARTTLS: [smtp.gmail.com]
Sep 27 19:40:47 pfl postfix/smtp[17025]: 31CEC300069: to=<monmail@gmail.com>, orig_to=<root@pfl.port-frejus-location.fr>, relay=smtp.gmail.com[64.233.162.109]:587, delay=0.17, delays=0/0/0.12/0.04, dsn=5.7.0, status=bounced (host smtp.gmail.com[64.233.162.109] said: 530 5.7.0 Must issue a STARTTLS command first. z4sm3065728laz.39 - gsmtp (in reply to MAIL FROM command))
Sep 27 19:40:47 pfl postfix/qmgr[16972]: 31CEC300069: removed
Comment je peux faire?
J’ai oublié de vous mettre mon fichier de configuration de postfix :
/etc/postfix/main.cf
# 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
#myorigin = port-frejus-location.fr
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
readme_directory = no
[b]# TLS parameters[/b]
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:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtp_tls_note_starttls_offer = yes
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
[b]#SASL parameters[/b]
smtp_sasl_auth_enable =yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
[b]# information on enabling SSL in the smtp client.[/b]
myhostname = pfl.port-frejus-location.fr
alias_maps = hash:/etc/aliases
#alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = port-frejus-location.fr, pfl.port-frejus-location.fr, localhost.port-frejus-location.fr, localhost
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#soft_bounce = yes
smtp_fallback_relay = [relay.google.com]
j’espère que j’ai rien oublié.
Merci
Cordialement,