This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNAT/SNAT example please

could someone please show me an example of DNAT/SNAT for SMTP service.  i can get emails to go out but i cannot get them to come in.  even if i do ANY ANY ANY on the packet filters.  so i'm thinking it has to be a DNAT/SNAT issue.

thanks in advance.


This thread was automatically locked due to age.
Parents Reply Children
  • Forget the DNAT/SNAT and Firewall Rules -- you don't need them for the SMTP Proxy to work.  Here's what you need to make sure of:

    1.  Make sure the IP of the primary external interface of your Astaro firewall is identical to the IP in the MX record of your domain.  You will NOT receive emails unless this matches up.

    2.  Go into the Network Definitions area and make sure you've correctly identified your mail server - is the IP address correct?

    3.  In the "Incoming Mail" section of the SMTP Proxy screen, make sure you've entered your domain name (e.g. "mycompany.com"), and identified the SMTP host as your internal mail server.

    4.  In the "Outgoing Mail" section of the SMTP proxy, make sure you've enabled access for your internal network(s), or at least your mail server.

    Hopefully, one or more of those suggestions will put you on track.
  • Blatant foul on using my sample domain name! [:)]

    But also, as Steve says, please ensure mail is delivered TO the Astaro, as the SMTP proxy is not transparent. You can also have the mx record resolve to an aliased IP as well if that's a requirement.

    Lastly, some common errors are people trapping mail with incorrect dnat rules (dnat happens before the proxy) and putting www.mydomain.com or mail.mydomain.com instead of just mydomain.com in the smtp routes table.
  • thank you to all who helped!  it was an mx discrepency.

    let this be a lesson to all you kids out there  [;)]

    p.s.  i gave you all ratings points for helping.