|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Randy Ramsdell (rramsdell
livedatagroup.com)
Date: Tue Mar 04 2008 - 14:05:23 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Maurizio Lo Bosco wrote:
> Hello,
> I have shared domains with local and remote mailboxes.
>
> I have configured the virtual_alias_domains and virtual_alias_maps but I have
> this strange behaviour:
> let's suppose that the domain is mydomain.com and that I have one account for
> user1
mydomain.com
> if I write to user1
some.other.server.com this mail is delivered to
> user1
mydomain.com
>
> It seams that the server is ignoring the virtual_alias_domains and rewrite
> everything is mathing the map query. In case of no matching in
> virtual_alias_maps it forwards remotely to the correct relay.
> This is the output of postconf -n
> -------------------
>
>
<snip>
> mydestination = mail.mydomain.com, localhost.$mydomain, localhost $myorigin
> myhostname = mail.mydomain.com
> mynetworks = 127.0.0.0/8, 192.168.0.0/16, ddd.ddd.ddd.ddd/32
> myorigin = mail.mydomain.com
>
>
Nothing here says it should accept mail for user1
some.other.server.com
> virtual_alias_domains = mydomain.com, otherdomain1.com, otherdomain2.com
> virtual_alias_maps = ldap:/etc/postfix/ldap_maps_internal.conf,
> ldap:/etc/postfix/ldap_maps_alias.conf,
> hash:/var/lib/mailman/data/virtual-mailman,
> hash:/etc/postfix/virtual-aliases, ldap:/etc/postfix/ldap_maps_external.conf,
> hash:/etc/postfix/virtual, unix:passwd.byname
>
<snip>
> I can not figure out where the problem is because the delivery to every local
> user is working.
> Thanks
> Maurizio
>
We use :
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
An entry in virtual:
user1
anotherdomain1 user1
anotherdomain2
Then we run postmap virutal /etc/init.d/postfix reload.
Not sure why this mail server is accepting mail for every domain on the
planet when you have a local user. Wouldn't it use the MX
some.other.server.com ?
Not much help, I know. Maybe a log of one of the messages would help.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]