summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpctl.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@cvs.openbsd.org>2018-01-06 07:59:28 +0000
committerSunil Nimmagadda <sunil@cvs.openbsd.org>2018-01-06 07:59:28 +0000
commitf3a6f031708e22291b95954c1c6108e69574aaaa (patch)
tree357433ecbcd32555bf1b099d17f5304dafaa7d78 /usr.sbin/smtpd/smtpctl.c
parent7b344317259f5880cd229f4d7eb988f4930098f7 (diff)
Import gilles@'s standalone spfwalk utility into smtpctl(8) as
'spf walk' command. Ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r--usr.sbin/smtpd/smtpctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index bd85863267c..ec2320b0a31 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.154 2017/07/27 18:48:30 sunil Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.155 2018/01/06 07:59:27 sunil Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -69,6 +69,8 @@ static int is_gzip_buffer(const char *);
static FILE *offline_file(void);
static void sendmail_compat(int, char **);
+extern int do_spfwalk(int, struct parameter *);
+
extern char *__progname;
int sendmail;
struct smtpd *env;
@@ -1067,6 +1069,7 @@ main(int argc, char **argv)
cmd_install("show routes", do_show_routes);
cmd_install("show stats", do_show_stats);
cmd_install("show status", do_show_status);
+ cmd_install("spf walk", do_spfwalk);
cmd_install("trace <str>", do_trace);
cmd_install("uncorrupt <msgid>", do_uncorrupt);
cmd_install("unprofile <str>", do_unprofile);