OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Creating alias

From: mouss (mlist.onlyfree.fr)
Date: Thu Jan 03 2008 - 03:53:13 CST


Carlos Sánchez wrote:
> thanks for the advice.
>
> I am using virtual domains, with this explication then alias_maps doesnt
> work with virtual domains, and how i can create alias with virtual domains?

there are many ways.

1. use a virtual alias to redirect to a local account:
fooexample.com foobarlocalhost.example.com

then use alias_maps for "foobar" to run the command. make sure
localhost.example.com is under mydestination and you did not disable
local delivery.

2. create a transport in master.cf and add a transport_maps entry. see
the MAILDROP README for an example on how to do this (the MAILDROP
README shows how to run maildrop).

3. run your script from maildrop