OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
One domain used by virtual_alias_maps AND transport_maps?

From: Daniel Funke (d.funkedouglas-informatik.de)
Date: Mon Dec 08 2008 - 11:37:42 CST


Hi,

I have a postfix gateway sending mails to accounts on different backend
systems and to local maildirs for imap. But the destination of an email
should depend from the single recipient address not from the complete
destination domain.

I'll try to explain it with my testdomain "example.com". My config is below.

In the transport you can see addresses which are redirected to an
exchange-server without changing the recipient address. In the virtual I
have addresses for local maildirs (funked03) and for backend systems
needing a rewrite of the recipient address (dfunkenotes-in.local). In
the last line the infoexample.com at the right hand side is needed to
look for this address in the transport.

If I haven't missed something all works as I want. Mails to unknown
recipients are rejected.

But I found the information that it's never allowed to list a virtual
domain in mydestination. Do you have any idea how to do this better or
dou you think I could operate a system in this config without any trouble?

Best regards,

Daniel

------------------------------------------------------------
main.cf:
--------
mynetworks = 127.0.0.0/8
mydestination = $myhostname, localhost.$mydomain, localhost, example.com
transport_maps = hash:/etc/postfix/transport
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual
local_recipient_maps = hash:/etc/postfix/transport

transport:
----------
d.duckexample.com smtp:[192.168.1.10]
infoexample.com smtp:[192.168.1.10]
notes-in.local smtp:[192.168.1.120]

virtual:
--------
d.funkeexample.com funked03
d.notesexample.com dfunkenotes-in.local
infoexample.com dfunkenotes-in.local, funked03, infoexample.com
------------------------------------------------------------

--
DIS - Network Services/Executive Solution Center

DOUGLAS Informatik & Service GmbH - Kabeler Str. 4, D-58099 Hagen
http://www.douglas-informatik.de
Handelsregister Hagen HRB 1051
Geschaeftsfuehrer: Olaf Schrage - Prokurist: Stephan Borkenfeld - Prokurist: Dr. Martin Kiel