Bonjour,

Pour le pro, je suis chez OVH en prestataire email. J'ai un serveur de relay pour l'expédition des emails (pour plusieurs raison mais je ne vais pas épiloguer…) Il fonctionne très bien sauf pour les messages de non remise. En effet le champs from est vide, du coup OVH me bloque. J'ai donc chercher à imposer / ré-écrire le from pour le bounce. J'ai tenté avec "sender_canonical_maps = regex:…." mais sans succès.

Quand un message n'est pas bien formaté par exemple :
Feb 6 10:28:32 srvtoto postfix/bounce[11866]: 17FAB13D47C1: sender non-delivery notification: DA91E13D47C3

La tentative d'expédition du message de non remise :
Feb 6 10:28:32 srvtoto postfix/cleanup[11863]: DA91E13D47C3: message-id=<20150206092832.da91e13d4...@srvtoto.domaine.com> Feb 6 10:28:32 srvtoto postfix/qmgr[11831]: DA91E13D47C3: from=<>, size=2857, nrcpt=1 (queue active) Feb 6 10:28:32 srvtoto postfix/bounce[11866]: 17FAB13D47C1: sender non-delivery notification: DA91E13D47C3 Feb 6 10:28:33 srvtoto postfix/smtp[11864]: DA91E13D47C3: to=<m...@domaine.com>, relay=smtp.domaine.com[213.186.33.20]:25, delay=0.74, delays=0/0/0.68/0.05, dsn=5.0.0, status=bounced (host smtp.domaine.com[213.186.33.20] said: 555 sorry, invalid MAIL FROM for smtpauth session (http://travaux.ovh.net/?do=details&id=5510) (in reply to MAIL FROM command))
    Feb  6 10:28:33 srvtoto postfix/qmgr[11831]: DA91E13D47C3: removed

Extrait du /etc/postfix/main.cf :
    relayhost = [smtp.domaine.com]:25
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    smtp_use_tls = yes
    smtpd_client_restrictions = permit_mynetworks, reject
    sender_canonical_maps = regex:/etc/postfix/generic
    local_recipient_maps =
    bounce_notice_recipient = r...@domaine.com

Extrait du /etc/postfix/generic :
    /^$/    postmas...@domaine.com

Merci de vos lumières

David
_______________________________________________
Liste de diffusion du FRsAG
http://www.frsag.org/

Répondre à