Salut à tous ![:P](https://www.developpez.net/forums/images/smilies/icon_razz.gif)
Je suis un peu en galère avec la config de postfix. Je l'ai installé sur une Ubuntu Server 14.04.
Mon problème : quand je regarde /var/log/mail.log, dans le "to", il m'ajoute "infodroid@" devant l'adresse du destinataire que j'ai spécifié, à savoir steevan.barboyon@gmail.com :
Jan 12 13:49:14 sd-70661 postfix/smtp[17274]: CADE01900B0A: to=<infodroid@steevan.barboyon@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.26]:25, delay=0.12, delays=0.04/0/0.03/0.05, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[173.194.67.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 p16si13627916wiw.104 - gsmtp (in reply to RCPT TO command))
J'envoie ce mail avec un script bash, qui génère un fichier avec ce contenu :
1 2 3 4 5 6 7 8
| From: sendlogs@info-droid.fr
To: steevan.barboyon@gmail.com
Subject: [srv-infodroid] [0 erreurs] 12/01/2015 14:07:30
Content-Type: text/html
X-Priority: 1 (Highest)
X-MSMail-Priority: High
Test sendlogs |
Et ensuite, qui execute cette commande :
/usr/sbin/sendmail -t < "$mailTempFile"
Je précise que ce script est de moi, qu'il fonctionne sur un autre serveur qui a aussi postfix installé.
Quand je fais un test pour l'envoi de mail avec cette commande, ça marche très bien :
echo "Test mail from postfix" | mail -s "Test Postfix" steevan.barboyon@gmail.com
Je suis un peu perdu, je ne comprends pas pourquoi ça m'ajoute ce infodroid@ devant l'adresse de mon destinataire
Partager