On 07.01.2010 13:07, Sam Varshavchik wrote:
> Markus Ewald writes:
>
>> Okay, I feel dumb for assuming that there was any magic going on, of
>> course it's just a normal piped command, so I presume I have to run
>>
>> DEFAULTDELIVERY="| /usr/bin/maildrop -V2 -M default"
>
> No. This is not about just passing additional options to maildrop.
> This is a Courier-specific extension.
> See the localmailfilter man page for more information.
>
Thanks! Looks like I took a wrong turn there.
I restored my courierd and added a maildropfilter file instead, containing
/usr/bin/maildrop -V2
'using Gentoo, maildrop is in /usr/bin/maildrop.
Then I created /home/myname/.mailfilters/rcptfilter:
EXITCODE=99 # 99 means content filtering required
exit
and /home/myname/.mailfilters/smtpfilter:
EXITCODE=1 # anything other than 0 means reject
exit
But still:
courieresmtpd: started,ip=[85.25.133.66]
courierd: newmsg,id=#.#.#
courierd:
started,id=#.#.#,from=<[email protected]>,module=local,host=testuser!!1000!1006!/home/testuser!!,addr=<testuser>
courierd: Waiting. shutdown time=none, wakeup time=none,
queuedelivering=1, inprogress=1
courierlocal:
id=#.#.#,from=<[email protected]>,addr=<testu...@myserver>: maildrop:
Changing to /home/testuser
courierlocal:
id=#.#.#,from=<[email protected]>,addr=<testu...@myserver>: Message start
at 0 bytes, envelope sender=myserver
courierlocal:
id=#.#.#,from=<[email protected]>,addr=<testu...@myserver>: maildrop:
Attempting .mailfilter
courierlocal:
id=#.#.#,from=<[email protected]>,addr=<testu...@myserver>,size=1640,success:
Message delivered.
courierd: completed,id=#.#.#
It doesn't seem to invoke my smtpfilter rules. What did I do wrong this
time? :-)
-Markus-
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users