MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2014-03-03, 13:02:40

Title: New spamdyke problems
Post by: Spacedust on 2014-03-03, 13:02:40
It seems it dislike one option:

local-domains-file=/var/qmail/control/rcpthosts

Quote
Mar  3 13:01:16 onlinecity smtp: 1393848076.165772 spamdyke 5.0.0+TLS+CONFIGTEST+DEBUG+EXCESSIVE (C)2014 Sam Clippinger, samc (at) silence (dot) org
Mar  3 13:01:16 onlinecity smtp: 1393848076.165782 http://www.spamdyke.org/
Mar  3 13:01:16 onlinecity smtp: 1393848076.165787 Use --help for an option summary, --more-help for option details or see README.html for complete documentation.
Mar  3 13:01:16 onlinecity smtp: 1393848076.165791 ERROR(process_config_file()@configuration.c:4370): Unknown configuration file option in file /etc/spamdyke.conf on line 380: local-domains-file
Mar  3 13:01:16 onlinecity smtp: 1393848076.166027 23540 > [EOF]

How to resolve this ?
Title: Re: New spamdyke problems
Post by: Kloxo-DR on 2014-03-03, 13:33:26
Hi Spacedust,

Instead of giving you a direct answer, I prefer to bring you check everything.

read the following and go through all the changes required in the spamdyke.conf, including the substitution of local-domains-file, amongst changes of other configuratio parameters:

http://www.spamdyke.org/documentation/Changelog.txt

You need to do this because I told mustafa to make an update, and he did. Then you should do changes required in the spamdyke.conf manually, like every one has to do.

The available configuration of spamdyke.conf generated from mysql is useless. My request to Mustafa, that he may develop configuration of spamdyke, is also useless or was neglected.
Title: Re: New spamdyke problems
Post by: KloxoLittleFish on 2014-03-03, 13:44:53
problem solved in /etc/spamdyke.conf

problem: local-domains-file=/var/qmail/control/rcpthosts

change to: qmail-rcpthosts-file=/var/qmail/control/rcpthosts

Title: Re: New spamdyke problems
Post by: MRatWork on 2014-03-03, 14:45:00
Try access to /afterlogic/adminpanel with username and password declare in settings.xml
Title: Re: New spamdyke problems
Post by: Spacedust on 2014-03-03, 20:29:32
problem solved in /etc/spamdyke.conf

problem: local-domains-file=/var/qmail/control/rcpthosts

change to: qmail-rcpthosts-file=/var/qmail/control/rcpthosts


Thanks it worked !
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-11-27, 17:51:34
hi,
I've got kloxo MR 6.5 on my CentOS 6.6 and I have trouble with Spamdyke.

I tried to replace local-domains-file=/var/qmail/control/rcpthosts by qmail-rcpthosts-file=/var/qmail/control/rcpthosts but it's not working for me

=> incoming mails not delivered!

My Spamdyke config file is 4.0.0 version. Without Spamdyke not activated, the server works perfectly.

Please, can you help? Thanks you
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-11-29, 07:28:02
up! is there an expert who has spare time to help, thanks :-)
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-05, 09:07:09
Hi,

I'm still in trouble with spamdyke, need help to make it work as I hate receiving spam on my server... :-)
Title: Re: New spamdyke problems
Post by: MRatWork on 2014-12-05, 10:10:45
Hi, spamdyke outgoing and you need incoming mail spam filter.
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-05, 15:42:30
Hi,

thanks for your reply,

Spamdyke is actually a spam filter for incoming mail. I used to activate it when I had a Kloxo with qmail on my last servers (spamdyke was efficient as lots of spam was blocked), now i run Kloxo MR and when I activate Spamdyke, the mail server is down, i don't manage to figure it out, may be you can help?

Is QmailToaster different from Qmail? Is Spamdyke conf file not correct? Do I need to make change in this conf file or does this file work by default?

Thanks for helping :-)
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-05, 15:55:23
another question: is spamdyke already installed on Kloxo MR?

I read on the web that i need to install QmailToaster-Plus to install Spamdyke, do you confirm?

Thanks :-)
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-05, 18:58:47
I just installed QMailToaster-Plus Menu
then I choosed option "Install spamdyke filter" and the I have a bug to fix :

qtp-install-spamdyke v0.3.6 - spamdyke configuration problem(s) detected.
qtp-install-spamdyke v0.3.6 - please fix problem(s), then try again.

any idea?

I don't know how to fix this as the spamdyke configuration is the one I had my Kloxo Mr panel was installed.

Please any help will be appreciated.
Title: Re: New spamdyke problems
Post by: MRatWork on 2014-12-05, 19:24:53
You don't need install qtp-install-spamdyke because may conflict with qmail-toaster from Kloxo-MR. Just install with 'yum install spamdyke' but remove their old config first with 'rm -f /etc/spamdyke.conf'
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-06, 20:01:01
thanks Mustapha,

I had to do this to make it work:
# yum remove spamdyke
# yum install spamdyke

So now I have spamdyke 5 on the server and it works great ;-)

I just did one change in the ne spamdyke.conf file:

- graylist-level=always-create-dir

=> instead of "always".

But there is one bug from Kloxo Panel, if you enable Spamdyke from Server mail settings, it will erase spamdyke.conf version 5 and replace with spamdyke.conf version 4.

Same issue if you update settings in spamdyke tab, do you know how to fix this?

Each time we want to make a change, we have to manually change file /etc/spamdyke.conf

