List Info

Thread: virtual domains, aliases, postfix and Maia




virtual domains, aliases, postfix and Maia
user name
2006-11-20 20:15:07
Hello,

I am unsure whether this question is a postfix question or a maia question, but any help you can give me is much appreciated.
I have postfix using maia as a content filter for several virtual domains.  The domain, mailbox and alias info is stored in sql, here is the postfix main.conf section:

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:111
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1
virtual_transport = virtual
virtual_uid_maps = static:104

And I call Maia with:

content_filter=smtp-amavis:[127.0.0.1]:10024


And life is good, or so I thought.  But somehow, aliases are not always being dereferenced into their final destination before hitting Maia. ; I've narrowed it down to this: aliases within the same domain ( aa.com">aa.com -> ba.com">ba.com) are de-aliases prior to content filtering and work great.  But, aliases in a different domain ( aa.com">aa.com -> ab.com"> ab.com) do not get de-aliased until virtual is called to deliver the message.  I am not sure what causes this behavior, it would seem to be a postfix thing. 

So I have 2 questions, 1 - Does anyone know what might cause this behavior? and 2 - Can I call Maia later in the process, perhaps from virtual itself if virtual if the only thing that understands the aliases?  Reading the docs make me think that cleanup is supposed to be doing the de-aliasing, but all my experiments with cleanup yield the same results, only virtual seems to know about all the aliases.

Confused,
Aaron

virtual domains, aliases, postfix and Maia
user name
2006-11-20 20:52:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Wolfe wrote:

> So I have 2 questions, 1 - Does anyone know what might
cause this
> behavior? and 2 - Can I call Maia later in the process,
perhaps from
> virtual itself if virtual if the only thing that
understands the
> aliases?  Reading the docs make me think that cleanup
is supposed to be
> doing the de-aliasing, but all my experiments with
cleanup yield the
> same results, only virtual seems to know about all the
aliases.

More than likely your questions will be answered by
<https://secure.renaissoft.com/maia/wiki/Addresses>.
 Specifically, you
want the second proposed solution--delaying address
rewriting until
after amavisd-maia, as explained there with instructions for
Postfix.

- --
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFYhWZGmqOER2NHewRAkspAJ9KtLsT/tX95NZKpLYfvswynybh8gCe
MMoc
aZpAEfOBt9ZHVcPMo5EGX2w=
=LG60
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )