From: Warrick FitzGerald (no email)
Date: Tue Mar 01 2005 - 18:03:48 EST
Magnus Bäck wrote:
>On Tuesday, March 01, 2005 at 23:11 CET,
> Warrick FitzGerald <> wrote:
>
>
>
>>I'm looking for a way to maintain the original email address that the
>>email was sent to in the mail header:
>>
>>
>
>Since Postfix 2.0 this is recorded in the X-Original-To header.
>
>
>
>>Here's why:
>>
>>Many of my user have their own personal domains that have catchall
>>accounts. For example:
>>
>>Bob Smith owns the domain Smith.com
>>
>>When he subscribes to cnet news he uses the address
>>knowing that any email sent to smith.com will end up in his inbox.
>>
>>He now want to setup a rule saying when an email arrives for cnet.news
>>put it into the cnet.news folder. The problem is that the mail header
>>"To:" field is modified to the true user account of .
>>
>>How can I maintain the original email address int he To: field?
>>
>>
>
>Postfix does not modify the To: header unless you explicitly configure
>it to do so (via e.g. canoncial_maps).
>
>
>
Thanks Magnus,
But that does not seem to be what's happening in my case (I don't seem
to get any X-Original-To header ):
I'm running postfix-2.1.4-2
===========
[root at livemail1 postfix]# rpm -qa | grep postfix
libpostfix1-2.1.4-2mdk
postfix-2.1.4-2mdk
===========
With the following config:
===========
[root at livemail1 postfix]# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 3
debug_peer_list = 10.10.50.49, 206.65.169.152
delay_warning_time = 4h
html_directory = /usr/share/doc/postfix-2.1.4/html
ignore_mx_lookup_error = no
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 100240000
mynetworks = 127.0.0.0/8, 10.10.50.0/24, 206.65.169.0/24
mynetworks_style = subnet
myorigin = crtman.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.4/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.4/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
smtpd_client_restrictions = permit_mynetworks, permit_auth_destination,
permit_sasl_authenticated, reject
smtpd_recipient_restrictions = permit_sasl_authenticated
permit_mynetworks, reject_invalid_hostname,
reject_non_fqdn_sender, reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_destination,
reject_unauth_pipelining reject_non_fqdn_hostname
smtpd_sasl_application_name = smtpd
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/newcert2.pem
smtpd_tls_key_file = /etc/postfix/newreq2.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:/etc/postfix/virtual,
hash:/etc/postfix/maps/reuvers_com,
hash:/etc/postfix/maps/domain.com,
hash:/etc/postfix/maps/livetechnology_com
virtual_mailbox_domains = crtman.com, sporter.net,
test2.livetechnology.com, reuvers.com, domain.com, livetechnology.com
virtual_transport = cyrus-deliver
==========
Thanks
Warrick
|
|
|