summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-01-19 13:12:02 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-19 13:12:02 +0000
commitbbc8ed07111bfc0ef3a5d24aa6318f0f307e41ca (patch)
treed2700de7691b3a94bea75c3e92c0a157dcae8853 /src
parentc39b93a62e182a09450f212b03705dcafa7431aa (diff)
VRFY: advertise in EHLO response, if there is an ACL defined
Diffstat (limited to 'src')
-rw-r--r--src/src/smtp_in.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index 890c7c517..04cbbe465 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -3903,19 +3903,20 @@ while (done <= 0)
dsn_advertised = TRUE;
}
- /* Advertise ETRN if there's an ACL checking whether a host is
- permitted to issue it; a check is made when any host actually tries. */
+ /* Advertise ETRN/VRFY/EXPN if there's are ACL checking whether a host is
+ permitted to issue them; a check is made when any host actually tries. */
- if (acl_smtp_etrn != NULL)
+ if (acl_smtp_etrn)
{
s = string_catn(s, &size, &ptr, smtp_code, 3);
s = string_catn(s, &size, &ptr, US"-ETRN\r\n", 7);
}
-
- /* Advertise EXPN if there's an ACL checking whether a host is
- permitted to issue it; a check is made when any host actually tries. */
-
- if (acl_smtp_expn != NULL)
+ if (acl_smtp_vrfy)
+ {
+ s = string_catn(s, &size, &ptr, smtp_code, 3);
+ s = string_catn(s, &size, &ptr, US"-VRFY\r\n", 7);
+ }
+ if (acl_smtp_expn)
{
s = string_catn(s, &size, &ptr, smtp_code, 3);
s = string_catn(s, &size, &ptr, US"-EXPN\r\n", 7);