widowmaker wrote:
However, mail goes nowhere unless I add an explicit accept for smtp:
Ok, shot in the dark, but maybe you have a problem with local connections (sendmail to smtp server)? If the above are all your firewall rules I think connections from localhost to localhost will be blocked. Add something like this also (to your firewall rules):
Code:
# Accept traffic from internal interfaces
-A INPUT ! -i eth0 -j ACCEPT
It might be safer to replace "! -i eth0" with "-i lo" but I'm too lazy to test that now.
widowmaker wrote:
I have read several forums and howtos on the RELATED,ESTABLISHED bit, but I still don't get why RELATED does not cover outgoing mail... any takers?
Well, RELATED is for protocols that are known to use several ports at once. For example ftp that first opens a control connection where you issue your commands, and then a second data connection when you actually up- or download some file. And so the firewall dynamically opens up for that one on a as-needed basis (and then I suppose only from the right host, etc, etc).
SMTP only uses port 25, but first from localhost to your server. Then from your server to someone elses port 25.