Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for the reply. I have checked out that page and it looks interesting.
Here is the code so far:
Code:
Aborted Login|Disconnected (.*).*rip=<HOST>,
I am getting the error here when I run the self check:
Code:
Found a match for 'dovec Info: pop3-login: Disconnected: Inactivity: user=<mom>, method=PLAIN, rip=::ffff:xxx.xxx.xxx.xxx, lip=::ffff:xxx.xxx.xxx.xxx, secured
' but no valid date/time found for 'ot: May 31 18:41:13'. Please contact the author in order to get support for this format
I used dovecot: pam.*(?:
it still didn't work. I looked it up online and people are using it.
In order to get rid of the "dovecot:" in the beginning of the log file you have to put a # in front of log_path and and info_log_path then the default is /var/log/maillog which won't have the dovecot: in front of the timestamp.
I use both:
/var/log/secure and /var/log/maillog in the jail.conf file:
[Definition]
# to test set up use this
# /usr/bin/fail2ban-regex /var/log/secure /etc/fail2ban/filter.d/dovecot.conf
failregex = (?: authentication failure).*rhost=(?:::f{4,6}:)?(?P<host>\S*)
ignoreregex =
Here is the code for the dovecot-maillog.conf:
Code:
[Definition]
# to test set up use this
# /usr/bin/fail2ban-regex /var/log/maillog /etc/fail2ban/filter.d/dovecot.conf
failregex = (?: Authentication failure|Aborted login|Disconnected).*rip=(?:::f{4,6}:)?(?P<host>\S*),.*
ignoreregex = (?: Disconnected: Logged out).*
If there are any other pop3, imap or smtp problems I will come back and let you know.
Thanks,
Kevin
Last edited by kevinslair; 06-01-2009 at 08:18 AM.
Reason: took out my email address
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.