DCC not scoring from within MailScanner

Julian Field MailScanner at ecs.soton.ac.uk
Thu Aug 30 21:11:59 IST 2007

Sarah Trayser wrote:
> On 28/08/2007, Sarah Trayser <waytotheweb at googlemail.com> wrote:
>> Thanks for all the replies.
>> We're using dccproc, not dccifd.
>> On 28/08/07, Gareth <list-mailscanner at linguaphone.com> wrote:
>>> The top 3 problems with getting DCC to work are :-
>>> 1) Firewall but this wont allow it to work from the command prompt for any
>>> user.
>> Although we do run a firewall, that can't be the issue since it's
>> working from the command line.
>>> 2) Permissions. Test it under the same user which mailscanner runs as.
>> In my testing I did this. DCC works when I run a spamassassin test as
>> the mailscanner user, just not when MailScanner calls it, apparently.
>>> 3) Path issues. Make sure you correctly have the dcc path set in the
>>> spamassassin configuration. This is the error I made which resulted in the
>>> same issue you are experiencing.
>> Wouldn't this affect the command line test as well? Where would this
>> be set - mailscanner.cf > spam.assassin.prefs.conf? This is what I see
>> in that file:
>> ifplugin Mail::SpamAssassin::Plugin::DCC
>> #dcc_path /usr/local/bin/dccproc
>> endif
>> As far as I know we have not changed that so I assume it has always
>> been commented out.
> Got it working. All I did was uncomment the dcc_path line in
> /etc/mail/spamassassin/mailscanner.cf. I'm not sure why it is
> commented out by default (if it is), or why it is apparently working
> this way on other peoples' servers but not ours, but at any rate with
> that line not commented out we are getting scores on the DCC_CHECK
> from within Mailscanner on all our servers.
When you tested it from the command line, you will have a "login" shell 
running with a $PATH that probably includes /usr/local/bin. When 
MailScanner is started by init, there is no login shell and you will 
have a much shorter default $PATH, which doesn't usually include 
/usr/local/bin. The difference comes down to what is set in which 
"dot-files" in root's home directory. "init" won't usually have run any 
of these at all. On Solaris, this path is set in the /etc/default files, 
but I don't know where Linux sets it.


Julian Field MEng CITP
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk

More information about the MailScanner mailing list