OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: UNIX and non-UNIX accts.

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Sat Oct 29 2005 - 14:25:30 CDT


Am Saturday 29 October 2005 05:42 schrieb brian:

> I have Postfix to reject mail for addresses (under $mydomain) for which
> there is no UNIX account:
>
> local_recipient_maps = unix:passwd.byname $alias_maps
>
> However, i'd now like to be able to receive messages for some other
> addresses as well. eg. foomydomain.com, where there is no foo user. And
> i'd like to be able to access the mail through Cyrus-IMAP. Obviously
> $alias_maps (/etc/postfix/aliases) is not the place to list that address.

/etc/postfix/non-unix-accounts:
non-unix-account1 something
non-unix-account2 something
...

# postmap hash:/etc/postfix/non-unix-accounts

/etc/postfix/main.cf:
local_recipient_maps = unix:passwd.byname $alias_maps
        hash:/etc/postfix/non-unix-accounts

> I thought, for a moment, that i'd found the answer in
> virtual_mailbox_maps, but i can't see how that would work with Cyrus, as
> the mailboxes under virtual_mailbox_base are not under Cyrus's control.
>
> Reading the docs and googling has my head spinning. Could somebody point
> me to the correct file?

--
        Andreas