Andy Spiegl wrote:
I want to configure postfix so that it accepts mails for:
us...@example.com (domain name changed)
us...@example.com
and delivers them locally to the users user1 and user2,
but relays any other *...@example.com to the MX of example.com.
I tried putting this into /etc/postfix/virtual :
example.com anything
us...@example.com user1
us...@example.com user2
Now it accepts these two addresses but denies any others:
<us...@example.com>: host xxxxx.de[10.10.10.10] said: 550 5.1.1
<us...@example.com>: Recipient address rejected: User unknown in
virtual alias table (in reply to RCPT TO command)
It this setup possible at all?
Thanks a lot,
Andy.
This should get you started:
# main.cf
mydestination = localhost localhost.example.com
relay_domains = example.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
virtual_alias_maps = hash:/etc/postfix/virtual
# relay_recipients
... list of valid recipients at example.com ...
us...@example.com OK
us...@example.com OK
...
# virtual
us...@example.com us...@localhost
us...@example.com us...@localhost
http://www.postfix.org/documentation.html
--
Noel Jones