Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-12 Thread Wietse Venema
Jan Ceuleers: [ Charset windows-1252 converted... ] > On 12/06/16 02:05, Wietse Venema wrote: > > Wietse Venema: > >> I have changed the text to: > >> > >> Otherwise it replies with the query arguments plus an empty > >> address list and the reply TTL. The reply TTL is -1 if no > >>

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-12 Thread Jan Ceuleers
On 12/06/16 02:05, Wietse Venema wrote: > Wietse Venema: >> I have changed the text to: >> >> Otherwise it replies with the query arguments plus an empty >> address list and the reply TTL. The reply TTL is -1 if no >> reply is received, or if the reply contains no TTL information)

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-11 Thread Wietse Venema
Wietse Venema: > I have changed the text to: > > Otherwise it replies with the query arguments plus an empty > address list and the reply TTL. The reply TTL is -1 if no > reply is received, or if the reply contains no TTL information). Final version: Otherwise it replies wi

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-07 Thread Wietse Venema
Peter: > On 07/06/16 22:29, Wietse Venema wrote: > > Otherwise it replies with the query arguments plus an empty > > address list and the reply TTL (-1 if unavailable). > > > > "otherwise" means that the IP address is not listed, or that no > > reply was received. > > > > I have changed t

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-07 Thread Peter
On 08/06/16 07:23, Bill Cole wrote: > postconf(5) says: > > postscreen_dnsbl_min_ttl (default: 60s) > > So by default, postscreen will not query dnsblog regarding a specific > address and DNSBL for 60 seconds after dnsblog has returned a TTL in the > 0-60 range for that address and DNSBL. Correc

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-07 Thread Peter
On 08/06/16 08:48, Peter wrote: >> I have changed the text to: >> >> Otherwise it replies with the query arguments plus an empty >> address list and the reply TTL. The reply TTL is -1 if no >> reply is received, or if the reply contains no TTL information). > > That still doesn't

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-07 Thread Peter
On 07/06/16 22:29, Wietse Venema wrote: > Otherwise it replies with the query arguments plus an empty > address list and the reply TTL (-1 if unavailable). > > "otherwise" means that the IP address is not listed, or that no > reply was received. > > I have changed the text to: > >

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-07 Thread Bill Cole
On 6 Jun 2016, at 16:51, Peter wrote: On 07/06/16 01:07, Bill Cole wrote: 4. The resolver cache honors (as most do) a DNSBL's negative cache TTL which is less than 60 seconds, e.g. Spamcop (0 seconds) or the various Spamhaus lists (10) and others. postscreen (specifically dnsblog(8)) honors

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-07 Thread Wietse Venema
Peter: [ Charset windows-1252 converted... ] > On 07/06/16 12:23, Wietse Venema wrote: > >> dnsblog(8) states, "Otherwise it replies with the query arguments plus > >> an empty address list and the reply TTL (-1 if unavailable)." It is > >> unclear that this references the negative cache TTL as re

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-06 Thread Peter
On 07/06/16 12:23, Wietse Venema wrote: >> dnsblog(8) states, "Otherwise it replies with the query arguments plus >> an empty address list and the reply TTL (-1 if unavailable)." It is >> unclear that this references the negative cache TTL as returned by the >> SOA record included in an NXDOMAIN r

Re: Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-06 Thread Wietse Venema
Peter: > On 03/06/16 22:20, Wietse Venema wrote: > > Postscreen has postscreen_dnsbl_ttl (fixed time limit) or it uses > > the DNS TTL, limited by postscreen_dnsbl_{min,max}_ttl. > > > > Please see Postfix documentatiom, and report a bug if it is incomplete. > > dnsblog(8) states, "Otherwise it r

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-06 Thread Peter
On 07/06/16 01:07, Bill Cole wrote: > 4. The resolver cache honors (as most do) a DNSBL's negative cache TTL > which is less than 60 seconds, e.g. Spamcop (0 seconds) or the various > Spamhaus lists (10) and others. postscreen (specifically dnsblog(8)) honors this as well, but it's not made entire

Documentation improvement request (was: RBLs in postscreen AND smtpd_*_restrictions)

