Page 1 of 1

CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:43
by Ilia
I have updated to 6.44 and was happy to see that now you can add custom ports if LF_SELECT is set to 1 instead of editing /usr/sbin/lfd

I set up custom ports for IMAPD as follows:

Code: Select all

PORTS_imapd = "143,993,9993"
The problem is that tempbanned gets only 143,993 and 9993 in not on the list at all! I also tried leaving only the port I need, 9993 and still same issue.

I am not even sure how is this possible?

Is it me?

EDIT 1: Postfix smtpd is still not catching any login failures.

Re: CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:54
by ForumAdmin
Ilia wrote:Is it me?
It is you. Just re-tested setting the value to "9993" and triggered an IMAP block which created a permanent block:

Code: Select all

tcp|in|d=9993|s=1.22.3.4 # lfd: (imapd) Failed IMAP login from 1.22.3.4 (IN/India/Maharashtra/Bhandup/-): 3 in the last 3600 secs - Tue Feb 18 10:52:00 2014
Did you forget to restart csf and then lfd?

Re: CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:55
by ForumAdmin
EDIT 1: Postfix smtpd is still not catching any login failures.
There are no regexes for postfix at present. You'll have to create your own.

Re: CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:55
by Ilia
I alsways do csf -r

Re: CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:57
by ForumAdmin
That does not restart lfd, only csf. You have to then do:

Code: Select all

/etc/init.d/lfd restart

Re: CSF 6.44 custom ports (PORTS_imapd)

Posted: 18 Feb 2014, 10:59
by Ilia
I'm very sorry! My bad!!!
Thank you for your hard work.
Respectfully,
Ilia