Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Not applicable

Blocking outbound SMTP

We are running an internal mail server, and I am trying to block all outbound mail EXCEPT for the mail server. What I am trying to do is ALLOW ALL from the mail server as my first rule, then DENY ALL SMTP for my second rule. 3rd rule is ALLOW ALL. After adding the first rule, I tried to send an email, and found that outbound SMTP seems to be getting timed out. I don' t have any blocking rules set up yet! We also have NAT and port redirection for all incoming SMTP to the mail server. Any suggestions?
5 REPLIES 5
abelio
SuperUser
SuperUser

Your second policy is also blocking your internal hosts could reach your internal email server 25/TCP port; you need to be able to contact your server, so it will can send email outwards

regards




/ Abel

regards / Abel
Not applicable

Ok- Here are the rules for inbound: 14 Mail Server all always ANY ACCEPT 12 all all always Virus DENY (blocks udp port 19666 only) 6 Local Lan all always ANY ENCRYPT 1 all all always ANY ACCEPT And here are the rules for inbound: 2 all SMTP Mail always SMTP ACCEPT 3 all POP3 always POP3 ACCEPT 4 all WEB Mail always HTTP ACCEPT 8 all WEB / HTTPS always HTTPS ACCEPT 9 all OthercmpSMTP always ANY ACCEPT 10 all OthercmpHTTP always ANY ACCEPT 11 all OthercmpHTTPS always ANY ACCEPT If I enable rule 14, no email can go out. Everything works fine with it disabled. This should work!!! I have not created the rule to block all SMTP outbound yet, because rule 14 doesnt want to work. Help! Steve
doshbass
New Contributor III

Given that the top set of rules are actually outbound rules and rule 1 is not working. Check the obvious things. Is the mail server address right. Have you enabled the NAT checkbox on the rule
Still learning to type " the"
Still learning to type " the"
Not applicable

DOH! NAT was unchecked! Thanks, working fine now. Steve
doshbass
New Contributor III

Doh! Sometimes its very easy to not see the wood for the trees. Been there done that, don' t worry you have lost no credibility. Jon
Still learning to type " the"
Still learning to type " the"
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors