On 2006-09-19 15:14, Jay Lee wrote: > I've been using .courier extensions for some time and have a certain one > that is getting spammed regularly that I'd like to reject mail to. I > currently have a .courier-default file for my account as well as a few > other .courier-whatever files with specific instructions. But what I'm > not sure is how I can reject mail to one given extension without getting > rid of .courier-default. I know I could create a .courier-badextension > with delivery instructions to /dev/null or such but I'd like to reject the > mail outright with a 5xx error right after the RCPT TO: is sent instead of > accepting the mail into the queue. Is this possible with .courier > instructions or should I be doing this in a rcptfilter? >
For such cases I use a "spamtrap [EMAIL PROTECTED]" entry in /etc/courier/bofh . I think with a filter solution a mail can only be rejected at smtp level with a rcptfilter, because its immedeatly executed after RCPT TO. localmailfilter man page: --- Recipient filters When Courier receives an address naming a local mail recipient, the local mail recipient’s mail filter is executed before Courier acknowledges the address. The local mail filter tells Courier whether to: A) accept message uncondition- ally - the message is whitelisted; B) reject the message unconditionally - Courier tells the mail server that the recip- ient address is invalid; or C) accept this recipient, but run the content mail filter, once the message’s contents are available --- -- Georg ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
