Hello,I'm having a somewhat unexpected problem, I have everything working like a charm but if I don't route emails to spamd, if I do enable PF to route traffic to spamd then I never get any email.

What do you think the problem may be?, the machine is behind a firewall but but is set for ports 25,587 and 993.

PF is set to route traffic from ports 25 to port 8025, so I guess my actual question is, shouldn't map also 587 to be routed to port 8025?

With the current configuration of PF I don't get any email:

# pfctl -sr block drop log allpass out all flags S/SApass in on egress inet proto tcp from any to any port = 25 flags S/SA rdr-to 127.0.0.1 port 8025pass in on egress proto tcp from <nospamd> to any port = 25 flags S/SApass in log on egress proto tcp from <spamd-white> to any port = 25 flags S/SApass in on egress proto tcp from any to any port = 80 flags S/SApass in on egress proto tcp from any to any port = 443 flags S/SApass in on egress proto tcp from any to any port = 587 flags S/SApass in on egress proto tcp from any to any port = 143 flags S/SApass in on egress proto tcp from any to any port = 993 flags S/SApass in on egress proto tcp from any to any port = 110 flags S/SApass in on egress proto tcp from any to any port = 995 flags S/SApass in on egress proto tcp from any to any port = 22 flags S/SApass in on egress proto tcp from any to any port = 25 flags S/SA

Any suggestions and ideas are welcome and sorry if the question is too basic.

Re: [SOLVED] iRedMail+pf = cannot recieve mail

1) The latest iRedMail-0.8.4 doesn't support OpenBSD 5.1, please use 5.2 instead. And 5.1 will be end-of-life when 5.3 released in one month. So if this is a test server or still not in production, it's really a good idea to re-install with OpenBSD 5.2.2) Please check whether there's something different of PF rules between OpenBSD 5.1 and 5.2.3) Do you have spamd service enabled in /etc/rc.conf.local? also spamd-setup in root's cron job?

Again, we have to drop support for old distribution releases to reduce workload, please choose the latest supported release (5.2) instead.

Re: [SOLVED] iRedMail+pf = cannot recieve mail

OK here is something odd, I set the smapd on /etc/rc.d to NO and still starts, the port is open and is indeed listening, if I telnet to it I get the header for "ESMTP smapd IP-based SPAM blocker".The pf rules are the same, but there is no mapping for submission port onto spamd and I wonder if that redirection is needed.block drop log allpass in on egress inet proto icmp from 172.16.10.0/24 to anypass out all flags S/SApass in on egress inet proto tcp from any to any port = 25 flags S/SA rdr-to 127.0.0.1 port 8025pass in on egress proto tcp from <nospamd> to any port = 25 flags S/SApass in log on egress proto tcp from <spamd-white> to any port = 25 flags S/SApass in on egress proto tcp from any to any port = 80 flags S/SApass in on egress proto tcp from any to any port = 443 flags S/SApass in on egress proto tcp from any to any port = 587 flags S/SApass in on egress proto tcp from any to any port = 143 flags S/SApass in on egress proto tcp from any to any port = 993 flags S/SApass in on egress proto tcp from any to any port = 110 flags S/SApass in on egress proto tcp from any to any port = 995 flags S/SApass in on egress proto tcp from any to any port = 22 flags S/SA