This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Lock down SMTP Auth to specific IP's?
#1
Lock down SMTP Auth to specific IP's?
Hello everyone!

I would like to only allow SMTP authentication for specific IP addresses and block/ignore all others.  I use fail2ban to fight off brute force attacks, which works well for this purpose.  However, over the last few days I have been getting hit by thousands of unique IP's attempting to brute force the SMTP authentication (password guessing bots), and it's generating a ton of fail2ban alert emails as well as building an enormous list of blocked IP's.  I hate to waste server resources on this, so I'd rather simply lock down the SMTP authentication service to only allow specific IP's and IP ranges, so fail2ban wouldn't need to process all of these.

Is there a simple way to do this without impacting incoming email?  Perhaps using hosts.deny and hosts.allow maybe?  I use them to lockdown ssh access to specific IP ranges, so I'm hoping I can do the same for SMTP authentication.

Thanks for any advice! Smile
Reply
Thanks given by:
#2
RE: Lock down SMTP Auth to specific IP's?
I think the best solution would be to use:

http://wiki.policyd.org/

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
can not send email - SMTP error on roundcube wolvepy 9 31 ,844 01-03-2020, 08:37 AM
Last Post: Telepuzik
SMTP error after mariaDB upgrade mohamedh 4 12 ,655 02-08-2019, 01:07 AM
Last Post: mohamedh
SMTP Error every time i try to send an email wormsunited 7 21 ,295 12-22-2018, 08:02 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)