Pages : 1
#1 Le 07/06/2012, à 21:08
- zell25
Postfix et le smtp 1and1
Bonjours, je rencontre un soucis avec postfix et le smtp de 1and1 pour l'envoie de mes mails via la fonction mail(). J'ai pas mal cherché sur le forum et testé diverse choses mais aucune fonctionne...
Voici mon fichier 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
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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
# 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:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_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.
myhostname = mondomaine.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain = mondomaine.com
relayhost = auth.smtp.1and1.fr
smtp_sasl_auth_enable = yes
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
et voila le log
Jun 7 21:55:05 ubuntu postfix/qmgr[10478]: 2E732700D95: removed
Jun 7 21:55:05 ubuntu postfix/smtp[10517]: 9DC65700DA2: to=<moi@mondomaine.com>, relay=auth.smtp.1and1.fr[212.227.15.168]:25, conn_use=2, delay=4.3, delays=0.04/0/0.12/4.2, dsn=5.0.0, status=bounced (host auth.smtp.1and1.fr[212.227.15.168] said: 550 must be authenticated (in reply to RCPT TO command))
Jun 7 21:55:05 ubuntu postfix/smtp[10484]: 9D5A5700D9F: to=<moi@mondomaine.com>, relay=auth.smtp.1and1.fr[212.227.15.168]:25, conn_use=2, delay=4.3, delays=0.05/0/0.12/4.2, dsn=5.0.0, status=bounced (host auth.smtp.1and1.fr[212.227.15.168] said: 550 must be authenticated (in reply to RCPT TO command))
Voila si vous avez besoin d'autre chose n'hésitez pas.
Merci
Hors ligne
#2 Le 03/07/2012, à 17:19
- gilloufcr
Re : Postfix et le smtp 1and1
Bonsoir,
Pour cela vient de fait qu'il faut saisir un authentification pour le serveur SMTP.
Login : monadresse@mondomaine.fr
mdp : celui utilisé dans la configuration de ton client mail.
edit : Pardon de ma première réponse, je cherche ou il faut renseigner ces champs, j'installe mon postfix en ce moment, aussi.
Vala
edit2: une piste Documentation PostFix FR
Dernière modification par gilloufcr (Le 03/07/2012, à 18:37)
Hors ligne
#3 Le 04/07/2012, à 12:59
- Pseudo supprimé
Re : Postfix et le smtp 1and1
relay=auth.smtp.1and1.fr[212.227.15.168]:25
auth, cela doit être en 587. modifie le master.cf aussi.
587 inet n - n - 2 smtpd
-o content_filter=spamassassin:
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_etrn_restrictions=reject
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o smtp_connect_timeout=1
-o smtp_destination_rate_delay=1
Edit
sudo postconf -e 'relayhost = [212.227.15.168]:587'
Dernière modification par Titouan (Le 04/07/2012, à 13:06)
Pages : 1