![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Can you do a manual DNSBL lookup?
Does tcpdump show any attempts of sendmail to do a DNSBL lookup? Code:
# tcpdump -nv -i re0 host 192.168.222.10 and port domain
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
![]() Quote:
Quote:
Quote:
By chance, whilst I was writing this post I left tcpdump monitoring the NIC. It shows two DNSBL lookups taking place via Sendmail - Quote:
Last edited by NathanPardoe; 12th May 2008 at 11:31 PM. |
|
|||
![]()
To see more of the DNSBL lookup, which is just a special case of a normal DNS lookup you can use this improved tcpdump command
Code:
tcpdump -nvv -i re0 -s512 host 192.168.222.10 and port domain Doing the spamhaus query in your post Code:
dig 80.152.123.222.zen.spamhaus.org. ; <<>> DiG 9.3.4 <<>> 80.152.123.222.zen.spamhaus.org. ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21831 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;80.152.123.222.zen.spamhaus.org. IN A ;; ANSWER SECTION: 80.152.123.222.zen.spamhaus.org. 1800 IN A 127.0.0.10 ;; Query time: 364 msec ;; SERVER: 192.168.222.10#53(192.168.222.10) ;; WHEN: Tue May 13 01:37:34 2008 ;; MSG SIZE rcvd: 65 Code:
01:44:52.518263 192.168.222.20.41027 > 192.168.222.10.53 54582+ A? 80.152.123.222.zen.spamhaus.org. (49) (ttl 64, id 24704, len 77 01:44:52.519029 192.168.222.10.53 > 192.168.222.20.41027: [udp sum ok] 54582 q: A? 80.152.123.222.zen.spamhaus.org. 1/0/0 80.152.123.222.zen.spamhaus.org. A 127.0.0.10 (65) (ttl 64, id 8814, len 93) This answer in the 127/8 network means it is listed and thus should receive special treatment of your sendmail. A NXdomain answer means the address is not listed. I posted a shell script at http://daemonforums.org/showthread.php?t=302 that does the reversal of the IP address for this kind of DNSBL checks.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
![]()
Thanks again for the reply. Sorry about the delays in getting back to you, I've been snowed under with work and not had chance to check the forums.
Running the updated command reveals that addresses listed in DNSBLs can be determined, as demonstrated by the following output - Quote:
Quote:
Sorry if my post has missed anything out. Again, I'd appreciate any further help you could offer. |
|
|||
![]()
I don't run a mailserver. That is why I just did a manual DNSBL lookup to show you what to expect in the tcpdump output.
You will have to determine using tcpdump whether sendmail is doing DNSBL lookups while processing the incoming mail. From the rc.conf stuff you posted, I saw you use clamav virusscanning. This really can be a resource hog. You could check if you are not somehow running out of resources like file descriptors, memory space etc. Another point is the /etc/rc.d/sendmail status output complaining that "sendmail_clientmqueue" is not running. Did you take the necessary steps to "compile' the sendmail mc file into the sendmail.cf format? And make sendmail re-read this file? I am not really a sendmail expert. If the above suggestions don't work you may be better off to ask on a sendmail mailing list ![]()
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
![]() Quote:
I'll post my problem on a Sendmail board, but I am greatful of your help. Thanks for your replies and sharing your knowledge of tcpdump. I owe you an e-Beer or webhosting (visit the URL in my signature), get in touch if you need either. |
|
||||
![]()
Turns out the fix was simple, and the problem due to my stupidity. My custom mail start/stop script called "make start" and the rc.d script, which meant the server was started twice. Once I'd changed this, and set an alternate pid file for the MSP queue in rc.conf everything worked perfectly. I had to change the ownership of /var/spool/clientmqueue to root:wheel (preserving default permissions of 770 worked). The rc.conf section for sendmail now looks as follows -
# Mail Services ## Core mta_start_script="/etc/rc.sendmail" sendmail_pidfile="/var/run/sendmail.pid" sendmail_procname="/usr/sbin/sendmail" sendmail_enable="YES" sendmail_flags="-L sm-mta -bd -q30m" sendmail_outbound_enable="YES" sendmail_outbound_flags="-L sm-queue -q30m" sendmail_msp_queue_enable="YES" sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m -OPidFile=/var/spool/clientmqueue/sm-client.pid" sendmail_rebuild_aliases="YES" |
|
|||
![]()
Thanks for posting the solution.
I am sure that in the future, some poor soul lost in the sendmail configuration desert, will appreciate that ![]()
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
![]() |
Tags |
dnsbl, freebsd, lookups, sendmail |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Script to test whether an IP address has been listed in a DNSBL | J65nko | Guides | 12 | 2nd February 2016 03:30 AM |
sendmail host name lookup failure | ducu_00 | General software and network | 9 | 21st January 2009 02:42 AM |
Ipsec freebsd openbsd failure | kasse | OpenBSD General | 3 | 31st December 2008 01:42 AM |
Sendmail | Timmy66 | OpenBSD General | 11 | 19th October 2008 03:01 PM |
Sendmail, issues... | pcfxer | FreeBSD General | 2 | 8th May 2008 10:07 AM |