It seems that i misconfigured my pf and/or my postfix setting a little bit.
Incoming mail is greylisted by spamd and working perfectly, but after i got the correct spamd pf entries my outgoing mail is blocked. it worked without spamd fine. so i assume i screwed some pf setting. but after working on the server the hole day i coul not see any faults :OO Maybe you guys got an idea how to fix.
mailq lists my testmails with: mail transport unavailable
here is my pf.conf:
Incoming mail is greylisted by spamd and working perfectly, but after i got the correct spamd pf entries my outgoing mail is blocked. it worked without spamd fine. so i assume i screwed some pf setting. but after working on the server the hole day i coul not see any faults :OO Maybe you guys got an idea how to fix.
mailq lists my testmails with: mail transport unavailable
here is my pf.conf:
Code:
# Interface declarations
ext_if="re0"
all_if="{re0, lo0}"
# Name and IP of our webserver
MAIL_INTERNAL="192.168.1.1"
MAIL_EXTERNAL="123.123.123.123"
### Normalisation
...
# Allow traffic from mail jail to the Internet
nat on $ext_if from $MAIL_INTERNAL to any -> $MAIL_EXTERNAL
### Tables
table <rfc1918> persist
table <spamd> persist
table <spamd-white> persist
table <whitelist> persist file "/etc/pf_files/whitelist.lst"
table <blacklist> persist file "/etc/pf_files/blacklist.lst"
table <internal_net> {192.168.1.0/24}
### Rules
#### Forward mailtraffic to the mail jail
rdr pass on $ext_if proto tcp from <whitelist> to $MAIL_EXTERNAL port smtp -> $MAIL_INTERNAL port smtp
rdr pass on $ext_if proto tcp from <blacklist> to $MAIL_EXTERNAL port smtp -> 127.0.0.1 port spamd
rdr pass on $ext_if proto tcp from <spamd> to $MAIL_EXTERNAL port smtp -> 127.0.0.1 port spamd
rdr pass on $ext_if proto tcp from any to $MAIL_EXTERNAL port 8825 -> $MAIL_INTERNAL port smtp
rdr pass on $ext_if proto tcp from <spamd-white> to $MAIL_EXTERNAL port smtp -> $MAIL_INTERNAL port smtp
rdr pass on $ext_if proto tcp from !<spamd-white> to $MAIL_EXTERNAL port smtp -> 127.0.0.1 port spamd
rdr pass on $ext_if proto tcp from any to $MAIL_EXTERNAL port smtp -> $MAIL_INTERNAL port smtp
rdr on $ext_if proto tcp from any to $MAIL_EXTERNAL port 465 -> $MAIL_INTERNAL port 465
rdr on $ext_if proto tcp from any to $MAIL_EXTERNAL port 143 -> $MAIL_INTERNAL port 143
rdr on $ext_if proto tcp from any to $MAIL_EXTERNAL port 993 -> $MAIL_INTERNAL port 993