Hello,
I make ur test.
[r...@gw spamdyke]# cat spamdyke-test.sh
#!/bin/bash
/usr/local/bin/spamdyke --config-test -f /etc/spamdyke/spamdyke.conf \
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
./spamdyke-teste.sh &> teste.txt
[r...@gw spamdyke]# head teste.txt -n 20
spamdyke 4.0.9+TLS+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at)
silence (dot) org
http://www.spamdyke.org/
Use -h for an option summary or see README.html for complete option
details.
Testing configuration...
WARNING: Running tests as superuser root(0), group root(0). These test
results may not be valid if the mail server runs as another user.
SUCCESS: spamdyke binary (/usr/local/bin/spamdyke) is not owned by root
and/or is not marked setuid.
INFO: Running command to test capabilities: /var/qmail/bin/qmail-smtpd
SUCCESS: /var/qmail/bin/qmail-smtpd appears to offer TLS support but
spamdyke will intercept and decrypt the TLS traffic so all of its
filters can operate.
SUCCESS: /var/qmail/bin/qmail-smtpd appears to offer SMTP AUTH support.
spamdyke will observe any authentication and trust its response.
INFO(config-file): Testing file read: /etc/spamdyke/spamdyke.conf
SUCCESS(config-file): Opened for reading: /etc/spamdyke/spamdyke.conf
INFO(graylist-level): Testing graylist directory:
/home/vpopmail/graylist.d
ERROR(graylist-level): Failed to create file in directory:
/home/vpopmail/graylist.d/riosulense.com.br/ta/[email protected]/spamdyke-test_1239014905_22157:
Not a directory
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/ta/[email protected]:
Not a directory
ERROR(graylist-level): Failed to create file in directory:
/home/vpopmail/graylist.d/riosulense.com.br/ta/[email protected]/spamdyke-test_1239014905_22157:
Not a directory
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/ta/[email protected]:
Not a directory
ERROR(graylist-level): Failed to create file in directory:
/home/vpopmail/graylist.d/riosulense.com.br/ta/size_3212/spamdyke-test_1239014906_22157:
Not a directory
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/ta/size_3212: Not a
directory
[r...@gw spamdyke]# cat teste.txt | wc -l
184242
The log file of test have 184k rows -/
What u think about this? can help-me to fix my confs?
Thanks so much Sam
Sam Clippinger escreveu:
DO NOT put the "config-test" option in your "run" file. It will break
your mail server!
Try running this command:
/usr/local/bin/spamdyke --config-test -f /etc/spamdyke/spamdyke.conf
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
-- Sam Clippinger
Rafael Andrade wrote:
Thanks Sam,
I stop qmail service, and run my smtp "Run file" manually with
config-test option in spamdyke.
Above my smtp run file.
######################
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
BLACKLIST=`cat /var/qmail/control/blacklists`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
RBLSMTPD="/usr/bin/rblsmtpd"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0
exec /usr/bin/softlimit -m 20000000 \
/usr/bin/tcpserver -D -t 1 -v -P -R -H -l $HOSTNAME -x $TCP_CDB
-c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/usr/local/bin/spamdyke --config-test -f
/etc/spamdyke/spamdyke.conf $SMTPD $VCHKPW /bin/true 2>&1
##################
Errors in /var/log/maillog.
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/minatti/[email protected]:
Not a directory
ERROR(graylist-level): Failed to create file in directory:
/home/vpopmail/graylist.d/riosulense.com.br/g/[email protected]/spamdyke-test_1238596931_9529:
Not a directory
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/g/[email protected]: Not
a directory
ERROR(graylist-level): Failed to create file in directory:
/home/vpopmail/graylist.d/riosulense.com.br/g/[email protected]/spamdyke-test_1238596931_9526:
Not a directory
ERROR(graylist-level): Unable to read graylist sender directory
/home/vpopmail/graylist.d/riosulense.com.br/g/[email protected]: Not
a directory
#################
What u think about this?
Thanks Sam.
Rafael
Sam Clippinger escreveu:
It looks like you forgot a few items from the command you used to run
"config-test". Specifically, you must give the "-f" flag before the
configuration file and you must give the path to the qmail binary (and
all of its arguments), just the way it is given in the "run" file. With
the command you gave, spamdyke is trying to execute your configuration
file instead of reading it, which is obviously not what you want.
-- Sam Clippinger
Rafael Andrade wrote:
Thanks Sam !
I found erros in my config file, u can help-me?
I test with config-test. Above.
r...@net spamdyke]# spamdyke --config-test
/etc/spamdyke/spamdyke.conf && tail -f /var/log/maillog
spamdyke 4.0.10+TLS+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at)
silence (dot) org
http://www.spamdyke.org/
Use -h for an option summary or see README.html for complete option
details.
ERROR: Command returned no output: /etc/spamdyke/spamdyke.conf
ERROR: Tests complete. Errors detected.
Apr 1 07:35:42 net spamdyke[2005]: ERROR: unable to execute child
process /etc/spamdyke/spamdyke.conf: Exec format error
Apr 1 07:35:48 net spamdyke[2005]: ERROR: unable to execute child
process /etc/spamdyke/spamdyke.conf: Exec format error
My Spamdyke.conf
#Spamdyke.conf
# rbl
dns-blacklist-entry=zen.spamhaus.org
dns-blacklist-entry=bl.spamcop.net
dns-blacklist-entry=zombie.dnsbl.sorbs.net
dns-blacklist-entry=dul.dnsbl.sorbs.net
dns-blacklist-entry=bogons.cymru.com
dns-blacklist-entry=ix.dnsbl.manitu.net
dns-blacklist-entry=list.dsbl.org
# graylist
#graylist-dir=/etc/spamdyke/graylist.d
graylist-dir=/home/vpopmail/graylist.d
graylist-level=always
graylist-max-secs=2678400
graylist-min-secs=180
greeting-delay-secs=5
local-domains-file=/var/qmail/control/rcpthosts
log-level=debug
#log-level=info
log-target=syslog
#log-target=stderr
max-recipients=50
#policy-url="" class="moz-txt-link-freetext" href="http://my.policy.explanation.url/">http://my.policy.explanation.url/
reject-empty-rdns
#reject-ip-in-cc-rdns
reject-missing-sender-mx
reject-unresolvable-rdns
tls-certificate-file=/var/qmail/control/servercert.pem
# blacklist and whitelist ip
ip-blacklist-file=/etc/spamdyke/blacklist_ip
ip-whitelist-file=/etc/spamdyke/whitelist_ip
# blacklist and whitelist keywords
ip-in-rdns-keyword-blacklist-file=/etc/spamdyke/blacklist_keywords
ip-in-rdns-keyword-whitelist-file=/etc/spamdyke/whitelist_keywords
# blacklist and whitelist senders
sender-blacklist-file=/etc/spamdyke/blacklist_senders
sender-whitelist-file=/etc/spamdyke/whitelist_senders
# blacklist and whitelist rdns
rdns-blacklist-file=/etc/spamdyke/blacklist_rdns
rdns-whitelist-file=/etc/spamdyke/whitelist_rdns
# whitelist dns
dns-whitelist-file=/etc/spamdyke/whitelist_dns
# blacklist and whitelist recipients
recipient-blacklist-file=/etc/spamdyke/blacklist_recipients
recipient-whitelist-file=/etc/spamdyke/whitelist_recipients
Which permissions i need to add on spamdyke? root?
Im using qmailtoaster + spamdyke.
Thanks all!!
Rafael
Sam Clippinger escreveu:
You seem to have a lot of whitelist files enabled; it's possible an
entry in one of those files is allowing this connection. If you
increase your "log-level" command to "verbose", spamdyke will log which
filter is matching each connection, which should reveal a whitelist
match (if that's what's happening).
I also recommend running spamdyke's "config-test" feature to look for
permission problems, syntax errors, etc.
-- Sam Clippinger
Rafael Andrade wrote:
Hello All,
Im dont know whats happen on my qmail + spamdyke, last days some blocked
domains can send msgs for my domains.
Eg above.
Mar 27 11:37:15 net spamdyke[20571]: DENIED_SENDER_BLACKLISTED from:
[email protected] to: [email protected] origin_ip:
200.203.183.103 origin_rdns: smtpout01.tpa.com.br auth: (unknown)
Mar 27 11:57:51 net spamdyke[20805]: DENIED_SENDER_BLACKLISTED from:
[email protected] to: [email protected] origin_ip:
200.203.183.103 origin_rdns: smtpout01.tpa.com.br auth: (unknown)
Mar 30 10:13:16 net spamdyke[10323]: ALLOWED from:
[email protected] to: [email protected] origin_ip:
200.203.183.103 origin_rdns: smtpout01.tpa.com.br auth: (unknown)
Mar 30 10:24:31 net spamdyke[10478]: ALLOWED from:
[email protected] to: [email protected] origin_ip:
200.203.183.103 origin_rdns: smtpout01.tpa.com.br auth: (unknown)
In mar 27/03 this email [email protected] has blocked, but in
mar 30/03 his can send msg? Why this happen?
More information Above.
Spamdyke.conf file
black_list_senders file
#Spamdyke.conf
# rbl
dns-blacklist-entry=zen.spamhaus.org
dns-blacklist-entry=bl.spamcop.net
dns-blacklist-entry=zombie.dnsbl.sorbs.net
dns-blacklist-entry=dul.dnsbl.sorbs.net
dns-blacklist-entry=bogons.cymru.com
dns-blacklist-entry=ix.dnsbl.manitu.net
dns-blacklist-entry=list.dsbl.org
# graylist
#graylist-dir=/etc/spamdyke/graylist.d
graylist-dir=/home/vpopmail/graylist.d
graylist-level=always
graylist-max-secs=2678400
graylist-min-secs=180
greeting-delay-secs=5
local-domains-file=/var/qmail/control/rcpthosts
log-level=debug
#log-level=info
log-target=syslog
#log-target=stderr
max-recipients=50
#policy-url="" class="moz-txt-link-freetext" href="http://my.policy.explanation.url/">http://my.policy.explanation.url/
reject-empty-rdns
#reject-ip-in-cc-rdns
reject-missing-sender-mx
reject-unresolvable-rdns
tls-certificate-file=/var/qmail/control/servercert.pem
# blacklist and whitelist ip
ip-blacklist-file=/etc/spamdyke/blacklist_ip
ip-whitelist-file=/etc/spamdyke/whitelist_ip
# blacklist and whitelist keywords
ip-in-rdns-keyword-blacklist-file=/etc/spamdyke/blacklist_keywords
ip-in-rdns-keyword-whitelist-file=/etc/spamdyke/whitelist_keywords
# blacklist and whitelist senders
sender-blacklist-file=/etc/spamdyke/blacklist_senders
sender-whitelist-file=/etc/spamdyke/whitelist_senders
# blacklist and whitelist rdns
rdns-blacklist-file=/etc/spamdyke/blacklist_rdns
rdns-whitelist-file=/etc/spamdyke/whitelist_rdns
# whitelist dns
dns-whitelist-file=/etc/spamdyke/whitelist_dns
# blacklist and whitelist recipients
recipient-blacklist-file=/etc/spamdyke/blacklist_recipients
recipient-whitelist-file=/etc/spamdyke/whitelist_recipients
#Blacklist file
have
[email protected] in line 152.
the blacklist file have 498 entries.
Anyone can help-me please?
im receiving lots of spam! =\
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
------------------------------------------------------------------------
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
------------------------------------------------------------------------
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users
|
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users