Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

How to change mail port and Fail2Ban?

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
How to change mail port and Fail2Ban?
  • Quote

Post by rj2010ism » Thu Apr 18, 2019 10:26 am

Good day..

Can anyone tell me how to change ports example "port25" and let Fail2ban work on that port?
example "port25" change to "port29" and let Fail2Ban check the new port?

iv already changed the port but Fail2Ban keep rolling back to defaults after restart!

or is there a better security option for VestaCp Mail?

what iv changed was:
usr/local/vesta/data/firewall/chains.conf

Code: Select all

change:  CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
to:      CHAIN='MAIL' PORT='29,465,587,2525,110,995,143,993' PROTOCOL='TCP'
and
usr/local/vesta/data/firewall/ports.conf

Code: Select all

from: CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
To:  CHAIN='MAIL' PORT='29,465,587,2525,110,995,143,993' PROTOCOL='TCP'
but if i reboot or restart Fail2Ban it rolls back to:

Code: Select all

CHAIN='MAIL' PORT='25,465,587,2525,110,995,143,993' PROTOCOL='TCP'
so how to i solve that?

also how to i setup max Banned time 5days? and Ban on "max retry 2 " ?

Thanks
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password