On 9/16/2012 5:46 PM, Neil Aggarwal wrote:
>> it looks like you want 
>>        http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox 
>> but you tried 
>>        http://www.postfix.org/VIRTUAL_README.html#virtual_alias 
> 
> All of my user accounts are system accounts so it looks like
> virtual_alias is a better fit for my needs. 
> 

Yes, that should work nicely.

Note that for virtual_alias_domains, the domain *must* be rewritten
to a different domain.  Typically, this is done with something like:
# main.cf
mydestination = localhost localhost.example.com
virtual_alias_domains = virtual.example.com

# virtual_alias
# NOTE: best to use fully-qualified domain names here
us...@virtual.example.com  us...@localhost.example.com


Optionally, you may want to prevent outsiders from sending mail
directly to u...@localhost.example.com:

smtpd_recipient_restrictions =
  permit_mynetworks
  permit_sasl_authenticated
  reject_unauth_destination
  check_recipient_access hash:/etc/postfix/nolocal

# /etc/postfix/nolocal
localhost.example.com  REJECT no such recipient




  -- Noel Jones

Reply via email to