Postfix Configuration sender

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Postfix Configuration sender

This post has NOT been accepted by the mailing list yet.
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

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?