Jerome Bullert wrote:
> Is there no way to reject any message once the process reaches 
> /usr/lib/courier/etc/aliasdir/.courier-default ? (neither when running an 
> external program nor when generating dynamic delivery instructions?)

You cannot reject from there, because the message has already been 
accepted when it is being delivered. However, Courier has two layers 
of filtering that come into play while the message is still "on the 
wire": rcpt filters and global filters.

Rcpt filters are called for local recipients, before the body is 
received. They are described in the localmailfilter (7) man page. You 
may arrange to call the aliasdir filter two or three times for each 
message recipient: on the first call you have the option to reject the 
message having seen only its envelope; on an optional intermediate 
call you may still reject the message having seen also its content; on 
the last call --delivery-- you possibly alter and save the message 
content. Maildrop syntax and filenames differ from delivery mode ones. 
For an example that does not use maildrop for rcptfiltering see 
http://www.mail-archive.com/[email protected]/msg27715.html

Global filters are called after the body has been received but before 
it has been accepted, for both incoming and outgoing messages. Bowie 
has already posted useful hints about them.































------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to