[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

procmail filter and amavis bypass



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,
I've been searching the web and maillists for some solutions to my little problem, but has not found it. Hope some of you gurus can help.

First procmail filter.
I have a filter that take mail sent to one of the users from one spesific mailaddress, forward to me and then delete it. I have tested two solutions, I'm far from good at procmail filter so some advise for best filter would be apreciated.
So far I tryed:
:0
* ^From: .*user@domain.com
! ernst@vindal.com
/dev/null

and

:0
* ^From: .*user@domain.com
{
        :0c
        ! ernst@vindal.com

        :0
        /dev/null
}
for me it looks like they do the same, there is some differences in the log only, same result. But i don'n know which one is best to use.

The second is this and amavis. All mail inn and out is scanned by amavis, but when the filter above is executed amavis will scann the same mail again. Is there a way to avoid this?

Thanks

/ernst-magne

Linux-User #310283 with the Linux Counter, http://counter.li.org/
**********               and the man said              **********
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

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

iD8DBQFFBS7TDnAPBn+/v/gRApPWAJ9SV5Xp+o4QZmugyMhgs+H2GO+A6wCeK6yE
hFC8NaURM+qGBKPz0+IQbDM=
=4oeW
-----END PGP SIGNATURE-----



Reply to: