5 msgpostconf not displaying all options
3 msgempty_address_recipient not mapped by virtual o...
5 msgstop smtp from anyone unless sasl auth?
2 msg'piped' aliases & DSNs
12 msgStrange From: in headers
5 msgMail - Access Denied
4 msgqpsmtpd support service for postfix
39 msgpix workaround broken?

X-Original-To after bcc contains wrong address
\ Benjamin Schmidt (23 Jul 2007)
. \ Benjamin Schmidt (23 Jul 2007)

8 msg/usr/lib/sendmail delivery status/message id's ...
23 msgRecommended Filesystems?
8 msgMail going to backup server instead main server
3 msgoutgoing rate control
5 msgmail forwarding loop: how do I prevent this?
5 msgServer relaying existing virtual mailbox
1 msghow can I rewrite the Mail From
3 msgConstant connections from user unknown sending ...
2 msgsporadic deferrals
8 msgtransport_maps: different behavior if discard o...
4 msgAddress verification questions
Subject:Re: X-Original-To after bcc contains wrong address
Group:Postfix-users
From:Benjamin Schmidt
Date:23 Jul 2007


 
OK, found the solution. The header "X-Original-To" contains the original
recipient-address if we use alias instead of bcc.

Replaced "recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps.cf"
with "virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf"


Best regards,
Benjamin Schmidt



Benjamin Schmidt wrote:
> Hello list members
>
> Have another problem. I need to pipe all emails to a perl-script, while
> keeping the original recipient address (in "X-Original-To"). But this
> doesn't work by me, like its descripted in thread
> http://www.webservertalk.com/archive281-2004-8-363421.html.
>
> ---
> recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps.cf
> * alias
>
> transport_maps = hash:/etc/postfix/transport_maps.cf
> alias virtual_alias_maps:
>
> virtual_alias_maps unix - n n - -
> pipe
> flags=O user=nobody argv=/usr/lib/postfix/mysql_alias_lookuptable
> --lookuptable=/etc/postfix/mysql_virtual_alias_maps.cf sender=${sender}
> recipient=${recipient}
> ---
>
> In the perl-script but i do have
> "alias" as "X-Original-To".
>
>
>
> Only the pipe-flag F works, but I prefer "X-Original-To":
>
> Received: from [192.168.0.104] (unknown [192.168.1.1])
> by amnesix.t-p.com (Postfix) with ESMTP id C7A2D1140B5
> for <b.schmidt>; Mon, 23 Jul 2007 10:46:15 +0200 (CEST)
>
>
> As descripted in the thread (see above link), this scenario should work
> without problems.
>
> Does anyone know what I did wrong?
>
> Thanks in advance,
> Benjamin Schmidt
>
>
>
>



© 2004-2008 readlist.com