[pf4freebsd] Re: pf and spamd

Jett Tayer jett at sycorax.ath.cx
Wed Sep 15 21:13:26 PDT 2004


geesh i can't really make spamd work with pf.

from another machine with ipaddress 192.168.1.2
im telnetting my gateway box 192.168.1.1

here's the scenario:

i added 192.168.1.2 to my <spamd> table in 192.168.1.1 box
when i start to telnet my gateway, telnet just say Trying....

here's my spamd rule part in my pf.conf

# spamd-setup puts addresses to be redirected into table <spamd>.
table <spamd> persist
no rdr on { lo0 } from any to any
rdr inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port 8025
pass in on lo0 inet proto tcp from <spamd> to 127.0.0.1 port 8025

pls help


On Aug 21, 2004, at 6:04 PM, Max Laier wrote:

> On Saturday 21 August 2004 05:36, Jett Tayer wrote:
>> hello,
>>
>> Im using FreeBSD 5.2.1 and im having problems making pf work with 
>> spamd
>> (mail/spamd)
>> when i try load one of my ip addresses in <spamd> table and try to
>> telnet
>> to it at port 25 from another server whose ip is added in spamd table,
>> i can't see the usual:
>>
>> Escape character is '^]'.
>> 220 mybox.myhostname.mydomain ESMTP spamd IP-based SPAM blocker; Sat
>> Aug 21 11:27:57 2004
>>
>> it just say Trying mybox.myhostname.mydomain... and thats it.
>
> I can only guess, but I conclude that you did something like:
> 	Server has IP1, IP2, IP3, ...
> 	Add IP2 to <spamd>
> 	Telnet from the server to IP1
> That does not work! You have to use a real remote host to test the rdr 
> rule.
> But as Pyun tried to tell you, frist check whether spamd is working at 
> all by
> telnetting to 127.0.0.1 8025 directly (w/o the rdr rule interfering).
>
> -- 
> /"\  Best regards,			| mlaier at freebsd.org
> \ /  Max Laier				| ICQ #67774661
>  X   http://pf4freebsd.love2party.net/	| mlaier at EFnet
> / \  ASCII Ribbon Campaign		| Against HTML Mail and News





More information about the freebsd-pf mailing list