Martin Orr wrote:
> On 05/12/06 11:12, Anton Basistov wrote:
>>>> Ok. I'll ask from another side.
>>>> Can I configure Courier not to tell me about the wrong addresses? Even if 
>>>> my
>>>> mail client very bad?
> 
> I did this once, using a localmailfilter,

I too

> but I forget the details.

I didn't :-)

>  It is something like:
> Create a catch-all alias whose .courier file bounces messages.

That is a .courier-default in aliasdir. I configure it to dynamically call a
script, e.g. `|| /etc/courier/aliasdir/rcptfilter.sh' or whatever. The script
can either output the real destination address or refuse the mail, thereby
causing a bounce to be generated.

> Write a localmailfilter which rejects a recipient if they are mapped to the
> catch-all alias and the client IP address is not equal to the one with the
> bad mail client, and accepts it otherwise.

This can be done better using the same script called on delivery. When called as
a whitelist filter, the script can decide for an on-line refusal (SMTP error)
rather than a bounce. I posted on this subject on Fri, 27 Oct 2006 20:53:29 
+0200, see e.g.
http://groups.google.it/group/mailing.unix.courier-imap/browse_frm/thread/372a9a716cc333d0/d16bb37e01dfbe8e


-------------------------------------------------------------------------
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

Reply via email to