Hi, i have to configure postfix in this mode:
- if i receive a mail from a@a.a relay to [RELAY HOST A]
- if i receive a mail NOT from a@a.a relay the mail to user "test" that is on localhost
For the first rule i do this in main.cf:
sender_dependent_default_transport_maps = hash:/etc/postfix/sender_check
# cat sender_check
a@a.a [RELAY HOST A]
For second rule this:
virtual_alias_maps = regexp:/etc/postfix/all
# cat all
/.*/ test
All the two rules is working good if i put just one in the configuration.
If i put all the two rules all mail go into user test.
Any help please?