[Avcheck] postfix+cyrus+avcheck = virtual users problem

Stefano Tabacchiera s.tabacchiera@gruppocsf.com
Sat, 27 Apr 2002 13:46:48 +0200


Hi there,
RedHat7.2 Linux box running postfix-1.1.7+pgsql patch, cyrus 2.0.16,=20
avcheck-0.8.

I have virtual users on a pgsql table.
Postfix does alias expansion, then delivers to cyrus over lmtp.
Note: I'm using postfix-style virtual-domains, so foo@virtual.com is an a=
lias=20
for the cyrus-style-mailbox user 'bar', but foo@`hostname` is NOT.

from main.cf:
mailbox_transport=3Dlmtp:127.0.0.1
fallback_transport=3Dlmtp:127.0.0.1

The problem has begun since I installed avcheck as content_filter over sm=
tpd.
That's what - I think - happens:

1) someone sends mail to foo@virtual.com
2) postfix does alias expansion over pgsql. The local user 'bar' is selec=
ted.
3) then the message passes through the content filter.
4) After filter processing, the message is reinjected into smtpd over=20
localhost:1025 (no content filter here).
5) A ***NEW*** alias expansion (bar@`hostname`) is tried. But that's not=20
anymore an alias.
6) The query fails and the result is 550:user unknown.
7) The user bar never receive mail.

Any clue?
Thanks all.

--=20
-----------------------------------------------------
Stefano Tabacchiera
CSF Sistemi S.r.l.
03012 - Anagni (FR)  - Italy
phone: +39 775 7771
fax: +39 775 727112
email: s.tabacchiera@gruppocsf.com
-----------------------------------------------------