Hello,

I use Postfix as a SMTP mail relay for our web servers to send notifications 
email.
This Postfix relay is also configured to relay through our Google Apps relay 
(and this one only accept email from our GApps domain)
So, I want Postfix to rewrite enveloppe From and header From to a unique value 
: nore...@ivsweb.com.

With the configuration bellow, it's working fine :

# postconf -n
alias_database =
alias_maps =
always_add_missing_headers = yes
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
local_header_rewrite_clients = static:all
local_recipient_maps =
local_transport = error:5.1.1 Mailbox unavailable
mailbox_size_limit = 25600000
message_size_limit = 25600000
mydestination =
mydomain = ivsdomain.fr
myhostname = ivsfrsrv-mailer.ivsdomain.fr
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/12 
172.19.0.0/16 192.168.31.0/24
myorigin = $mydomain
readme_directory = no
recipient_delimiter = +
relayhost = [smtp-relay.gmail.com]:587
sender_canonical_maps = regexp:/etc/postfix/canonical
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = encrypt
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_mynetworks, reject
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_restrictions = check_recipient_access 
mysql:/etc/postfix/bouncehammer.cf, permit_mynetworks, reject_unauth_destination

# cat /etc/postfix/canonical
/./ nore...@ivsweb.com

The problem is when there is a Reply-To header, this header is also rewritten 
and I don’t want that.
I try to set canonical_classes = envelope_sender, header_sender, but Reply-To 
is still rewritten.

Can you tell me what am doing wrong ?

Thank you

Alexandre


Reply via email to