On Tue, Jul 08, 2003 at 11:42:33AM +0930, [EMAIL PROTECTED] wrote: > Hi All, > I've got spam assassin working like a dream on our small sendmail box. > works like a bought one. what i want to do is setup a gateway arrangment > for an Exchange Server (everyone shudders, i know). > > like so: > > Internet -> Linux Sendmail with SpamAssasin -> Exchange Server > > has anybody attempted such a thing? i've been searching google for quite a > while and not found any howtos... on the sendmail box i'm attempting: > > 1. that i don't need to create accounts for everyone on the exchange > server? > 2. that it sholdn't deliver to the linux box at all, but simply scan and > forward. > 3. no mail will be deleted, but will simply have the spam score in the > message header and the Spam in the subject line. then the users of the > exchange server will be able to filter based on Spam Score or the subject > line or whatever. > 4. I don't need to scan outgoing mail but i guess that wouldn't hurt as > well.
I'm using MailScanner to run SpamAssassin on a FreeBSD box here, between our firewall's inbound SMTP proxy and our Lotus Notes cluster, doing exactly this. As I have it, it does (1), (2), and (3) above. Here's the .mc file I feed to make to create my sendmail.cf: : divert(0)dnl : VERSIONID(`Mike Andrews 06Dec2002 1550 CST')dnl : OSTYPE(bsd4.4)dnl : DOMAIN(generic)dnl : FEATURE(access_db, `hash -T<TMPF> -o /etc/mail/access')dnl : FEATURE(blacklist_recipients)dnl : FEATURE(local_lmtp)dnl : FEATURE(accept_unresolvable_domains)dnl : FEATURE(`use_cw_file')dnl : define(`confCW_FILE', `-o /etc/mail/sendmail.cw')dnl : define(`confMAX_MIME_HEADER_LENGTH', `1024/1024')dnl was 256/128 : define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl : define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')dnl : define(`MAIL_HUB', `relay:[10.36.36.33]')dnl : define(`SMART_HOST', `relay:[10.36.36.33]')dnl suggested by Rob MacGregor : define(`LOCAL_RELAY', `relay:[10.36.36.33]')dnl suggested by Rob MacGregor : MASQUERADE_AS(`ODOT.ORG')dnl : MASQUERADE_DOMAIN(`okladot.state.ok.us')dnl : FEATURE(`masquerade_entire_domain')dnl : MAILER(local)dnl : MAILER(smtp)dnl The firewall is set up to feed all inbound mail to this box; there are two sendmail processes running on the box: one to put the incoming mail in the "in" mail directory, and one to take processed mail out of the "out" mail directory. The bridge between them is MailScanner, which reads mail from "in", runs SpamAssassin and various virus scanners on that mail, quarantines files with names which match certain regular expressions (.exe, .bat, .com, .cmd, .scr, .pif, and so on), replaces quarantined files with attachments explaining what was quarantined, and then puts the processed mail in "out". I am absolutely satisfied with this setup. -- Mike Andrews [EMAIL PROTECTED] Tired old sysadmin since 1964 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk