1 # ESMTP LIMITS extension, server
3 # Baseline: advertised by default
4 exim -DSERVER=server -bd -oX PORT_D
6 client 127.0.0.1 PORT_D
11 ??? 250-LIMITS MAILMAX=1000
16 # not advertised when disabled
17 exim -DSERVER=server -DCONTROL=disable -bd -oX PORT_D
19 client 127.0.0.1 PORT_D
28 # smtp_accept_max_per_connection controls the MAILMAX value advertised, and is expanded
29 exim -DSERVER=server -DMAXNM=42 -bd -oX PORT_D
31 client 127.0.0.1 PORT_D
36 ??? 250-LIMITS MAILMAX=42
39 client HOSTIPV4 PORT_D
44 ??? 250-LIMITS MAILMAX=44
50 # not advertised when zero and no RCPTMAX
51 exim -DSERVER=server -DMAXNM=0 -bd -oX PORT_D
53 client 127.0.0.1 PORT_D
62 # reeipients_max controls an advertised RCPTMAX
63 exim -DSERVER=server -DRCPT_MSG=5 -bd -oX PORT_D
65 client 127.0.0.1 PORT_D
70 ??? 250-LIMITS MAILMAX=1000 RCPTMAX=5
75 # RCPTMAX can appear on its own
76 exim -DSERVER=server -DMAXNM=0 -DRCPT_MSG=5 -bd -oX PORT_D
78 client 127.0.0.1 PORT_D
83 ??? 250-LIMITS RCPTMAX=5
87 # recipients_max is expanded (at least for smtp)
88 exim -DSERVER=server -DRCPT_MSG='${if eq {$sender_host_address}{HOSTIPV4}{4}{100}}' -bd -oX PORT_D
90 client HOSTIPV4 PORT_D
95 ??? 250-LIMITS MAILMAX=1000 RCPTMAX=4
99 exim -DSERVER=server -DRCPT_MSG='${if eq {$sender_host_address}{HOSTIPV4}{4}{100}}' -bd -oX PORT_D
101 client 127.0.0.1 PORT_D
106 ??? 250-LIMITS MAILMAX=1000 RCPTMAX=100