On Thu, 2007-01-11 at 12:44 +0100, Manuel Schneider [Everything Open]
wrote:
> > My solution: I have set up the backup mx system as usual and then do a
> > "esmtpd stop". A simple script (executed once a few minutes) tests
> > availability of the primary mx system (just connect, HELO and QUIT). If the
> > primary seems down, "esmtpd start" gets executed. When the primary is there
> > again, esmtpd gets stopped.
> 
> That's a nice idea!
> 
> However, nobody answered my original question.
> I still want to be able to filter mails which aren't delivered locally. This 
> does also apply for mails which will be aliased to an adress at another host.
> 
> Greets,
> 
> Manuel

>From courier man page:
....
enablefiltering
    This configuration file enables the global  mail  filtering  API
    for  selected mail sources.  This file, if it exists, contains a
    single line of text that specifies which kind of  mail  will  be
    filtered. The possible values are:

    esmtp  Enables  global  mail  filtering  for  mail  received via
           ESMTP.

    local  Specifies that mail received from logged  on  users,  via
           sendmail,  and mail forwarded from dot-courier(5) will be
                     filtered using the global mail filtering API.

    uucp   Specifies that mail received from UUCP will be  filtered.

 If  you want to specify more than one source of mail, such as ESMTP and
 local mail, specify both esmtp and local, separated by a space  charac-
 ter.

 Note:  The global mail filtering API is described, in detail, in
 the courierfilter(8) manual page.  This is NOT  the  traditional
 user-controlled  mail  filtering, such as maildrop(1).  A global
 mail filter is a daemon  process  that  selectively  accepts  or
 rejects incoming mail, based on arbitrary criteria.
....

I have file '/etc/courier/enablefiltering' with one line: 'local esmtp'
and everything is filtered via clamcour installed as global mail filter.

Keep in mind that global filtering cannot alter emails! Global filters
just accept or reject email. This is good for virus checking and not
good for spam ( at least for me ).
  

Best regards,
Svetozar


-------------------------------------------------------------------------
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
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to