1

I've got Postfix managing two different domains one.com and two.com, included in the my destination variable of the main.cf file.

I need an /etc/aliases file including something like this:

[email protected]: [email protected]
[email protected]: [email protected]

Since /etc/aliases syntax does not allow me to do this, how can I solve?

1 Answer 1

2

You can use the virtual_alias_maps like so:

virtual_alias_maps  = hash:/etc/postfix/virtualalias

with content like this:

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

Of course, postfix needs to know how to handle the addresses. After that, don't forget to postmap /etc/postfix/virtualalias and to reload Postfix.

Read http://www.postfix.org/VIRTUAL_README.html

You must log in to answer this question.

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