greylist doesn't seem to be working? Setup correctly.

2016-06-06 Thread Robert Chalmers
I have set up the greylist policy, exactly according to the postfix docs, but 
nothing seems to be getting generated in /var/mta - no database that is.

When reloading I get this.

postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: 
greylist_time_limit=3600

However, the documents say to put it in.

# Greylist policy server
#
greypolicyunix  -   n   n   -   0   spawn
  user=nobody:mail argv=/opt/local/bin/perl 
/usr/local/libexec/postfix/greylist.pl
#


and in main.cf

5 /etc/postfix/main.cf :
 6 greylist_time_limit 
 = 3600
 7 smtpd_recipient_restrictions 
 =
 8 ... 
 9 reject_unauth_destination 
 
10 check_policy_service 
 
unix:private/greylist
11 ...
12 # smtpd_policy_service_request_limit 
 = 1

But ok, I remove the greylist_time_limit = 3600 and proceed, but there is no 
greylist.db being generated?

Is greylisting a good thing? 
 What am I doing wrong?
thanks


Robert Chalmers
rob...@chalmers.com .au 
Mac mini 6.2 - 2012, Intel Core i7,2.3 GHz, Memory:16 GB. El-Capitan 10.11.  
XCode 7.2.1
2TB: Drive 0:HGST HTS721010A9E630. Upper bay. Drive 1:ST1000LM024 HN-M101MBB. 
Lower Bay






Re: greylist doesn't seem to be working? Setup correctly.

2016-06-06 Thread Christian Kivalo



On 2016-06-06 11:54, Robert Chalmers wrote:

I have set up the greylist policy, exactly according to the postfix
docs, but nothing seems to be getting generated in /var/mta - no
database that is.

When reloading I get this.

postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter:
greylist_time_limit=3600

However, the documents say to put it in.

# Greylist policy server
#
greypolicyunix  -   n   n   -   0   spawn
  user=nobody:mail argv=/opt/local/bin/perl
/usr/local/libexec/postfix/greylist.pl
#

and in main.cf


5 /etc/postfix/main.cf [1]:
6 greylist_time_limit [2] = 3600
7 smtpd_recipient_restrictions [3] =
8 ...
9 reject_unauth_destination [4]
10 check_policy_service [5] unix:private/greylist
11 ...
12 # smtpd_policy_service_request_limit [6] = 1


But ok, I remove the greylist_time_limit = 3600 and proceed, but there
is no greylist.db being generated?

Is greylisting a good thing?


I removed greylilsting from my setup, it needlessly slows things down 
and postscreen does most of the work already. I wouldn't bother setting 
it up.



 What am I doing wrong?
thanks

Robert Chalmers
rob...@chalmers.com.au

Mac mini 6.2 - 2012, Intel Core i7,2.3 GHz, Memory:16 GB. El-Capitan
10.11.  XCode 7.2.1
2TB: Drive 0:HGST HTS721010A9E630. Upper bay. Drive 1:ST1000LM024
HN-M101MBB. Lower Bay



Links:
--
[1] http://www.postfix.org/postconf.5.html
[2] http://www.postfix.org/postconf.5.html#transport_time_limit
[3] http://www.postfix.org/postconf.5.html#smtpd_recipient_restrictions
[4] http://www.postfix.org/postconf.5.html#reject_unauth_destination
[5] http://www.postfix.org/postconf.5.html#check_policy_service
[6] 
http://www.postfix.org/postconf.5.html#smtpd_policy_service_request_limit


--
 Christian Kivalo


Re: greylist doesn't seem to be working? Setup correctly.

2016-06-06 Thread Wietse Venema
Robert Chalmers:
> I have set up the greylist policy, exactly according to the postfix docs, but 
> nothing seems to be getting generated in /var/mta - no database that is.
> 
> When reloading I get this.
> 
> postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: 
> greylist_time_limit=3600

You have no greyLIST service in master.cf.

> However, the documents say to put it in.
> 
> # Greylist policy server
> #
> greypolicyunix  -   n   n   -   0   spawn
>   user=nobody:mail argv=/opt/local/bin/perl 
> /usr/local/libexec/postfix/greylist.pl

You have a greyPOLICY service in master.cf.

> 11 ...
> 12 # smtpd_policy_service_request_limit 
>  = 
> 1
> 
> But ok, I remove the greylist_time_limit = 3600 and proceed, but there is no 
> greylist.db being generated?

What is /usr/local/libexec/postfix/greylist.pl?

Wietse


Re: greylist doesn't seem to be working? Setup correctly.

2016-06-06 Thread Chalmers
I see. A confusion of naming.
The .pl file is the file that comes wigh osx. Pretty much the same as the 
example in the docs.
But as mentioned, I'm going to remive it anyway.
Thanks.


-
From my iPhone.


> On 6 Jun 2016, at 11:16 am, Wietse Venema  wrote:
> 
> Robert Chalmers:
>> I have set up the greylist policy, exactly according to the postfix docs, 
>> but nothing seems to be getting generated in /var/mta - no database that is.
>> 
>> When reloading I get this.
>> 
>> postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: 
>> greylist_time_limit=3600
> 
> You have no greyLIST service in master.cf.
> 
>> However, the documents say to put it in.
>> 
>> # Greylist policy server
>> #
>> greypolicyunix  -   n   n   -   0   spawn
>>  user=nobody:mail argv=/opt/local/bin/perl 
>> /usr/local/libexec/postfix/greylist.pl
> 
> You have a greyPOLICY service in master.cf.
> 
>> 11 ...
>> 12 # smtpd_policy_service_request_limit 
>>  
>> = 1
>> 
>> But ok, I remove the greylist_time_limit = 3600 and proceed, but there is no 
>> greylist.db being generated?
> 
> What is /usr/local/libexec/postfix/greylist.pl?
> 
>Wietse