Current time: 11-23-2024, 11:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
Postfix and antispamming
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #20
RE: Postfix and antispamming
This part should be in your /etc/fail2ban/jail.conf:
Code:
[postfix]
enabled = true
port = smtp
filter = postfix
logpath = /var/log/mail.log
maxretry = 1
bantime = 86400
# 1 month = 2419200; week = 604800; day = 86400
Put the following line to /etc/fail2ban/filter.d/postfix.conf
Code:
failregex = reject: RCPT from (.*)\[<HOST>\]: 550

Add a info like this:
Code:
Your IP-Address is banned from our Mailsystems during the next 24 hours
in your
/usr/sbin/policyd-weight to every 550 code.
You can check the current banned ip´s with
Code:
iptables -L fail2ban-postfix

Greez BeNe
11-02-2007 09:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Postfix and antispamming - Sweeny - 10-27-2007, 05:49 AM
RE: Postfix and antispamming - rbtux - 10-27-2007, 06:36 AM
RE: Postfix and antispamming - BeNe - 10-28-2007, 03:28 AM
RE: Postfix and antispamming - raphael - 10-28-2007, 09:57 AM
RE: Postfix and antispamming - BeNe - 10-28-2007, 07:21 PM
RE: Postfix and antispamming - BeNe - 11-01-2007, 07:52 AM
RE: Postfix and antispamming - Sweeny - 11-01-2007, 07:56 AM
RE: Postfix and antispamming - platzwart - 11-01-2007, 09:24 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 05:51 AM
RE: Postfix and antispamming - BeNe - 11-02-2007, 06:01 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 06:21 AM
RE: Postfix and antispamming - Sweeny - 11-02-2007, 06:26 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 07:24 AM
RE: Postfix and antispamming - BeNe - 11-02-2007, 07:35 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 07:46 AM
RE: Postfix and antispamming - BeNe - 11-02-2007, 08:00 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 08:21 AM
RE: Postfix and antispamming - BeNe - 11-02-2007, 08:57 AM
RE: Postfix and antispamming - Sweeny - 11-02-2007, 09:00 AM
RE: Postfix and antispamming - BeNe - 11-02-2007 09:18 AM
RE: Postfix and antispamming - Sweeny - 11-02-2007, 09:20 AM
RE: Postfix and antispamming - BeNe - 11-02-2007, 09:23 AM
RE: Postfix and antispamming - Sweeny - 11-02-2007, 09:28 AM
RE: Postfix and antispamming - raphael - 11-02-2007, 12:13 PM
RE: Postfix and antispamming - bodysplit - 11-02-2007, 09:17 PM
RE: Postfix and antispamming - rbtux - 11-02-2007, 11:17 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)