Page 1 of 1

IMAP / SMTP email ALWAYS blocked if lf_pop3d or lf_imapd is on

Posted: 04 Aug 2016, 14:27
by jonahnaylor
Hi, it doesn't seem to matter how high I raise the values of LF_IMAPD or LF_POP3D - if they're on all my local network devices struggle to send or receive emails with phones/tablets always giving "Couldn't Sign In..." warnings.

If I turn them off it's fine, but I've tried settings them at 50 or 60 etc and as soon as I restart CSF/LFD I get the "Couldn't Sign In..." warnings again.

The weird thing is that all devices are using the correct authentication settings, usernames and passwords etc.

Does anyone know why this happens or how to fix it? Course I can just leave them turned off but it would be nice to use the feature and block any attacks.

Thanks again for any help with this.

Re: IMAP / SMTP email ALWAYS blocked if lf_pop3d or lf_imapd is on

Posted: 05 Aug 2016, 12:36
by jonahnaylor
Just to update this, the auth error shows in the logs which always eventually leads to the block:

Code: Select all

Aug  5 12:08:57 svr auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=info@domainname.com rhost=192.168.0.1  user=info@domainname.com
Thanks again for any help or suggestions on this...

Re: IMAP / SMTP email ALWAYS blocked if lf_pop3d or lf_imapd is on

Posted: 11 Aug 2016, 11:25
by Elizine
Look into the RELAYHOSTS setting, which will prevent blocking of IPs that are logging into POP or IMAP successfully.

You need the following in /etc/csf/csf.conf:
RELAYHOSTS = "1"

Re: IMAP / SMTP email ALWAYS blocked if lf_pop3d or lf_imapd is on

Posted: 11 Aug 2016, 16:57
by jonahnaylor
Hi thanks but I'm not sure I have this option.

My cPanel server has this turned on, but my other server which uses Virtualmin doesn't have the option in the Configuration section...

Also my other issue is I don't use pop, only imap and smtp - so would this work still anyway?

Thanks again for any advice.