Hi,

In preparation for moving my mailservers to courier, I've been playing
with the various filtering possibilities in courier. I'm thoroughly
impressed with the power of maildrop, localmailfilter and courierfilter.

For the moment, my focus is with various DNSBL-based options.

Currently, my production servers run a heavily patched version of qmail,
with a heavily patched version of rblsmtpd. The combination of the two
allows for the adding of an 'X-DNSBL' header to the message if
appropriate, in addition to temporary or permanent errors. This happens
globally; if you receive mail through my mailserver, you get these
headers.

I'm trying to achieve the same using courier, preferably using filters
rather than a patch.

Now, I have a bunch of questions.

- I interpret the maildrop(1) manpage to say that if maildrop is
  run from a .courier file, it is run in _manual_ mode. Is this 
  correct?

- courierfilter does not appear to provide for modifying the message (or
  perhaps by reading from the filehandle, writing out to a temporary
  file, and then moving that file over the input file? Seems ugly, and
  certainly not the intent of the interface.)

- localmailfilter clearly can't modify the headers in the rcptfilter
  stage, since it doesn't have any message data at that point. Calling
  reformail using xfilter by having an smtpfilter file with an include
  from /etc/courier/maildroprcs delivers the message unmodified as well.
  Is this possible using localmailfilter?

I could achieve the desired result by checking DNSBLs from .mailfilter
or /etc/maildroprc, but at that point the environment variables set by
couriertcpd are no longer available, and I'd like to avoid the extra
program executions that doing the various DNS lookups there would
require.

So far, I haven't been able to get perlfilter to work, but that's
probably my own fault :)

If I've missed something blatantly obvious from the documentation, I'd
appreciate a pointer.

Thanks!

Vince.

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to