Re: [courier-users] filtering mail in a backup-mx

2007-01-11 Thread Manuel Schneider [Everything Open]
 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
-- 
-
All-Things-Open Projektgruppe

[EMAIL PROTECTED]
-
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM d-- s:- a? C++$ UL P+ L+++$ E- W+++$ N+ o-- K- w--$ O+ M+ V
PS+ PE- Y+ PGP+ t 5 X R UF !tv b+ DI D+ G+ e h r y++ 
--END GEEK CODE BLOCK--

-
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.phpp=sourceforgeCID=DEVDEV
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-11 Thread Svetozar Mihailov
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.phpp=sourceforgeCID=DEVDEV
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-10 Thread Sam Varshavchik

Manuel Schneider [Everything Open] writes:


Hi,

I use courier-mta at another machine which acts as a backup-mx. It doesn't 
have any local users, just a few domains in its esmtacceptmailfor.


This works great so long, but I'd like to pipe all mails through spamassassin 
and clamassassin. A setup using maildrop and xfilter already exists from the 
primary mx, but how to implement a filter for mails which are just queued and 
not delivered locally?


Any ideas?


Yes.  Get rid of your backup MX.  A backup MX is no longer needed on the 
modern Internet.




pgpTWqkpYty3z.pgp
Description: PGP signature
-
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.phpp=sourceforgeCID=DEVDEV___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-10 Thread Manuel Schneider [Everything Open]
  Any ideas?

 Yes.  Get rid of your backup MX.  A backup MX is no longer needed on the
 modern Internet.
Very funny.


-- 
-
All-Things-Open Projektgruppe

[EMAIL PROTECTED]
-
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM d-- s:- a? C++$ UL P+ L+++$ E- W+++$ N+ o-- K- w--$ O+ M+ V
PS+ PE- Y+ PGP+ t 5 X R UF !tv b+ DI D+ G+ e h r y++ 
--END GEEK CODE BLOCK--

-
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.phpp=sourceforgeCID=DEVDEV
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-10 Thread Sergiy Zhuk
hi

On Thu, 11 Jan 2007, Manuel Schneider [Everything Open] wrote:

  Yes.  Get rid of your backup MX.  A backup MX is no longer needed on the
  modern Internet.
 Very funny.

He's right, unless your backup MX can reject mail for non-existent users at
your domain instead of accepting it, so you could bounce it later creating
backscatter.

-- 
rgds,
serge

-
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.phpp=sourceforgeCID=DEVDEV
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-10 Thread Gordon Messmer
Manuel Schneider [Everything Open] wrote:
 Any ideas?
 Yes.  Get rid of your backup MX.  A backup MX is no longer needed on the
 modern Internet.
 Very funny.

What makes you think it's a joke?  I'll admit, I have a backup MX at the 
site where I work, but that's only for political reasons.

A backup MX's job is to accept mail when your primary system can't, but 
remote sites are going to queue mail and retry delivery anyway.  You're 
not going to hurt site reliability by taking down you backup MX.

In practice, backup MXs are just spam targets these days.  Most sites 
that still have them don't protect them as well as their primary 
systems, so that's where many spammers deliver their mail.  Drop it and 
concentrate your efforts on one system.  You'll be happier with the results.

-
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.phpp=sourceforgeCID=DEVDEV
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] filtering mail in a backup-mx

2007-01-10 Thread Bernd Wurst
Hi.

Am Donnerstag, 11. Januar 2007 08:39 schrieb Gordon Messmer:
 A backup MX's job is to accept mail when your primary system can't, but
 remote sites are going to queue mail and retry delivery anyway.  You're
 not going to hurt site reliability by taking down you backup MX.

Two things here:
1. On your own backup-mx, YOU can control how long messages are queued and 
whether or when they are bounced.
2. YOU can re-deliver waiting messages when YOU want. So when you re-awake 
your primary mx, you just courier flush on the backup mx and the messages 
are there.


 In practice, backup MXs are just spam targets these days.  Most sites
 that still have them don't protect them as well as their primary
 systems, so that's where many spammers deliver their mail.  Drop it and
 concentrate your efforts on one system.  You'll be happier with the
 results.

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 combines both, availability in case of a failure and 
backscatter-protection.

cu, Bernd

-- 
Wenn du eine helfende Hand brauchst - du findest sie am Ende deines rechten 
oder linken Arms.


pgpS1IVPL9juc.pgp
Description: PGP signature
-
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.phpp=sourceforgeCID=DEVDEV___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users