Thanks for last help.
Title: Re: New spamdyke problems
Post by: MRatWork on 2014-12-06, 23:25:05
Inform here your spamdyke.conf
Title: Re: New spamdyke problems
Post by: MRatWork on 2014-12-06, 23:43:17
Enable 'Enable Graylisting' will be change 'always' to 'always-create-dir'
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-07, 07:20:46
Hi,

Here is my spamdyke.conf file that works fine, i added "reject-ip-in-cc-rdns" and changed graylist-level to "always-create-dir":

Code: [Select]
#Plesk-Addon
log-level=info
idle-timeout-secs=180
qmail-rcpthosts-file=/var/qmail/control/rcpthosts
qmail-morercpthosts-cdb=/var/qmail/control/morercpthosts.cdb
tls-certificate-file=/var/qmail/control/servercert.pem
#AUTH FROM xinetd-conf
smtp-auth-command=/var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /bin/true
smtp-auth-level=ondemand-encrypted
graylist-level=always-create-dir
graylist-dir=/var/qmail/spamdyke/greylist
#GREYLIST MINIMUM=5 Min
graylist-min-secs=300
#GREYLIST MAX=3 Months
graylist-max-secs=1814400
sender-blacklist-file=/var/qmail/spamdyke/blacklist_senders
recipient-blacklist-file=/var/qmail/spamdyke/blacklist_recipients
ip-in-rdns-keyword-blacklist-file=/var/qmail/spamdyke/blacklist_keywords
ip-blacklist-file=/var/qmail/spamdyke/blacklist_ip
rdns-whitelist-file=/var/qmail/spamdyke/whitelist_rdns
ip-whitelist-file=/var/qmail/spamdyke/whitelist_ip
sender-whitelist-file=/var/qmail/spamdyke/whitelist_senders
greeting-delay-secs=5
#RBL BLOCKLISTS
dns-blacklist-entry=zen.spamhaus.org
dns-blacklist-entry=bl.spamcop.net
dns-blacklist-entry=bogons.cymru.com
dns-blacklist-entry=dnsbl.sorbs.net
dns-blacklist-entry=dul.dnsbl.sorbs.net
dns-blacklist-entry=zombie.dnsbl.sorbs.net
dns-blacklist-entry=dnsbl-0.uceprotect.net
dns-blacklist-entry=dnsbl-1.uceprotect.net
dns-blacklist-entry=dnsbl-2.uceprotect.net
dns-blacklist-entry=dnsbl-3.uceprotect.net
dns-blacklist-entry=list.dsbl.org
reject-empty-rdns
reject-ip-in-cc-rdns
reject-sender=no-mx
reject-unresolvable-rdns

#MySQL-Logging:
#config-mysql-database=spamdyke
#config-mysql-username=spamdyke
#config-mysql-password=spamdyke

I also had to create file /var/qmail/control/morercpthosts.cdb that was not available on the server, I left it blank, i don't know what it is for but i created it as I saw an error in maillog.

Another issue I have now since I installed spamdyke 5.0: I can't send mail anymore with my mail software, I've got this error: 421 unable to read controls (#4.3.0), any idea to resolve this?

Reveiving mail is ok and greylisting is working perfect with Spamdyke. Even if I disable Spamdyke, I can't send mail, something should be wrong...

Thanks you for all your help and support, you're doing a great job. After building up good skills with Kloxo MR, i will help the community me too :-)
Title: Re: New spamdyke problems
Post by: MRatWork on 2014-12-07, 08:02:43
Read /var/qmail/supervise/smtp/run file and find out related to softlimit options.
Title: Re: New spamdyke problems
Post by: lenawaii on 2014-12-07, 14:56:20
hey,

I spent hours to try to find about softlimit and I finally resolved the issue with updating Qmail:

Code: [Select]
cd /
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail

So now Spamdyke works perfect with Qmail, my web server can now filter spam and i'm so happy my friends!!!

Life is good  ;D thanks Mustapha!
Title: Re: New spamdyke problems
Post by: alekseit on 2016-03-03, 13:58:48
#Plesk-Addon
log-level=info
idle-timeout-secs=180
qmail-rcpthosts-file=/var/qmail/control/rcpthosts
qmail-morercpthosts-cdb=/var/qmail/control/morercpthosts.cdb
tls-certificate-file=/var/qmail/control/servercert.pem
#AUTH FROM xinetd-conf
smtp-auth-command=/var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /bin/true
smtp-auth-level=ondemand-encrypted
graylist-level=always
graylist-dir=/var/qmail/spamdyke/greylist
#GREYLIST MINIMUM=5 Min
graylist-min-secs=300
#GREYLIST MAX=3 Months
graylist-max-secs=1814400
sender-blacklist-file=/var/qmail/spamdyke/blacklist_senders
recipient-blacklist-file=/var/qmail/spamdyke/blacklist_recipients
ip-in-rdns-keyword-blacklist-file=/var/qmail/spamdyke/blacklist_keywords
ip-blacklist-file=/var/qmail/spamdyke/blacklist_ip
rdns-whitelist-file=/var/qmail/spamdyke/whitelist_rdns
ip-whitelist-file=/var/qmail/spamdyke/whitelist_ip
sender-whitelist-file=/var/qmail/spamdyke/whitelist_senders
greeting-delay-secs=5
#RBL BLOCKLISTS
dns-blacklist-entry=zen.spamhaus.org
dns-blacklist-entry=bl.spamcop.net
dns-blacklist-entry=bogons.cymru.com
reject-sender=no-mx
reject-empty-rdns
reject-unresolvable-rdns

#MySQL-Logging:
#config-mysql-database=spamdyke
#config-mysql-username=spamdyke
#config-mysql-password=spamdyke