The NZ Linux Resource

[AuckLUG] Debian Sendmail & ClamAV, SpammAssassin, MailScanner Configuration

Li, Chi (Contractor) chi.li-eds at eds.com
Tue Jan 30 08:47:08 NZDT 2007


I have got MailScanner working with Sendmail on my Debian 3.1 R4, would like to share with everyone.

	Identify user and group
	# ls ‐ld /var/spool/mqueue
	drwxr‐s‐‐‐ 2 smmta smmsp 4096 2007‐01‐29 14:29 /var/spool/mqueue

	Create the 2nd queue and set it to the same ownership and permission as /var/spool/mqueue
	# mkdir /var/spool/mqueue.in
	# chown –R smmta:smmsp /var/spool/mqueue.in

	Configure Sendmail to run in a separate listener/queue runner mode
	# vi /etc/mail/sendmail.conf
	Change
	DAEMON=””;
	To
	DAEMON_PARMS="‐OPrivacyOptions=noetrn ‐ODeliveryMode=queueonly ‐OQueueDirectory=/var/spool/mqueue.in";

	Regenerate /etc/mail/sendmail.cf
	# sendmailconfig

	Install ClamAV

	Install SpamAssassin

	Enable SpammAssassin
	# vi /etc/default/spamassassin
	Change or uncomment ENABLE = 1

	Install MailScanner

	Configure MailScanner
	# vi /etc/MailScanner/MailScanner.conf
	Change %org‐name% to your name
	Change %org‐long‐name% to your organization name
	Change %web‐site% to your FQDN
	Run As User = smmta
	Run As Group = smmsp
	Incoming Queue Dir = /var/spool/mqueue.in
	Outgoing Queue Dir = /var/spool/mqueue
	MTA = sendmail
	Virus Scanner = clamav

	Enable MailScanner
	# vi /etc/default/mailscanner
	Uncomment run_mailscanner=1

	Set the following folders the same ownership and permission as /var/spool/mqueue
	# chown –R smmta:smmsp /var/spool/MailScanner
	# chown –R smmta:smmsp /var/lib/MailScanner
	# chown –R smmta:smmsp /var/run/MailScanner
	#chown –R smmta:smmsp /var/lock/subsys/MailScanner

	Start MailScanner
	# /etc/init.d/mailscanner start



Regards

Chi



More information about the AuckLUG mailing list If you have any questions or comments about this page, email the Webmaster
Design Copyright © 1998-2005 Linux.net.nz