On Mon, 2003-10-27 at 15:33, [EMAIL PROTECTED] wrote: > is somebody willing to share experience?
Always ;) I don't know anything about anomy sanitizer, but I use fechmail, postfix, razor and spamassassin on my project's main server and it's working very well if I say so myself. First off, here's a little document I wrote how to integrate razor into spamassassin and then spamassassin into postfix: http://linuxfromscratch.org/hints/downloads/files/postfix+spamassassin+razor.txt > The office mail configuraiotn is: > > fetchmail is getting mail from Telus mailserver > this outside mail needs to be anomied & spamassassined > > also, there is in-office mail that needs to be sanitized but not checked > for spam > > outgoing email shouldn't be sanitized or spamassassined How does outbound mail arive on the server? If you write an email from the system postfix runs on (say using a client like 'mutt' that invokes /usr/sbin/sendmail directly and isn't using the SMTP protocol) spam checking shouldn't take place (assuming you set things up similarly to as I described in the URL above). However, if mail arives via the SMTP protocol (be it for either local delivery or is relayed to elsewhere) it gets checked for spam if you add the filter in master.cf to the 'smtp' service. I'm sure there is a way to tell postfix not to run the filter when mail comes in from a certain IP address or range. I myself run postfix on an alternate port to listen on as well. This alternate port is the one I use privately so I don't have to use my ISPs SMTP server but in case an ISP blocks outgoing port 25 I get around it by usng SMTP on a different port that isn't blocked. This port can be configured to only accept connections from a certain IP address or range and I can specify to use th filter, or not a filter on this port in Postfix (which mean spam is checked or not). But you probably don't want to fiddle with alternate ports, especially if your users are the average computer users who don't know how to specify a different port in their email clients. I can try to find out for you how to disable the filter in certain cases and leaving it on in all others. > postfix settings with pipe from smtpd to sendmail.postfix > takes everything to spamassasing that is not good. What exactly isn't good about it? > Also, couldn't find a simply way to add another filter. > Can it be done through master.cf, or shell scripts are required? As far as I know, you define a filter in master.cf but then you run a shellscript to do the actual work. If your script is a one-line you could add it as the filter command, but when it gets complicated, I recommend using a script. Less to worry about quoting. Afterall, master.cf is a configuration file, not a shell script. Hope this helps you somewhat. If you can give some more information regarding the setup, who should be spam checked, who not, what your network config is like, etc, I can give you some more specific answers. -- Gerard Beekmans http://www.linuxfromscratch.org http://www.beekmansworld.com // Linux Consultant --- OSDN / DevChannel // If Linux doesn't have the solution, you have the wrong problem
