Re: spamd in combination with multiple mail hosts

2005-08-13 Thread Steve Williams

Rogier Krieger wrote:


On 8/12/05, Rogier Krieger <[EMAIL PROTECTED]> wrote:
 


After deploying spamd as a shield for a non-OpenBSD mail host, I
wonder how to expand this setup to support multiple mailhosts (say
three mx'es mxN).
   



Although it may be bad form to reply to oneself, any thoughts on how
complicated it would be to create a pfsync-like means of distributing
spamd functionality?

Cheers,

Rogier

 


Hi,

I have been thinking of doing this on a simplier, semi scalable way... 
It's not real time, and will not have 100% consistancey between clients, 
but it will be trivial to implement.  My "clients" are spread over the 
country...so might be interesting to get a variety of different mail 
servers added to the white list...


I was going to keep a central "authoritative" spamd system.  All the 
other systems would be clients...


The first implementation was just going to be the clients sending an 
email on a periodic basis to the "main" server.  It could be as simple 
as a cron job...
spamdb | grep '^WHITE|' | mail -s"spamdb for `uname -n` at `date`" 
[EMAIL PROTECTED]


The central host would receive the email, and maybe by procmail, process 
the email & update it's spamdb tables.  Then, the central mail host 
would REPLY to the email with the final spamdb output.  This would 
propogate changes from other clients back to the originating client.


Advantage:  It's pretty trivial to set up, I could probably do it in 
under 1 hour.  It is initiated by the client.  There are no changes 
required on the central server when a new client is deployed...


The only catch is that all the clients will NOT be in sync... but they 
will be close if the update frequency is say 1/hr.. and for the WHITE 
list of spamdb, I figured that was good enough!


Security would need to be addressed, perhaps by using Sendmail's 
"access.db" on the central server, but that is a first thought off the 
top of my head..


The clients could be made smarter so they only sent the "new" records... 
or an empty set if they just wanted the updates from the main server.


It is kind of a hack, but why use a sledgehammer to drive in a tack! 

If this is not the functionality you are looking for, maybe  you should 
clarify... I do not see any point in distributing "GREY" information, as 
it is only useful when a connect happens, and the default behavior is 
going to be the same as if the client had notification about a "GREY" 
connect to  a different mail server. 


Cheers,
Steve



Re: spamd in combination with multiple mail hosts

2005-08-13 Thread Rogier Krieger
On 8/12/05, Rogier Krieger <[EMAIL PROTECTED]> wrote:
> After deploying spamd as a shield for a non-OpenBSD mail host, I
> wonder how to expand this setup to support multiple mailhosts (say
> three mx'es mxN).

Although it may be bad form to reply to oneself, any thoughts on how
complicated it would be to create a pfsync-like means of distributing
spamd functionality?

Cheers,

Rogier

-- 
If you don't know where you're going, any road will get you there.



spamd in combination with multiple mail hosts

2005-08-12 Thread Rogier Krieger
After deploying spamd as a shield for a non-OpenBSD mail host, I
wonder how to expand this setup to support multiple mailhosts (say
three mx'es mxN).

I couldn't find much on Google. Although the man pages on spamd and
friends are excellent in getting spamd to work, I did not find hints
to build a more distributed setup. My tries at the archives seem to
come up dry as well. If I missed something obvious, please feel free
to provide the appropriate clue-by-four.


At first thought, it would seem wise to ensure a synchronised spamdb
among these mx hosts. That way, it would effectively annoy trapped
entries while providing the possibility for remote hosts to pick any
of our mx'es and get an appropriate reponse. After all, it's a single
service and it would be nice to provide a consistent outlook.

To achieve this, is it wise to rsync the spamdb or to keep it
available through a network mount? I do not know whether spamd keeps
the database locked, as that may be a show stopper for NFS. I suppose
rsync'ing the database would be easier with files in a directory
(similar to Maildir).

Any light in the darkness is greatly appreciated. Also, are there
others who would like to build a setup similar to the one described
above?

Cheers,

Rogier

-- 
If you don't know where you're going, any road will get you there.