2016-06-06 Thread Peter
On 03/06/16 22:20, Wietse Venema wrote: > Postscreen has postscreen_dnsbl_ttl (fixed time limit) or it uses > the DNS TTL, limited by postscreen_dnsbl_{min,max}_ttl. > > Please see Postfix documentatiom, and report a bug if it is incomplete. dnsblog(8) states, "Otherwise it replies with the query

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-06 Thread Bill Cole
On 5 Jun 2016, at 2:30, Peter wrote: On 05/06/16 17:10, Michael Fox wrote: Right. As I mentioned, I understand that part. My question was about v3.1+ where the default for postscreen_dnsbl_min_ttl is only 60s. And, as I understand it, the defaults for v3.1 would cause both the postscreen c

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-05 Thread Michael Fox
Got it. Thanks much Peter! Michael > -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Peter > Sent: Saturday, June 4, 2016 11:30 PM > To: postfix-users@postfix.org > Subject: Re: RBLs in pos

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-04 Thread Peter
On 05/06/16 17:10, Michael Fox wrote: > Right. As I mentioned, I understand that part. My question was about v3.1+ > where the default for postscreen_dnsbl_min_ttl is only 60s. And, as I > understand it, the defaults for v3.1 would cause both the postscreen cache > ttl and the system resolver's

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-04 Thread Michael Fox
> If postscreen_dnsbl_ttl or postscreen_dnsbl_min_ttl is 3600 (1 hour) but > the minimum TTL field of the DNSBL's SOA record is 10 (as it is for the > SBL) then postscreen will cache the lack of a DNSBL entry for as much as > 59 minutes and 50 seconds longer than a proper caching resolver, which >

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-04 Thread Bill Cole
On 4 Jun 2016, at 1:52, Michael Fox wrote: [Quoting me] As noted by Allen Coates, if postscreen_dnsbl_ttl (v2.8-v3.0) or postscreen_dnsbl_min_ttl (3.1) is higher than the negative cache TTL for a DNSBL, postscreen can 'PASS OLD' an IP which has been listed in the period since its prior connec

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-03 Thread Michael Fox
> > And, conversely, DNSBLs with > > weights < postscreen_dnsbl_threshold should not be listed in > > smtpd_*_restrictions because they could block an email on their own, > > even > > though they are not trusted to do so by postscreen. > > Not in all cases. Where postscreen by necessity offers lim

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-03 Thread Bill Cole
On 2 Jun 2016, at 12:45, Michael Fox wrote: So, as I understand it: as long as the weight assigned to a DNSBL in postscreen is >= postscreen_dnsbl_threshold, then there is no harm in also adding the same DNSBL to smtpd_*_restrictions. True. But this is not the whole story... And, convers

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-03 Thread Wietse Venema
Michael Fox: > > postscreen will query the DNS when the client connects after > > postscreen_dnsbl_ttl has expired. With Postfix 3.1 and later, > > that time is (also) determined by a TTL in the DNS response. > > Thanks for the clarification Wietse. 2 questions: > > 1) Given that DNSBLs in post

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-03 Thread Michael Fox
> postscreen will query the DNS when the client connects after > postscreen_dnsbl_ttl has expired. With Postfix 3.1 and later, > that time is (also) determined by a TTL in the DNS response. Thanks for the clarification Wietse. 2 questions: 1) Given that DNSBLs in postscreen_dnsbl_sites and smtp

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Wietse Venema
Michael Fox: > > On 02/06/16 17:45, Michael Fox wrote: > > > If a DNSBL in postscreen_dnsbl_sites has a weight >= > > > postscreen_dnsbl_threshold, then is there any advantage to also > > > listing it in smtpd_*_restrictions? For example, is there some failure > > > mode that having the DNSBL liste

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Allen Coates
On 02/06/16 19:21, Michael Fox wrote: >> On 02/06/16 17:45, Michael Fox wrote: >>> If a DNSBL in postscreen_dnsbl_sites has a weight >= >>> postscreen_dnsbl_threshold, then is there any advantage to also >>> listing it in smtpd_*_restrictions? For example, is there some failure >>> mode that havi

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Michael Fox
> On 02/06/16 17:45, Michael Fox wrote: > > If a DNSBL in postscreen_dnsbl_sites has a weight >= > > postscreen_dnsbl_threshold, then is there any advantage to also > > listing it in smtpd_*_restrictions? For example, is there some failure > > mode that having the DNSBL listed in both places would

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Allen Coates
On 02/06/16 17:45, Michael Fox wrote: > If a DNSBL in postscreen_dnsbl_sites has a weight >= > postscreen_dnsbl_threshold, then is there any advantage to also > listing it in smtpd_*_restrictions? For example, is there some failure > mode that having the DNSBL listed in both places would protect

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Michael Fox
> Michael Fox: > > Clarification: I seem to recall someone asking whether they should > leave > > RBLs in the smtpd_*_restrictions now that they've added them to > postscreen. > > And I seem to recall that the answer was something like "why not, it > doesn't > > hurt". But it seems to me that i

Re: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Wietse Venema
Michael Fox: > Clarification: I seem to recall someone asking whether they should leave > RBLs in the smtpd_*_restrictions now that they've added them to postscreen. > And I seem to recall that the answer was something like "why not, it doesn't > hurt". But it seems to me that if would hurt becau

RE: RBLs in postscreen AND smtpd_*_restrictions

2016-06-02 Thread Michael Fox
Clarification: I seem to recall someone asking whether they should leave RBLs in the smtpd_*_restrictions now that they've added them to postscreen. And I seem to recall that the answer was something like "why not, it doesn't hurt". But it seems to me that if would hurt because: a) it adds a redu

RBLs in postscreen AND smtpd_*_restrictions

2016-06-01 Thread Michael Fox
I think I recall seeing something about this a while ago, but I can't find it in the archives. If I'm using several RBLs in postscreen_dnsbl_sites, each with its own weighting, then what is the best practice for using at least some of those RBLs in smtpd_*_restrictions, or not? Thanks, M