Skip to main content
Contributor
September 26, 2010
Question

Issue allowing SMTP in.

  • September 26, 2010
  • 11 replies
  • 10567 views
outbound is fine but have issues with inbound. Have a firewall policy for ISP-mail to trusted exchange 2010 server but when looking at logs on ISP mail server connection to x.x.x.x:25 times out after 15 seconds and email sent to re-try que.

    11 replies

    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    Welcome to the forums. A little bit more information would help a lot. How have you configured the access to the internal mail server? Can you post the firewall policy (and everything related, i.e. the VIP definition), please?
    Contributor
    September 27, 2010
    Thanks for the relpy, am very new to Fortigate' s and do not have any VIP' s Can send email out no problem. for mail server access in i have firewall policy: wan1 - mailserver IP/subnet to switch - ip/sub of exchange smtp accept hope that helps ?
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    Oh, I see. As you are new to this I won' t tell you what is wrong but show you how to make it work. Say, your external (public) IP that stands for your mailserver is 80.80.80.1. - Be aware that it will be " used up" by the configuration below, i.e. it should be available exclusively for your mailserver. And the real server in your LAN hosting Exchange has the 192.168.10.10. Then you take 2 steps: - define a Virtual IP (Firewall>VIP) to make the FG translate the external IP to your internal IP, just for this server: Create New>give it a decent name e.g. " ExchangeVIP" , external IP=80.80.80.1, mapped to IP=192.168.10.10, no further checks. - delete the policy external->internal already in place. - define a firewall policy using this translation: Create New>from: external, source=all, to: internal, destination:ExchangeVIP, service=SMTP Now you should be able to ping the external IP and receive a reply from the Exchange server. If that works please come back and we' ll refine the setup.
    Contributor
    September 27, 2010
    Thanks again, i need do have to enter 25 in the service port and map to port ? Have done all requested but email is still not comming in. are there further steps now ? isp email log still timing out connecxtion to mt wan1 ip on port 25 cheers
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    No, at the moment you should leave the port settings empty and the " Port Forwarding" box un-checked. Have you tried to ping your external mailserver IP?
    Contributor
    September 27, 2010
    yes but i know for a fact it does not respond to pings so do not get a reply. any other tests ??
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    I' m afraid I need more information on what is configured and what not. The setup itself is quite simple so it should work right away. You can backup the config to a file, in plain text format. Please post the part named " config firewall" up to the final " end" , or upload the config file itself. In the meantime, why would the server not respond to ping? Is there a software firewall installed on it which might not only block ping but incoming SMTP also?
    Contributor
    September 27, 2010
    ok here is the file
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    Thanks. You can edit your last post and delete the attachment now. OK, I see you have defined policy routing from the external IP to the Exchange server' s IP. Delete that please. Then, in policy 8 add " ping" to the service allowed, or select " Any" . I would strongly advise you to specify IP addresses in the address definitions, not subnets. You do so by writing " 1.2.3.4/32" for a single host address. Please test pinging the server now.
    Contributor
    September 27, 2010
    well what do you know it pings !!!! What next :)
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    Fine. Now you can try to receive email. --- policy 7 is to be changed now. In the form with " Exchange_Server" denoting your whole internal LAN it allows SMTP out from every host on your LAN. You shouldn' t allow that, hosts mail to your mailserver and the mailserver is the only host that can SMTP out. This way, no spam bot on your PCs can mail out. Please change the destination to ALL in policy 7. Your own WAN IP range doesn' t make sense there. ---- policy 9 is not going to work.
    Contributor
    September 27, 2010
    ok we will test now. 2 queries from last post 1 - i do not have a policy 9 listed 2 - policy 7 points from exchange to external ip of isp not my wan i think this is correct ? have now chnaged subnemts to single ip' s
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    1 - i do not have a policy 9 listed
    well policy 9 cares for Terminal_Services from internal to external. If you have deleted a policy the IDs may change.
    2 - policy 7 points from exchange to external ip of isp not my wan i think this is correct ?
    Only if the external mailserver is in the " Keystage" network. Is it? You can enable a protection profile for this policy later.
    Contributor
    September 27, 2010
    ok have deleted TS policy. Keystage is where mailserver is. Just tested again but still getting: Route slip host: My wan ip Route slip Port : 25 attempting socket connection to: my wan ip attempting socket connection to: my wan ip:25 waiting for socket connection 15 second wait for connection timeout exceeded Any clues ? Andy
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    please clarify this for me: if I telnet to the VIP it connects me to a mailserver, running MDaemon 11.0.2. It calls itself after the domain key...uk Is that your internal mailserver or someone else' s? try for yourself: " telnet ext_ip 25"
    Contributor
    September 27, 2010
    it' s someone elses mailserver that we get our mail from does that make sence ?
    Contributor
    September 27, 2010
    and it is running MDaemon
    ede_pfau
    SuperUser
    SuperUser
    September 27, 2010
    whoa... messing around with your ISP' s mailserver IP...they' re not gonna like it! now, what IP do you want to use for YOUR mailserver in YOUR LAN? pick one of the /29 range of wan1, i.e. 185...190.
    Contributor
    September 27, 2010
    ISP owner is a friend so have full access to the server. Anyway if what you are proposing is a better way then i have an ip i can use in my wan range so let' s go for it. poised ready for action Andy