Community discussions

MikroTik App
 
CyberDaeng
newbie
Topic Author
Posts: 32
Joined: Wed Dec 18, 2019 12:10 pm
Location: Jakarta, Indonesia
Contact:

Limiting SMTP Port 25 on my Network

Tue Apr 16, 2024 7:47 am

Hi,

Is there a way to limit of using SMTP in my IPs? So we are trying to create Firewall Raw rules with the following config.

IP Firewall Raw
Chain: prerouting
Src-Address-List: !Whitelist-SMTP (So I create address-list to whitelist SMTP)
Protocol: TCP
Source Port: 25
Action: Drop

But eventually, all incoming and Outgoing SMTP are being blocked. Im planning only to block for spammers to use our IP Address as SMTP Mail Relay.

Secondly, can I limit all email send out? For example 50 email per hour for every IPs?

Thank you very much for all advice...


Sincerely,

Hernan
 
User avatar
vingjfg
Member
Member
Posts: 329
Joined: Fri Oct 20, 2023 1:45 pm

Re: Limiting SMTP Port 25 on my Network

Tue Apr 16, 2024 8:19 am

Hi there

Can you send the command you created?
/ip/firewall/raw/export
/ip/firewall/address-list/export
Regarding limiting the number of email per hour per IP, not that I know of in the default configuration. The Mikrotik has a pretty basic firewall and in no case something that does DPI/L7 inspection well. For that, you will need the equivalent of an SMTP gateway.

Who is online

Users browsing this forum: clambert, Majestic-12 [Bot], RobertsN, Semrush [Bot], woland and 50 guests