OSEC

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

From: Brian Evans - Postfix List (grknightscent-team.com)
Date: Tue Dec 02 2008 - 14:10:37 CST


Cengiz Vural wrote:
> hello all,
>
> I am trying to place some restrictions on a local user account. I
> would like to redirect any emails sent from a specific user to another
> local user regardless of what email address the user enters in the
> recipient list.Is it possible to do this with postfix?
>
> In summary, whenever userlocalhost sends an email, I want that email
> to be delivered to user2localhost only.
>
Use an alias. Example:

alias_maps=hash:/etc/postfix/aliases
(This is a guess, it only works with local(8) delivery. If other, use
virutal_alias_maps.)

/etc/postfix/aliases:

userlocalhost user2localhost

Brian