sendmail and spamassassin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, 2005-06-27 at 11:55, James B. Byrne wrote:
> I have a problem getting spamd and sendmail (both stock CentOS4 rpms) 
> to work together on a couple of smtp relay machines.  This is clearly 
> a configuration issue and no doubt revolves around my lack of 
> comprehension of how this is to work.
> 
> Basically, the setup consists of two frontend public smtp transports 
> that redirect all email through a firewall to an internal imap server 
> for final delivery.  The firewall and sendmail access map prohibit 
> connections to the imap server except for the local MX gateway.  The 
> external MX gateway is a fallback mx server that routes everything it 
> queues through the primary gateway.
> 
> So:
> 
> MX 2 routes to MX 1 that routes to IMAP
> 
> MX 2 and MX 1 are running spamd.
> 
> the sendmail.m4 file has the following at its very end:
> 
> dnl #
> dnl # MAILERs are always last after all FEATURES are defined
> MAILER(smtp)dnl
> MAILER(procmail)dnl
> 
> 
> The contents of /etc/procmailrc are:
> 
> :0fw
> | /usr/bin/spamassassin
> 

Procmail only runs during local delivery to a mailbox.  If you
are relaying on to a 3rd IMAP machine it will go via the smtp
mailer, not procmail.

A good approach for this is to run MimeDefang
(http://www.mimedefang.org) with the sendmail milter interface and
let it coordinate your virus and spam scans.

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux