Hi all.
I have a problem with spamd in Openbsd 3.9/x86, something about my
setup:
1.) One server with openbsd 3.9/x86
2.) Sendmail patchs installed (openbsd 3.9 errata).
3.) One NIC (em0) with private address (192.168.x.x/24).
4.) One propietary firewall in front of server, with NAT rules that
assign one public address to my openbsd server.
5.) The server, already have a sendmail instance working.
6.) The propietary firewall has a rule that allow connect to openbsd
server using the public ip to port 25.
A little graphic:
Internet ---------> FW -----------> Openbsd's Box
NAT
63.xx.xx.xx -------> 192.168.x.x/32
tcp 25 Open
In openbsd's box is running spamd, this:
*********************
pf.conf:
table <spamd> persist
table <spamd-white> persist
rdr pass on em0 proto tcp from <spamd> to !lo0 port smtp -> lo0 port
spamd
rdr pass on em0 proto tcp from !<spamd-white> to !lo0 port smtp -> lo0
port spamd
**********************
**********************
rc.conf:
spamd_flags="-v -G 8:4:864" # for normal use: ""
spamd_grey=YES # use spamd greylisting if YES
spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8)
**********************
Ok, when i run telnet from any machine into LAN (192.168.x.x/24) to
openbsd server on port 25, i see:
Trying 192.168.xx.x...
Connected to somedomain.com.
Escape character is '^]'.
220 somedomain.com ESMTP spamd IP-based SPAM blocker; Tue Jul 11
15:56:01 2006
All is ok :)
But when i tried from Internet, using the public address (another
machine outside of lan):
Trying 63.xx.xx.xx...
Connected to somedomain.com.
Escape character is '^]'
And no more....
If i send a email from another site (gmail by example), in
my /var/log/daemon log is showing:
Jul 11 12:06:18 host spamd[21194]: 64.233.166.180: connected (1/0)
Jul 11 12:06:20 host spamd[21194]: 64.233.166.180: disconnected after 2
seconds.
And the mail is lost.
Finally, i disable spamd (pfctl -d), send mail again and sendmail
receive the mail perfect.
Anyone can help me?, why my spamd doesn't work from outside?