summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann <hs+exim@schlittermann.de>2014-03-16 22:29:59 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2014-03-16 22:39:40 +0000
commit6681531ad79b73f4e811037481a0055ace41e46d (patch)
tree7e433a1963dab4f4cef8f1c3d3be52a45ce5a5cf /src
parent511a6c14924b5e931d67c4257ee7592dcc6ef49e (diff)
Enforce that only smtp transports can be used for verify callouts. Bug 1445
Diffstat (limited to 'src')
-rw-r--r--src/src/verify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/src/verify.c b/src/src/verify.c
index 39f546ed6..8cc67f1b1 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -373,6 +373,9 @@ if (!addr->transport)
{
HDEBUG(D_verify) debug_printf("cannot callout via null transport\n");
}
+else if (Ustrcmp(addr->transport->driver_name, "smtp") != 0)
+ log_write(0, LOG_MAIN|LOG_PANIC|LOG_CONFIG_FOR, "callout transport '%s': %s is non-smtp",
+ addr->transport->name, addr->transport->driver_name);
else
{
smtp_transport_options_block *ob =