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

Sending SMTP traffic on a specific IP?

We have an IP range for our net connection. For example 12.34.56.50/29.

On the previous firewall I had it so that SMTP outbound from 192.168.0.1 on the lan always went out on 12.34.56.52.

Currently it sends out on 12.34.56.50.

How do I configure Astaro so that when sending via SMTP from 192.168.0.1 it always goes out originating from IP 12.34.56.52?

EDIT: Nevermind, just me being stupid. Figured it out.


This thread was automatically locked due to age.
  • OK! How did you solve it?

    I have the same problem.
    There is on inteface with IP 98 and an additional adress with IP 99 in the interface. I'm not able to bild a policie route with IP 99 as gateway :-(
  • OK! How did you solve it?

    I have the same problem.
    There is on inteface with IP 98 and an additional adress with IP 99 in the interface. I'm not able to bild a policie route with IP 99 as gateway :-(


    What are you trying to do exactly?

    What I did was essentially tell it that any outgoing SMTP traffic to go out on a specific one of our 5 IP addresses.

    I used Source NAT (SNAT).

    In fact, here's the SNAT in question:

  • Interesting soultion, Mark.  Are you using the SMTP Proxy, and is the outgoing traffic being processed by it?

    Thanks - Bob
  • Interesting soultion, Mark.  Are you using the SMTP Proxy, and is the outgoing traffic being processed by it?

    Thanks - Bob


    Yes, I am using the SMTP proxy. It processes inbound stuff fine, doesn't pick-up outbound though and I do need SMTP traffic to go out on a specific IP address anyway since if it goes through the SMTP proxy I'm guessing it'll go out on the interface default.
  • Again, a very creatiive solution.  I wish someone more experienced than I would offfer a solution that achieves your result, but allows the SMTP Proxy to handle outgoing mail.

    Cheers - Bob
  • afaik this solution will work if the smtp proxy dont touches the outgoing; if it works as smarthost, the rule have to be modified with "primary external ip" as source
    there is also an kb: "policy route proxied traffic to a second wan connection"
    rgds, andre
  • Andre, I'm afraid I don't understand your first comment if it is a different idea than the one about the kb article.  And that is a great find - thank you.

    Mark, did you try the article Andre suggests? http://portal.knowledgebase.net/utility/downloadArticle.asp?aid=290074

    CHeers - Bob
  • bob, difference is that the http proxy (described in the kb article) always touches the outgoing traffic - the smtp not;
    so if u use smtp proxying just for incoming, the markcasey solution have to work - otherwise the referential kb-solution is needed...

    or may be i'm wrong...

    rgds, andre
  • Yes, thanks, Andre, I understand now.

    Mark, One other thing I thought of is whether you have identified the Astaro as a Smarthost in your internal mail server:

    [LIST=1]
    • On the Astaro, go to the 'Mail Security >> SMTP' 'Relaying' tab, add your mail server to Host-based relay and hit Apply.
    • On the mail server, add the IP of the Astaro as the smart host.  For example, on Exchange 2003, open Exchange System Manager:

      [LIST=a]
    • In Administrative Groups, open an appropriate administrative group and select Connectors.
    • Right-click on the SMTP Connector and select Properties.
    • On the General tab, click on ‘Forward all mail through this connector to the following smart hosts’ and enter with brackets, the internal interface IP of the Astaro.  For example: [10.1.1.21]
    [/LIST]
    [/LIST]

    Cheers - Bob