I've got OpenVPN configured to route all IPv4 traffic from client through the server, NAT'd to the internet (openvpn/server.conf contains the following):
push "redirect-gateway def1"
I'm NAT'ing the traffic to the web using an
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
Traffic to and from the web works fine (HTTP, HTTPS). However, I can't get my mail client (Mail.app on OS X, in this case) to connect to a mail server. I can verify that the mail server is both running and that my settings are correct by running an SSH-tunnel from
server, then pointing the outgoing SMTP server to the
localhost:port (this works). However, this is a little ... clunky, and I'd like to know why I can't run it over the VPN - the only issue seems to be the
Incoming POP account works fine. I'm not really sure where I should look, or how to solve for the outbound SMTP, though - any ideas are appreciated.