I recently started playing with natd on my FreeBSD box. When I turn natd
on, qmail starts having strange problems sending email to another of my
internal network boxes. I've included a kdump trace of qmail-remote when
trying to send the message. Notice the MAIL FROM: line below. Has anyone
seen this kind of behavior before or have any suggestions for tracking it
down?
The only difference between working and not is when turning on IPFIREWALL
and IPDIVERT in the kernel and turning on the natd process. All of the
firewall rules have the box completely open. I have two network interfaces,
fxp0 is connected to the internal network which is connected to the internet
via a cisco router, and de0 which is connected to a cable modem and gets its
address via DHCP.
Thanks,
barry
824 qmail-remote RET recvfrom 209/0xd1
824 qmail-remote CALL close(0x3)
824 qmail-remote RET close 0
824 qmail-remote CALL gettimeofday(0xbfbfdd3c,0)
824 qmail-remote RET gettimeofday 0
824 qmail-remote CALL getpid
824 qmail-remote RET getpid 824/0x338
824 qmail-remote CALL socket(0x2,0x2,0)
824 qmail-remote RET socket 3
824 qmail-remote CALL connect(0x3,0x280e6590,0x10)
824 qmail-remote RET connect 0
824 qmail-remote CALL sendto(0x3,0xbfbfd8ec,0x24,0,0,0)
824 qmail-remote GIO fd 3 wrote 36 bytes
"h\^Y\^A\0\0\^A\0\0\0\0\0\0\adevious\^Flustig\^Ccom\0\0\^O\0\^A"
824 qmail-remote RET sendto 36/0x24
824 qmail-remote CALL poll(0xbfbfd6a4,0x1,0x1388)
824 qmail-remote RET poll 1
824 qmail-remote CALL recvfrom(0x3,0x804d7a0,0x200,0,0xbfbfd72c,0xbfbfd698)
824 qmail-remote GIO fd 3 read 93 bytes
"h\^Y\M^E\M^@\0\^A\0\0\0\^A\0\0\adevious\^Flustig\^Ccom\0\0\^O\0\^A\^FL\
ustig\^CCOM\0\0\^F\0\^A\0\^AQ\M^@\0#\^Dgate\M-@$\^Ebarry\M-@$w(\^Ae\0\
\0*0\0\0\^N\^P\0006\M-n\M^@\0\^AQ\M^@"
824 qmail-remote RET recvfrom 93/0x5d
824 qmail-remote CALL close(0x3)
824 qmail-remote RET close 0
824 qmail-remote CALL socket(0x2,0x2,0)
824 qmail-remote RET socket 3
824 qmail-remote CALL connect(0x3,0x280e6590,0x10)
824 qmail-remote RET connect 0
824 qmail-remote CALL sendto(0x3,0xbfbfd8b0,0x24,0,0,0)
824 qmail-remote GIO fd 3 wrote 36 bytes
"h\^Z\^A\0\0\^A\0\0\0\0\0\0\adevious\^Flustig\^Ccom\0\0\^A\0\^A"
824 qmail-remote RET sendto 36/0x24
824 qmail-remote CALL poll(0xbfbfd668,0x1,0x1388)
824 qmail-remote RET poll 1
824 qmail-remote CALL recvfrom(0x3,0x804d7a0,0x200,0,0xbfbfd6f0,0xbfbfd65c)
824 qmail-remote GIO fd 3 read 209 bytes
"h\^Z\M^E\M^@\0\^A\0\^A\0\^D\0\^D\adevious\^Flustig\^Ccom\0\0\^A\0\^A\
\M-@\f\0\^A\0\^A\0\^AQ\M^@\0\^D\M-M\M-v\^B\M-t\^FLustig\^CCOM\0\0\^B\0\
\^A\0\^AQ\M^@\0\^N\^Cdns\acrocker\M-@;\M-@4\0\^B\0\^A\0\^AQ\M^@\0\a\^D\
rmc1\M-@N\M-@4\0\^B\0\^A\0\^AQ\M^@\0\a\^Dwest\M-@4\M-@4\0\^B\0\^A\0\^A\
Q\M^@\0\a\^Dgate\M-@4\M-@J\0\^A\0\^A\0\^B\M-"\M-z\0\^D\M-La\f\^B\M-@d\
stdin
\0\^A\0\^A\0\^B\M-"\M-z\0\^D\M-La\f2\M-@w\0\^A\0\^A\0\^AQ\M^@\0\^D\M-Q\
\M^]\^Z\M^B\M-@\M^J\0\^A\0\^A\0\^AQ\M^@\0\^D\M-M\M-v\^B\M-r"
824 qmail-remote RET recvfrom 209/0xd1
824 qmail-remote CALL close(0x3)
824 qmail-remote RET close 0
824 qmail-remote CALL open(0x804c408,0x5,0xbfbfdd38)
824 qmail-remote NAMI "queue/lock/tcpto"
824 qmail-remote RET open 3
824 qmail-remote CALL open(0x804c408,0x4,0xbfbfdd38)
824 qmail-remote NAMI "queue/lock/tcpto"
824 qmail-remote RET open 4
824 qmail-remote CALL flock(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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0"
824 qmail-remote RET read 1024/0x400
824 qmail-remote CALL close(0x4)
824 qmail-remote RET close 0
824 qmail-remote CALL close(0x3)
stdin
824 qmail-remote RET close 0
824 qmail-remote CALL socket(0x2,0x1,0)
824 qmail-remote RET socket 3
824 qmail-remote CALL fcntl(0x3,0x3,0)
824 qmail-remote RET fcntl 2
824 qmail-remote CALL fcntl(0x3,0x4,0x6)
824 qmail-remote RET fcntl 0
824 qmail-remote CALL connect(0x3,0xbfbfdd30,0x10)
824 qmail-remote RET connect -1 errno 36 Operation now in progress
824 qmail-remote CALL select(0x4,0,0xbfbfdcb0,0,0xbfbfdca8)
824 qmail-remote RET select 1
824 qmail-remote CALL getpeername(0x3,0xbfbfdd30,0xbfbfdca4)
824 qmail-remote RET getpeername 0
824 qmail-remote CALL fcntl(0x3,0x3,0)
824 qmail-remote RET fcntl 6
824 qmail-remote CALL fcntl(0x3,0x4,0x2)
824 qmail-remote RET fcntl 0
824 qmail-remote CALL select(0x4,0xbfbfdc0c,0,0,0xbfbfdc04)
824 qmail-remote RET select 1
824 qmail-remote CALL read(0x3,0x804f1c0,0x80)
824 qmail-remote GIO fd 3 read 30 bytes
"220 devious.lustig.com ESMTP\r
"
824 qmail-remote RET read 30/0x1e
824 qmail-remote CALL select(0x4,0,0xbfbfdc40,0,0xbfbfdc38)
824 qmail-remote RET select 1
824 qmail-remote CALL write(0x3,0x804f270,0x16)
824 qmail-remote GIO fd 3 wrote 22 bytes
"HELO gate.lustig.com\r
"
824 qmail-remote RET write 22/0x16
824 qmail-remote CALL select(0x4,0xbfbfdc0c,0,0,0xbfbfdc04)
824 qmail-remote RET select 1
824 qmail-remote CALL read(0x3,0x804f1c0,0x80)
824 qmail-remote GIO fd 3 read 54 bytes
"250-devious.lustig.com\r
250-PIPELINING\r
250 8BITMIME\r
"
824 qmail-remote RET read 54/0x36
824 qmail-remote CALL select(0x4,0,0xbfbfdc40,0,0xbfbfdc38)
824 qmail-remote RET select 1
824 qmail-remote CALL write(0x3,0x804f270,0x1e)
824 qmail-remote GIO fd 3 wrote 30 bytes
"MAIL FROM:<\^P\^B\0\0\^?\0\0\^A\0\0\0\0\0\0\0\0>\r
"
824 qmail-remote RET write 30/0x1e
824 qmail-remote CALL select(0x4,0xbfbfdc0c,0,0,0xbfbfdc04)
824 qmail-remote RET select 1
Mail [EMAIL PROTECTED]
gate(80)#
barry@gate$