Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qmail bogofilter, spamfilter

Status
Not open for further replies.

massctrl

MIS
Dec 29, 2002
46
BE
Hello,

I'm setting up a "spam-firewall" using qmail and bogofilter.
If the qmail mailserver receives a mail it checks if there is an appropriate .qmail, then the mail gets processed (and tagged when it is spam) by bogofilter and is forwarded to the ms exchange mailserver (that part wasn't my idea ;-))
If there is no appropriate .qmail means that the recepient has no spamfiltering enabled and the mails get forwarded to the exchange server without spam-processing.
Mail never gets stored in the maildirs only forwarding.
Here's my question :
In this case is it necessary to have an actual account for every user in the /etc/shadow en /etc/passwd.
Or will this setup work with homedrives only and no entries in the *nix account files?


Thanks in advance
 
Uh, I'm not sure you can do this. A local .qmail file implies that the user is local. If the user is local then the user isn't remote. If the user isn't remote you cannot forward deliver the mail without adding to the mail headers by literally using a "forward message" instruction in the .qmail file, which would create a mail loop anyways since the user is local to the filter machine.

Why wouldn't you just filter for everyone? Am I missing something? I'm not familiar with bogofilter.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
it's like this:
global filtering is my opinion out of the question since what I concider to be spam isn't spam for another user.
The qmail mailserver receives all mail checks if there's a local recepient, if not ,it gets directly forwarded to the exchange server. If there is a local account the mail runs through this .qmail

|/usr/bin/bogofilter -pe --spam_subject_tag=-oO*S*P*A*M*Oo-|qmail-remote [10.0.0.1] $RECIPIENT $RECIPIENT

Which means basicly check if it's spam if so, tag the subject and realy it to the smtp server listening at 10.0.0.1

the .qmail-default file contains
|qmail-remote [10.0.0.1] $LOCAL@domain.blah $LOCAL@domain.blah

Which means if no local recepient is found relay it to 10.0.0.1

In order to have personalized spamfiltering you need a local account on the qmail server,....

My question stays the same :

Is it necessary to have an actual account for every user in the /etc/shadow en /etc/passwd.
Or will this setup work with homedrives only and no entries in the *nix account files?


Thanks

 
You could always use a virtual domain manager such as vpopmail or vmailmgr to manage these accounts and then only one system account would be needed.
 
nedmega is right, you need more control than qmail gives you. you should investigate the vpopmail project, which I recommend highly.

You'll virtualize your domain(s), implement a web-based control panel for those accounts, implement anti-virus and anti-spam that _should_ be controllable down to the account, etc....

I ALWAYS recommend this howto to implement... It's the best of all the guides I've used..


Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top