1

I have postfix with configuration like this:

/etc/postfix/main.cf

virtual_alias_maps  =   hash:/etc/postfix/virtual
virtual_mailbox_domains =   /etc/postfix/vdomains
virtual_mailbox_base    =   /VMAIL
virtual_mailbox_maps    =   hash:/etc/postfix/vusers
virtual_minimum_uid =   1000
virtual_uid_maps    =   static:5000
virtual_gid_maps    =   static:5000

/etc/postfix/vusers

[email protected]         domain.com/boss/
[email protected]       domain.com/editor/
[email protected]       domain.com/novini/

/etc/postfix/virtual

[email protected]   [email protected]

It currently works ok, but I want when:

Someone sent mail to [email protected], the email to be stored in both domain.com/editor/ and domain.com/novini/. Also I want a copy of the email to be forward to person personal email - [email protected]

Same if someone sent to [email protected], the email to be stored in both domain.com/editor/ and domain.com/novini/. In this case I do not want any email to be sent to [email protected]

How is easier way to set up this with virtual_mailbox_maps?

1 Answer 1

2

You need to add following in virtual

/etc/postfix/virtual

[email protected]   [email protected]
[email protected]        [email protected], [email protected], [email protected], [email protected]
[email protected]        [email protected], [email protected], [email protected], [email protected]

postfix is smart, so it does not "loop".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .