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

Post Reply
jonahnaylor
Junior Member
Posts: 6
Joined: 19 Jan 2016, 13:54

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

Post 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.
jonahnaylor
Junior Member
Posts: 6
Joined: 19 Jan 2016, 13:54

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

Post 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...
Elizine
Junior Member
Posts: 40
Joined: 17 Aug 2015, 13:04

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

Post 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"
jonahnaylor
Junior Member
Posts: 6
Joined: 19 Jan 2016, 13:54

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

Post 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.
Post Reply