OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Resolve some addresses and relay some addresses for a domain

From: Rolf E. Sonneveld (R.E.Sonneveldsonnection.nl)
Date: Mon Dec 03 2007 - 08:07:07 CST


Hi,

running Postfix 2.4.6.

I've waded through a large number of messages in the archives, but have
not found yet the right solution. Can someone point me in the right
direction. What I want to achieve is the following:

Postfix is located between Internet and an application server. Let's say
the application server has domain 'application.domain.com'. Within
'application.domain.com' there are two groups of addresses:

   1. some of the addresses must be mapped to another address and then
      delivered. E.g. postmasterapplication.domain.com must (on the
      envelope level) be rewrittten to rootsome.other.system and
      delivered there.
   2. some of the addresses must not be mapped, they only have to be
      checked and if existing, the mail must be relayed to the
      application, without altering the envelope To address. So, just relay.

Ad 1. would suggest the use of virtual_alias_domains and virtual_alias_maps.
Ad 2. would suggest the use of relay_domains and relay_recipient_maps

Can somebody provide me with some pointers and steps on how to achieve
what I want: resolving some addresses, relaying others, within the same
domain?

/rolf