|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Domains mapping
From: Arnaud Launay (asl
launay.org)
Date: Thu Jan 04 2007 - 10:26:31 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I've got a small problem with domains mapping on MX:
On the MX, things are defined as:
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-mydestination.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-mailbox.cf
virtual_alias_maps = hash:/usr/local/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual.cf, regexp:/etc/postfix/generic-aliases.cf
smtpd_recipient_restrictions =
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unknown_recipient_domain,
check_recipient_maps,
permit
I have several domains like
foobar.net
foobar.com
in virtual_alias_maps for which mails are delivered without any
problem in the right virtual user (like foo
foobar.com).
If it rejects as wanted unknown users for canonical domains:
250 smtp.foo.bar
mail from: asl
foo.bar
250 Ok
rcpt to: test
foobar.com
550 <test
foobar.com>: Recipient address rejected: User unknown
smtpd -v shows that
Jan 4 15:56:48 pomme postfix/smtpd[6124]: maps_find: virtual_alias_maps:
foobar.com: not found
Jan 4 15:56:48 pomme postfix/smtpd[6124]: mail_addr_find: asl
foobar.com -> (not found)
Jan 4 15:56:48 pomme postfix/smtpd[6124]: maps_find: relay_recipient_maps: asl
foobar.com: not found
it doesn't for mapped domains:
250 smtp.foo.bar
mail from: asl
foobar.com
250 Ok
rcpt to: test
foobar.net
250 Ok
smtpd -v:
Jan 4 17:21:53 pomme postfix/smtpd[7153]: maps_find: virtual_alias_maps: hash:/etc/postfix/virtual_alias_maps(0,100):
foobar.net =
foobar.com
Jan 4 17:21:53 pomme postfix/smtpd[7153]: mail_addr_find: arna
foobar.net ->
foobar.com
Jan 4 17:21:53 pomme postfix/smtpd[7153]: generic_checks: name=check_recipient_maps status=0
Seems that in the first it does NOT check relay_recipient_maps,
as it was in the virtual_alias_maps ?!?
Is it me, did I do something wrong, or did I just twisted the
config so that it does what I want by accident ?
Arnaud.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]