File: milter-greylist.m4

package info (click to toggle)
milter-greylist 4.5.11-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,828 kB
  • ctags: 1,830
  • sloc: ansic: 17,049; yacc: 2,158; lex: 585; sh: 536; makefile: 156
file content (66 lines) | stat: -rw-r--r-- 2,551 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
dnl $Id: milter-greylist.m4,v 1.4 2011/01/24 02:08:31 manu Exp $
dnl Contributed by Ivan F. Martinez
dnl
dnl This file configure sendmail to use milter-greylist
dnl you can put the file in sendmail-cf/hack directory
dnl and put in your sendmail.mc file
dnl
dnl     HACK(`milter-greylist')
dnl
dnl  or put the file in sendmail-cf/feature directory
dnl and put in your sendmail.mc file
dnl
dnl     FEATURE(`milter-greylist')
dnl
dnl
dnl You can define milter parameters
dnl
dnl    confGREYLIST_SOCKET
dnl        socket to communicate with milter
dnl        default value :
dnl           local:/var/milter-greylist/milter-greylist.sock
dnl
dnl    confGREYLIST_OPTIONS
dnl       extra parameters to be used in INPUT_MAIL_FILTER
dnl
dnl
dnl
divert(-1)
dnl
dnl To get more information about milter parameters:
dnl     http://www.sendmail.org/m4/adding_mailfilters.html
dnl     http://www.milter.org/milter_api/installation.html
dnl
ifdef(`confGREYLIST_SOCKET',`dnl
define(`confGREYLIST_ARGS',`S=confGREYLIST_SOCKET')dnl
dnl',`dnl
define(`confGREYLIST_ARGS',`S=local:/var/run/milter-greylist/milter-greylist.sock')dnl
dnl')dnl
ifdef(`confGREYLIST_OPTIONS',`dnl
define(`confGREYLIST_ARGS',confGREYLIST_ARGS`, confGREYLIST_OPTIONS')dnl
dnl',`dnl
define(`confGREYLIST_ARGS',confGREYLIST_ARGS`, F=, T=S:4m;R:4m')dnl
dnl')dnl
INPUT_MAIL_FILTER(`greylist', `confGREYLIST_ARGS')dnl
dnl debugmode(`V')dnl
define(`xxquote',```$1''')dnl
define(`xxconcat',`define(`$1', xxquote($1`$2')))')dnl
dnl
dnl add variables used by milter-greylist
dnl
ifelse(regexp(confMILTER_MACROS_CONNECT,`\<j\>'),`-1',`xxconcat(`confMILTER_MACROS_CONNECT',`, j')',`')dnl
ifelse(index(confMILTER_MACROS_CONNECT,`{if_addr}'),`-1',`xxconcat(`confMILTER_MACROS_CONNECT',`, {if_addr}')',`')dnl
ifelse(index(confMILTER_MACROS_CONNECT,`{daemon_port}'),`-1',`xxconcat(`confMILTER_MACROS_CONNECT',`, {daemon_port}')',`')dnl
dnl
ifelse(index(confMILTER_MACROS_HELO,`{verify}'),`-1',`xxconcat(`confMILTER_MACROS_HELO',`, {verify}')',`')dnl
ifelse(index(confMILTER_MACROS_HELO,`{cert_subject}'),`-1',`xxconcat(`confMILTER_MACROS_HELO',`, {cert_subject}')',`')dnl
dnl
ifelse(regexp(confMILTER_MACROS_ENVFROM,`\<i\>'),`-1',`xxconcat(`confMILTER_MACROS_ENVFROM',`, i')',`')dnl
ifelse(index(confMILTER_MACROS_ENVFROM,`{auth_authen}'),`-1',`xxconcat(`confMILTER_MACROS_ENVFROM',`, {auth_authen}')',`')dnl
dnl
ifelse(index(confMILTER_MACROS_ENVRCPT,`{greylist}'),`-1',`xxconcat(`confMILTER_MACROS_ENVRCPT',`, {greylist}')',`')dnl
dnl
undefine(`xxquote')dnl
undefine(`xxconcat')dnl
dnl debugmode(`-V')dnl
dnl