Re: [spamdyke-users] Running spamdyke on an older Linux
Thanks for the tip! I'll add REMOTE_HOST to the list of environment variables spamdyke searches. -- Sam Clippinger Venkat Iyer wrote: We were trying to run spamdyke on an older linux box and it always showed the origin_ip as 0.0.0.0 [xxx]# uname -a Linux xxx.com 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown [xxx]# cat /etc/redhat-release Red Hat Linux release 7.1 (Seawolf) After some investigation, found out that xinetd used to set a different environment variable name. Hope this saves someone some time: --- ../../tmp/spamdyke-3.1.0/spamdyke/spamdyke.hThu Oct 25 20:39:25 2007 +++ spamdyke.h Thu Dec 6 09:48:00 2007 @@ -54,7 +54,8 @@ #define SELECT_USECS_NO_TIMEOUT 0 #define ENVIRONMENT_DELIMITER '=' -#define ENVIRONMENT_REMOTE_IP TCPREMOTEIP +// #define ENVIRONMENT_REMOTE_IP TCPREMOTEIP +#define ENVIRONMENT_REMOTE_IP REMOTE_HOST #define ENVIRONMENT_REMOTE_NAME TCPREMOTEHOST #define ENVIRONMENT_REMOTE_INFO TCPREMOTEINFO #define ENVIRONMENT_LOCAL_PORT TCPLOCALPORT @@ -522,7 +523,8 @@ #define LOG_MESSAGE_DNS_TYPE_TXTTXT #define CONFIG_TEST_ENVIRONMENT_LOCAL_PORT TCPLOCALPORT=25 -#define CONFIG_TEST_ENVIRONMENT_REMOTE_IP TCPREMOTEIP=127.0.0.1 +// #define CONFIG_TEST_ENVIRONMENT_REMOTE_IP TCPREMOTEIP=127.0.0.1 +#define CONFIG_TEST_ENVIRONMENT_REMOTE_IP REMOTE_HOST=127.0.0.1 #define CONFIG_TEST_ENVIRONMENT_REMOTE_NAME TCPREMOTEHOST=localhost #define CONFIG_TEST_BAD_CONFIG_DIR_EXEC ERROR(%s): Impossible test condition (DIR_EXEC). Please report this error to the author. - Venkat ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Config-test Returns command aborted abnormally
On Dec 7, 2007 2:47 AM, Ton van Rosmalen [EMAIL PROTECTED] wrote: Hi Ken, Looking at you run-file my guess would be to place spamdyke before qmail-smtpd. It needs to intercept comms in front of qmail. Damn! I'm an idiot. I looked at that file and compared it with other ones at least a dozen times and didn't catch that. I moved that line up to above qmail-smtpd and now it's working. Thanks for the gentle reminder. -ken Ton Ken Schweigert schreef: On Dec 6, 2007 2:28 PM, Sam Clippinger [EMAIL PROTECTED] wrote: I wouldn't worry too much about the command aborted abnormally -- it just means that qmail-smtpd didn't exit after spamdyke sent it the QUIT command. spamdyke had to kill it instead. However, it was obviously working because spamdyke reported it offers TLS and SMTP AUTH. qmail-smtpd should exit after it sees the QUIT command but it's possible one of the Toaster patches has changed that behavior. It's equally possible there's a bug in spamdyke. Unless you see a lot of stale qmail-smtpd processes when your server gets busy, it's not a problem. You indicated spamdyke doesn't work on this machine -- what does it do (or fail to do)? Also, here are my config files: [EMAIL PROTECTED] ~]# more /var/qmail/supervise/qmail-smtpd/run #!/bin/sh QMAILDUID=`id -u vpopmail` NOFILESGID=`id -g vpopmail` MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` exec /usr/local/bin/softlimit -m 2500 \ /usr/local/bin/tcpserver -v -H -R -l 0 \ -x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp \ /var/qmail/bin/qmail-smtpd \ /usr/local/bin/spamdyke -f /etc/spamdyke.conf \ /home/vpopmail/bin/vchkpw /bin/true 21 [EMAIL PROTECTED] ~]# [EMAIL PROTECTED] ~]# more /etc/spamdyke.conf log-level=2 log-target=0 local-domains-file=/var/qmail/control/rcpthosts #max-recipients=15 # connection-timeout-secs=0 is disabling the feature connection-timeout-secs=0 idle-timeout-secs=180 no-graylist-dir=/home/vpopmail/graylist #graylist-dir=/home/vpopmail/graylist #graylist-min-secs=120 #graylist-max-secs=1814400 #never-graylist-ip-file=/home/vpopmail/never_graylist_these_ips #policy-url=http://my.policy.explanation.url/ sender-blacklist-file=/home/vpopmail/blacklist_senders recipient-blacklist-file=/home/vpopmail/blacklist_recipients ip-in-rdns-keyword-file=/home/vpopmail/blacklist_keywords ip-blacklist-file=/home/vpopmail/blacklist_ip reject-empty-rdns reject-unresolvable-rdns rdns-whitelist-file=/home/vpopmail/whitelist_rdns ip-whitelist-file=/home/vpopmail/whitelist_ip greeting-delay-secs=5 check-dns-whitelist=whitelist.mydomain.tld check-dnsrbl=safe.dnsbl.sorbs.net check-dnsrbl=combined.njabl.org check-dnsrbl=sbl-xbl.spamhaus.org check-dnsrbl=bogons.cymru.com reject-missing-sender-mx tls-certificate-file=/var/qmail/control/servercert.pem [EMAIL PROTECTED] ~]# ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users -- Have a nice day ... unless you've made other plans. ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
[spamdyke-users] Skip graylisting for specific domains don't work
Hi all, i wan't to skip graylisting for specific domains but making several tests it did not work for me. In the spamdyke.conf i have the entry never-graylist-rdns-file=/home/vpopmail/spamdyke/never-graylist-rdns and in the never-graylist-rdns file i have the entry for the specific Domain ..com But Mails from this Domain are graylisted anyway. What's wrong? Thanks for the help. Marc ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Skip graylisting for specific domains don't work
Hi Marc, As I understand it it works like this: Mailserver with ip x.x.x.x wants to send mail to domain domain.com on your server. Spamdyke accepts the incoming connectiong and looks up a bunch of stuff among which the rdns-name is determined for x.x.x.x. Let's say this resolves to mail.senderdomain.com. To stop spamdyke from graylisting this specific server you would enter mail.senderdomain.com in the never-graylist-rdns-file. Have you created the domain-folders under your graylist-dir? Or better how is your base set-up for graylisting. Are you using graylist-dir? If so, you could just delete the domain in question to stop spamdyke from graylisting. Ton Marc Stiebich schreef: Hi Ton, "Using this option the rdns-entry for the sending mailserver is checked..." - thats what i want. All incoming Mail should be graylisted first, expect a few Domains should not graylisted and forwarded direct to the receiving Domain without graylisting . This doesn't work for me. Marc Ton van Rosmalen wrote: Hi Marc, Using this option the rdns-entry for the sending mailserver is checked not the receiving domain. I myself use 'graylist-dir' which contains folders for each domain that I want graylisted. Ton Marc Stiebich schreef: Hi all, i wan't to skip graylisting for specific domains but making several tests it did not work for me. In the spamdyke.conf i have the entry never-graylist-rdns-file=/home/vpopmail/spamdyke/never-graylist-rdns and in the never-graylist-rdns file i have the entry for the specific Domain ..com But Mails from this Domain are graylisted anyway. What's wrong? Thanks for the help. Marc ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Skip graylisting for specific domains don't work
The never-graylist-rdns-file option bypasses graylisting based on the reverse DNS name of the remote server, not the domain name of the sender or recipient. For example, you may receive an email from [EMAIL PROTECTED] but the remote server's name could be 11-22-33-44.business.dsl.someprovider.com. In that case, adding .somesmallbusiness.com to the file will do nothing. Instead, you should add .someprovider.com (or something more specific) to the file. Note that would disable graylisting for all senders coming from that server. If the server hosts many domains, this may not be what you want. Unfortunately, disabling graylisting for specific senders or recipients is not possible at this time. I'm working on it though. -- Sam Clippinger Marc Stiebich wrote: Hi Ton, Using this option the rdns-entry for the sending mailserver is checked... - thats what i want. All incoming Mail should be graylisted first, expect a few Domains should not graylisted and forwarded direct to the receiving Domain without graylisting . This doesn't work for me. Marc Ton van Rosmalen wrote: Hi Marc, Using this option the rdns-entry for the sending mailserver is checked not the receiving domain. I myself use 'graylist-dir' which contains folders for each domain that I want graylisted. Ton Marc Stiebich schreef: Hi all, i wan't to skip graylisting for specific domains but making several tests it did not work for me. In the spamdyke.conf i have the entry never-graylist-rdns-file=/home/vpopmail/spamdyke/never-graylist-rdns and in the never-graylist-rdns file i have the entry for the specific Domain ..com But Mails from this Domain are graylisted anyway. What's wrong? Thanks for the help. Marc ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Skip graylisting for specific domains don't work
Hi Marc, Using this option the rdns-entry for the sending mailserver is checked not the receiving domain. I myself use 'graylist-dir' which contains folders for each domain that I want graylisted. Ton Marc Stiebich schreef: Hi all, i wan't to skip graylisting for specific domains but making several tests it did not work for me. In the spamdyke.conf i have the entry never-graylist-rdns-file=/home/vpopmail/spamdyke/never-graylist-rdns and in the never-graylist-rdns file i have the entry for the specific Domain ..com But Mails from this Domain are graylisted anyway. What's wrong? Thanks for the help. Marc ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users
Re: [spamdyke-users] Skip graylisting for specific domains don't work
Hi Ton, Using this option the rdns-entry for the sending mailserver is checked... - thats what i want. All incoming Mail should be graylisted first, expect a few Domains should not graylisted and forwarded direct to the receiving Domain without graylisting . This doesn't work for me. Marc Ton van Rosmalen wrote: Hi Marc, Using this option the rdns-entry for the sending mailserver is checked not the receiving domain. I myself use 'graylist-dir' which contains folders for each domain that I want graylisted. Ton Marc Stiebich schreef: Hi all, i wan't to skip graylisting for specific domains but making several tests it did not work for me. In the spamdyke.conf i have the entry never-graylist-rdns-file=/home/vpopmail/spamdyke/never-graylist-rdns and in the never-graylist-rdns file i have the entry for the specific Domain ..com But Mails from this Domain are graylisted anyway. What's wrong? Thanks for the help. Marc ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users ___ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users