# Exim working on port 587 and not 25

**URL:** <https://forum.hestiacp.com/t/exim-working-on-port-587-and-not-25/1115>\
**Category:** Mail\
**Created:** [June 25, 2020, 11:50am UTC](https://forum.hestiacp.com/t/exim-working-on-port-587-and-not-25/1115 "2020-06-25T11:50:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roneycs](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/roneycs/32/315_2.png) [@roneycs](https://forum.hestiacp.com/u/roneycs)\
**Post date:** [June 25, 2020, 11:50am UTC](https://forum.hestiacp.com/t/exim-working-on-port-587-and-not-25/1115/1 "2020-06-25T11:50:23Z")

</div>

285/5000

I am getting a lot of connection attempts on port 25.  
I would like to know a better way to change the exim configuration.

I performed the following test  
Firewall deny port 25  
Exim configuration change line

> daemon\_smtp\_ports = 25: 465: 587

for

> daemon\_smtp\_ports = 465: 587

My intention is not to work on port 25

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 25, 2020, 12:11pm UTC](https://forum.hestiacp.com/t/exim-working-on-port-587-and-not-25/1115/2 "2020-06-25T12:11:46Z")

</div>

STMP is only for outgoing mail traffic unless you sending this smtp server from a remote location just block all traffic except from local

---

<div class="post-metadata">

**Author:** ![pluto](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/f08c70/32.png) [@pluto](https://forum.hestiacp.com/u/pluto)\
**Post date:** [June 26, 2020, 10:05am UTC](https://forum.hestiacp.com/t/exim-working-on-port-587-and-not-25/1115/3 "2020-06-26T10:05:09Z")

</div>

If you have any mail domains set up on your Hestia installation, and want to continue receiving mail for them, I’d strongly recommend leaving port 25 open.  
Having a lot of connection attempts is just business as usual on the internet. If you’re worried about the number of connections attempts, perhaps there are other ways you can limit it. eg. if you know that legitimate senders will only come from certain IP addresses, then you can add a firewall rule. Or maybe you can add more blocklists to the exim config to get rid of some connection attempts. There are several things you can adjust in the exim config.
