3 msgServer configuration Error
1 msgrelay_transport
1 msgCatch-all mailbox
4 msgTrouble with HTC S710 device and SMTPS
3 msgpsotfix server TLS failed
3 msgfailed-delivery message notifications setup
2 msgproxy_interfaces understanding
1 msgwarning: transport virtual failure
2 msghow to relay for most recipients and forward fo...

Rewriting outbound addresses
\ Jay Chandler (16 Jan 2008)
. \ Victor Duchovni (16 Jan 2008)

2 msgvirtual mailboxes/domains and aliases
3 msgEnforced TLS Success?
1 msgPostfix 2.5 RC2 and snapshot release
11 msgProblem with Postfix and LDAP (SSL / TLS)
4 msgMore on Enforced TLS
3 msgdelivery reciept
4 msgHow to repeat delay_warning_time messages ?
2 msgsender notification
5 msgUsing 'nolisting' to reduce spam
1 msgmail priority by sender
Subject:Re: Rewriting outbound addresses
Group:Postfix-users
From:Victor Duchovni
Date:16 Jan 2008


 
On Wed, Jan 16, 2008 at 12:35:05PM -0800, Jay Chandler wrote:

> I have an internal server relaying through our gateway.
>
> I want to rewrite all outbound addresses from user
> to user.
>
> Do I want to use smtp_generic_maps to achieve this? If so, how?

@host.example.com @example.com

if there are a lot of hosts to rewrite and/or their names change
frequently, you can use a pcre/regexp generic table:

/^(.*)@[^@]+\.example\.com$/ ${1}@example.com

--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


© 2004-2008 readlist.com