|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Daniel Funke (d.funke
douglas-informatik.de)
Date: Mon Dec 08 2008 - 11:37:42 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 (dfunke
notes-in.local). In
the last line the info
example.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.duck
example.com smtp:[192.168.1.10]
info
example.com smtp:[192.168.1.10]
notes-in.local smtp:[192.168.1.120]
virtual:
--------
d.funke
example.com funked03
d.notes
example.com dfunke
notes-in.local
info
example.com dfunke
notes-in.local, funked03, info
example.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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]