Koozali.org: home of the SME Server

Closing a Port on Internal Network.

Offline p-jones

  • *
  • 594
  • +0/-0
Closing a Port on Internal Network.
« on: November 07, 2016, 07:07:59 AM »
I have a need to close off Port 143 on the internal network of a server-gateway configuration. It is important I do not disrupt IMAP mail on Port 993 & 465.

Indeed you may wonder why I would ask this. Well, I am wondering also. It is the challenge in front of me and I need to solve it. SME would be my first choice.

My other choice would be to redirect the traffic on Port 143 to another IP on the same subnet.

Is there some way I can do this and hopefully revert back if necessary.

Thanks in advance
Peter
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Closing a Port on Internal Network.
« Reply #1 on: November 07, 2016, 11:03:40 AM »
You have 2 solutions. If you want to leave port 143 open, but forbid clear text usage (= force START TLS):

Code: [Select]
db configuration setprop imap AllowPlainText disabled
signal-event email-update

If you really want to close the port 143 from both your local network and the outside:
Code: [Select]
db configuration setprop imap access localhost
signal-event email-update
C'est la fin du monde !!! :lol:

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Closing a Port on Internal Network.
« Reply #2 on: November 07, 2016, 11:08:53 AM »
Thank You.

Option 2 is what I really need. I will try that tomorrow.
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Closing a Port on Internal Network.
« Reply #3 on: November 07, 2016, 11:17:22 AM »
Daniel,

Could I achieve the same outcome with

db configuration setprop imap status disabled

I didnt think of this earlier. That would leave IMAPS untouched which is a requirement
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Closing a Port on Internal Network.
« Reply #4 on: November 07, 2016, 11:19:06 AM »
Setting the access prop for imap to disabled will be converted to status=enabled and access=localhost (IMAP is always enabled, as it's required for the webmail, see /etc/e-smith/db/configuration/migrate/35enableImap)
C'est la fin du monde !!! :lol: