LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-22-2017, 05:14 AM   #1
wbenkhoud
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
Question Help Please!! policyd with postfix for blocking emails from IP addresses


Hello,

Can you please advise how to block emails from specific ip addresses using policyd (I am using cluebringer-2.0.12-3.2) in Postfix

In fact, activating quota doesn't work. Your suggestions please.

Best regards,
Wafa Ben Khoud
Email Administrator
 
Old 05-22-2017, 10:46 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Hi:

I've never used policyd but this configuration guide looks like a start.

https://wiki.policyd.org/documentation

Set-up the Cluebringer database

https://uname.pingveno.net/blog/inde...9-with-Postfix

You might want to include what distribution you are running so others can help you.
 
Old 05-23-2017, 04:29 AM   #3
wbenkhoud
LQ Newbie
 
Registered: May 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Question Policyd in postfix to block some ip addresses (how to configure quota and access control?)

Thank you Ztcoracat,

As mentionned I am using cluebringer-2.0.12-3.2 , the links that you specified were my first support/guide for installing and configuring policyd

I have problems when I configure quota limits. I tried to apply some limits but it doesn't work.

When I use the default database, the quota works correctly. I want to modify the control acces, policies and quota to block some IP addresses.

Regards,
 
Old 05-23-2017, 12:10 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by wbenkhoud View Post
Thank you Ztcoracat,

As mentionned I am using cluebringer-2.0.12-3.2 , the links that you specified were my first support/guide for installing and configuring policyd

I have problems when I configure quota limits. I tried to apply some limits but it doesn't work.

When I use the default database, the quota works correctly. I want to modify the control acces, policies and quota to block some IP addresses.

Regards,
You're Welcome.

Modifying the control policy and quota sounds complex to me. Maybe this will help?

Changing a Quota or Quotas Limit
Easiest method to change a quota is to delete your previously set quotas and quotas limits, and import a new rate-limit.sql:

https://wiki.zimbra.com/wiki/Cluebringer_Policy_Daemon

After doing some reading about Cluebringer if I understand it correctly you need to deny what you don't want going on and either Enable the Access Control Module or Disable the Access Control Module. The Access Control Policy should allow you to allow or deny access to your API's by a specific ip address.

http://docs.apigee.com/api-services/...control-policy

https://www.cyberciti.biz/faq/how-do...-linux-server/

You can block an ip address with iptables:-
https://linux-audit.com/blocking-ip-...with-iptables/

I looked for a manual for Cluebringer and found that it didn't exist yet. Sorry.
I'm afraid this is a limit at which I can help.

A last idea: go through all of the settings (mainly Access Control), (Graylisting) <or> (Quotas) and look through the 'options' those options should reveal what you need to select or set to block the ip address. Maybe there is a blacklist table?

If you're getting any kind of a warning, error or notice you may want to post that too.
Looking up warnings and errors most often lead to leads for fixes.

I've posted this link in the hope that it will help others to help you. Sorry I don't know more.
https://wiki.policyd.org/cluebringer.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure postfix to only accept emails for internal addresses from local senders? XXLRay Linux - Server 0 11-18-2015 01:44 PM
[SOLVED] postfix and policyd: Recipient address rejected Haythem Linux - Server 1 12-14-2012 05:05 AM
postfix does not check policyd idnotcrae Linux - Server 1 12-12-2012 02:22 AM
Blocking Common Webmail Addresses (Postfix) carlosinfl Linux - Server 6 09-24-2008 06:52 PM
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration