Hi all,

I use postfix for a while as a "direct" mailer, but I have to setup a postfix box as relay ... and It look like postfix rewrite the Return-Path header. I use PHPMailer to send the mail to postfix (on an other port than 25) and postfix make the final delivery (it's working fine except for the Return-Path changed with the FROM header).

I checked the Debug of PHPMailer to see exactly the SMTP dialog and I got the correct Return-Path header ...

2014-05-27 13:13:55 CLIENT -> SERVER: Date: Tue, 27 May 2014 15:13:55 +0200 2014-05-27 13:13:55 CLIENT -> SERVER: Return-Path: <mycorrectreturnp...@thedomaine.com>

is there a parameter to set for postfix not to touch the Return-Path ? and why setting a return path would be offending ? (I use it a lot for my stats and bounce managing ...)

my postfix main.cf :

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
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_recipient_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = nameserversmtp.ledomaine.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ledomaine.com, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128xxx.xxx.xxx.xxx/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

Thanks for your help, and thanks for postfix, the best ever !

Stéphane


Reply via email to