Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

access syntax for GreetPause, ClientRate and ClientConn

45 views
Skip to first unread message

Gregg Hughes

unread,
Apr 8, 2016, 3:08:47 PM4/8/16
to
Good afternoon, all!

Just a quick check on this: since access can handle network in its statements, I can also use networks in defining GreetPause, ClientRate and ClientConn statements as well. For instance, the statements
GreetPause:192.168.4 0
ClientConn:192.168 0
ClientRate:10.10 0

are all legitimate and will be interpreted by sendmail to apply these conditions to hosts in the networks shown.

Correct?

Thanks to all!


Gregg

Claus Aßmann

unread,
Apr 8, 2016, 5:15:03 PM4/8/16
to
Gregg Hughes wrote:

> Just a quick check on this: since access can handle network in its statements, I can also use networks in
> defining GreetPause, ClientRate and ClientConn statements as well. For instance, the statements

cf/README:
If FEATURE(`access_db') is enabled, an access database
lookup with the GreetPause tag is done using client
hostname, domain, IP address, or subnet to determine the
pause time:

and later on:
The table itself uses e-mail addresses, domain names, and network
numbers as keys. Note that IPv6 addresses must be prefaced with "IPv6:".


So the answer is yes...

BTW: besides reading the fine documentation, there is also the -bt
mode to test things out.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Gregg Hughes

unread,
Apr 8, 2016, 5:20:01 PM4/8/16
to
Thanks, Claus!

I read the BatBook and some other online postings, but I wasn't absolutely clear on the network syntax and whether it applied to all the directives. The clarifications is most appreciated!

Gregg
0 new messages