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

Change SMTP IP & Webtraffic IP

Hello,

where can i control which IP is used for surfing ?
Is this ip automatically the IP with the default gateway ?

Greets
Stephan


This thread was automatically locked due to age.
  • I don't know if I am getting you right,but isn't the suggestion you do the same I did describe in my update?

    I don't think so, Matthias - I thought your description was more for a DNAT.

    Like gilipeled says, for the second mailserver, just add a second SNAT.

    Cheers - Bob
  • Hi,

    sorry, I tried different configurations, and the only way I see that my address is changing is when I set it this way:
    For traffic from: External Address
    Service: SMTP
    Going to: any
    Change source to: External address (Addtional address)

    With this config the mail header shows the ip from the additional address (good, but does not allow to change it for individual clients)

    When I change the "Going to:" field to one of the mail servers, I have the external address in the header

    Cheers, Matthias
  • Smtp does not need to be changed to clients.

    For smtp to work normal , it's address need to be configured as the one of the MX record.
    So of you need to change the SMTP to another ip , sure it will be for all clients.

    All my best
  • It is the same with http.

    And I have 2 mail servers behind my Astaro, company a and company b, so I also have 2 MX records. That was my question: can I configure SNAT to have my Mail server from company a different public IP than my mail server from company b with one Public interface?

    Sorry if I cannot make it real clear, maybe it is my lack of english knowledge...
  • Hi ,

    If you have only one public IP address and not a pool of IP address , how do you want different servers to use different ip addresses ?

    Gil
  • You can do it with one public interface only if you have set more then one address on it .
    Adding additional address will do the work but you need to have pool of public ip addresses.

    Gil
  • I have 8 IP addresses, 5 of them are free for use.
    Each additional address has assigned 1 of these public IPs, and DNAT does correctly send mails for company a  to mail server 1 and those for company b to mail server 2. 
    So I think this is all okay. 
    My problem is that some of our mails are blocked by spam filters with reverse MX lookup because the header shows the IP 1.1.1.0/29

    This IP address does and can not have a ptr record.

    I managed to translate 1.1.1.0/29 to 1.1.1.2 or 1.1.1.3 with a SNAT rule, but it does not work to translate traffic from Host 192.168.1.1 to 1.1.1.2 and traffic from 192.168.2.2 to 1.1.1.3 with 2 SNAT rules.
  • Hi ,

    I feel that we are running in circles.
    Can you contact my by Skype ?

    Gilipeled.
  • Hi,
    just as an update: 
    Gil helped me via Teamviewer and we came to the conclusion it does not work because both mail servers use the UTM as smart host.

    Gil brought me to the idea just to use the same IP for both servers and put an MX record for both domains on this IP

    Thanx Gil, you did a great job