spamass-milt-list
[Top][All Lists]
Advanced

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

RE: spamass-milt not being called by sendmail


From: Nate Schindler
Subject: RE: spamass-milt not being called by sendmail
Date: Wed, 6 Oct 2004 14:40:43 -0700

after "make"ing sendmail.mc, your new sendmail.cf should contain lines similar 
to the following:

<snip>
# Input mail filters
O InputMailFilters=spamassassin

# Milter options
#O Milter.LogLevel
O Milter.macros.connect=b, j, _, {daemon_name}, {if_name}, {if_addr}
O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, 
{cert_issuer}
O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, 
{auth_author}, {mail_mailer}, {mail_host}, {mail_addr}
O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}

<snip>

Xspamassassin, S=local:/var/run/sendmail/spamass.sock, F=T, 
T=C:15m;S:5m;R:5m;E:15m
<snip>


You can verify milter support in sendmail with "strings `which sendmail`|grep 
Milter".  You should NOT see something like this: "Warning: Filter usage ('X') 
requires Milter support (-DMILTER)".
In fact, without milter support, the output of that command is only a few lines 
long.  with milter support enabled, you'll get closer to 50 lines of output.  
anyway, that'll show you whether or not milter support is enabled.

If your sendmail binary does in fact have milter support, and your sendmail.cf 
contains something similar to what I show above, then your maillog may contain 
further clues.

Nate


-----Original Message-----
From: address@hidden
[mailto:address@hidden
Behalf Of Chad Whitten
Sent: Wednesday, October 06, 2004 2:18 PM
To: address@hidden
Subject: spamass-milt not being called by sendmail


ive got spamass-milter running, spamd running and sendmail-8.13.1 running.  i 
can relay messages fine through the server, but sendmail never sends the 
message to spamass-milter.  i compiled sendmail with milter support (added 
the following to site.config.m4
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')

and then in my sendmail.mc file put
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, 
T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, 
{if_addr}')dnl

im using the latest cvs of spamass-milter

note, this is on a server that doesnt accept mail locally, but instead sends 
it to another server via the mailertable function in sendmail.  could that be 
the problem?

here is my complete sendmail.mc

divert(-1)
include(`/usr/local/src/sendmail-8.13.1/cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confTO_CONNECT', `1m')
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, 
T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, 
{if_addr}')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`access_db',`hash -o /etc/mail/access')
FEATURE(`blacklist_recipients')
FEATURE(`no_default_msa')
FEATURE(`dnsbl', `sbl-xbl.spamhaus.org', `Rejected - see http://
www.spamhaus.org/XBL')dnl
FEATURE(`delay_checks')dnl
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(local_procmail)
MAILER(smtp)

-- 
Chad Whitten
Network Administrator
neXband Communications
address@hidden
601-944-4801 Phone
601-944-4803 Fax



_______________________________________________
Spamass-milt-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/spamass-milt-list




reply via email to

[Prev in Thread] Current Thread [Next in Thread]