I started switching from pf to ipfw, so far so good, but here's my problem: I can't send my to outside my server
in this message you can see that postfix want to connect to clamav antivirus, it then should send mail.
here's (what I think) relevant part of ipfw rules
I tried many different combos related to loopback, but I fail to figure this out, any ideas?
If you need more info, let me know
Should I mention that it works if ipfw is off
Code:
# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
EFDFC9213 710 Thu Mar 25 20:43:21 aldis@bsdroot.lv
(connect to 127.0.0.1[127.0.0.1]:10025: Permission denied)
killasmurf86@gmail.com
-- 1 Kbytes in 1 Request.
here's (what I think) relevant part of ipfw rules
Code:
#!/bin/sh
cmd="/sbin/ipfw -q"
$cmd flush
# setup loopback
$cmd add 00010 allow ip from 127.0.0.0/8 to 127.0.0.0/8 via lo0
$cmd add 00020 deny ip from any to 127.0.0.0/8
$cmd add 00030 deny ip from 127.0.0.0/8 to any
$cmd add 00060 check-state
$cmd add 00500 allow tcp from $root_ip to any smtp,submission out via $e_if keep-state
I tried many different combos related to loopback, but I fail to figure this out, any ideas?
If you need more info, let me know
Should I mention that it works if ipfw is off