DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How To Enable Spamassassin Logging to a file

| 00:24:56 13.05.2013

Enabling logging of Spamassassin actions on a server with DirectAdmin is rather simple, so here is how to do that.

Update /etc/init.d/exim and replace

if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 15 1>/dev/null 2>/dev/null; fi

with

if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 5 -s /var/log/exim/spamd.log -r /var/run/spamd.pid 1>/dev/null 2>/dev/null; fi

and re-start exim. To test see:

# ps aux | grep spam
root      2494  0.0  1.5 257008 61264 ?        SN   May12   0:21 spamd child
root      3902  0.0  1.4 254980 58744 ?        SN   May12   0:06 spamd child
root     13854  0.0  1.4 252108 56260 ?        SNs  May12   0:26 /usr/bin/spamd -d -c -m 5 -s /var/log/exim/spamd.log -r /var/run/spamd.pid
root     18952  0.0  0.0 103308   844 pts/3    SN+  00:21   0:00 grep spam

You might need to create /var/log/exim/spamd.log prior to exim restart and take care of it's rotation.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition