Hi,
I set up DCC on CentOS 5 with Dual Sendmail - Amavisd-new and and Spam
assassin.
I installed DCC from AT rpms.
pls see below for installed DCC rpm.
[root@mailgw ~]# rpm -qa |grep DCC
DCC-1.3.50-16.0.el5
Then, I configured in Deamon mode.
I did below steps.
[root@mailgw ~]# yum install DCC
then,
[root@mailgw ~]# cdcc "delete 127.0.0.1"
[root@mailgw ~]# cdcc "delete 127.0.0.1 Greylist"
then, edited /etc/dcc/dcc_conf
[root@mailgw ~]# vi /etc/dcc/dcc_conf
I changed
DCCIFD_ENABLE=off
to
DCCIFD_ENABLE=on
then,
[root@mailgw ~]# cp /usr/libexec/dcc/rcDCC /etc/rc.d/init.d/
[root@mailgw ~]# chkconfig rcDCC on
And finally,I edited SpamAssassin's configuration file, and tell it where to
find the path to DCC:
vi /etc/mail/spamassassin/local.cf
Add this to the end of the file:
dcc_home /usr/libexec/dcc
then,
Edit the file v310.pre:
vi /etc/mail/spamassassin/v310.pre
I changed
#loadplugin Mail::SpamAssassin::Plugin::DCC
to ( I removed the # mark)
loadplugin Mail::SpamAssassin::Plugin::DCC
then,
[root@mailgw ~]# /etc/init.d/spamassassin restart
Stopping spamd: [ OK ]
Starting spamd: [ OK ]
then,
[root@mailgw ~]# /etc/init.d/rcDCC start
Then, I checked logs, It gives below erros.
May 25 13:31:51 mailgw dccm[30935]: setpgid(): Permission denied
May 25 13:31:51 mailgw dccm[30935]: 1.3.50 listening to /var/run/dcc/dccm
with /etc/dcc
May 25 13:31:51 mailgw dccm[30935]: DCC: Unable to bind to port
/var/run/dcc/dccm: Address already in use
May 25 13:31:51 mailgw dccm[30935]: DCC: Unable to create listening socket
on conn /var/run/dcc/dccm
May 25 13:31:51 mailgw dccm[30935]: 1.3.50 detected 0 spam, ignored for 0,
rejected for 0, and discarded for 0 targets among 0 total messages for 0
targets since 05/25/07 13:31:51
May 25 13:31:51 mailgw dccm[30935]: smfi_main() = -1
May 25 13:31:51 mailgw dccifd[30950]: setpgid(): Permission denied
May 25 13:31:51 mailgw dccifd[30950]: 1.3.50 listening to /etc/dcc/dccifd
Can you solve this issue?
Then, I disabled selinux as below
[root@mailgw ~]# setenforce 0
Then, I started DCC service again,
[root@mailgw ~]# /etc/init.d/rcDCC start
Then It gave no erros.
pls see below.
[root@mailgw dcc]# tail -f /var/log/maillog
May 25 13:35:05 mailgw dccm[31026]: 1.3.50 listening to /var/run/dcc/dccm
with /etc/dcc
May 25 13:35:05 mailgw dccifd[31041]: 1.3.50 listening to /etc/dcc/dccifd
I do not want to leave selinux disabled.
So could you pls help me to solve this?
--
Thank you
Indunil Jayasooriya