Current time: 04-19-2024, 11:10 PM Hello There, Guest! (LoginRegister)


Post Reply 
Postfix and antispamming
Author Message
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #11
RE: Postfix and antispamming
ok; and what config files need to be modified? with that changes?
does it exist on non-Debian systems? already packaged? official package? does it exist for non-linux systems?

... Smile
11-02-2007 06:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #12
RE: Postfix and antispamming
The only thing which must be modified is postfixs main.cf policy-weightd is a perl script.
Just have a look at http://www.policyd-weight.org/howto.html It's very simple to setup and should easily implemented in ISPCP
11-02-2007 06:26 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #13
RE: Postfix and antispamming
that doesn't actually anwser all of my questions Wink
11-02-2007 07:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #14
RE: Postfix and antispamming
policyd-weight is available for FreeBSD, maybe also for *BSD --> http://www.freshports.org/mail/postfix-policyd-weight/
It is already packed for Debian a "apt-get install policyd-weight" should do it.

I mean also that it is avialabe for Fedora/RedHat


Greez BeNe
11-02-2007 07:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #15
RE: Postfix and antispamming
Ok, I think you already know my new procedure before I do, almost, any change Smile -> new ticket

(I need to check if any config change should be made)
11-02-2007 07:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #16
RE: Postfix and antispamming
Should i create a new one only for the Package ?
There is already a Ticket open --> http://www.isp-control.net/ispcp/ticket/825
So we could add this info here....

Greez BeNe
(This post was last modified: 11-02-2007 08:00 AM by BeNe.)
11-02-2007 08:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #17
RE: Postfix and antispamming
hmm, right, its ok with #825
11-02-2007 08:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #18
RE: Postfix and antispamming
I combined policyd-weight with fail2ban now and this is a perfect solution for me to save resources on the Server.
Fail2ban set the IP of every mail.log entry like this
Code:
failregex = reject: RCPT from (.*)\[<HOST>\]: 550
on the fail2ban blacklist for 24h.

The result was "0" Spam(!) today and all other real needed mails in my Inbox. Smile *damn*

It works perfect for me with this System:
Quote:policyd-weight (before Queue + IP ban here) -> postgrey -> Maia -> InBox

Greez BeNe
11-02-2007 08:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #19
RE: Postfix and antispamming
Hm looks sweet I'm going to test your configuration on one of our backup mx systems Smile Thank you for the info Smile
11-02-2007 09:00 AM
Find all posts by this user Quote this message in a reply
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 


Forum Jump:


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