Michelle Konzack writes:

Hello *,

in one of my catchall domains I  have  to  handel  over  6 million  (and
increasing)  recipients  and  I  have  an  executable  which  check  the
recipient against the PostgreSQL database and the executable is working.

But now, I do not know, how to include it into courier...

How must I setup the localmailfilter that this is working?

The only argument my executable need is the RECIPIENT and  then  it  set
exit code to 0, 1 and 99 accordenly to "man 7 localfilter".

The only way to get this to work is to employ a virtual domain alias pointing to a single account, with a .courier-default file handling the delivery to each address.

Then, set up a corresponding $HOME/.mailfilters/rcptfilter-default file, with the permissions as indicated in the localmailfilter man page.

You should be able to retrieve the recipient's address from the MAILFILTER variable.

A rcptfilter cannot invoke an external program. Some commands in a rcptfilter are disabled, as indicated in the maildropfilter man page. Your rcptfilter-default file should include a maildroprcs file that invokes your external program.

Note that you must understand both shell and maildrop variable expansion rules. With this naive approach:

  `| /usr/bin/rcptchk $MAILFILTER`

  exit $RETURNCODE

Someone sending you a mail addressed to:

RCPT TO:<;rm -rf /etc/[email protected]>

will give you lots of fun things to do for the remainder of the day.



Attachment: pgp72CsfCZTtj.pgp
Description: PGP signature

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to