aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/mail.lmtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'smtpd/mail.lmtp.c')
-rw-r--r--smtpd/mail.lmtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/smtpd/mail.lmtp.c b/smtpd/mail.lmtp.c
index 55faa331..93154446 100644
--- a/smtpd/mail.lmtp.c
+++ b/smtpd/mail.lmtp.c
@@ -57,6 +57,9 @@ main(int argc, char *argv[])
const char *destination = "inet:localhost";
struct session session;
+ if (! geteuid())
+ errx(1, "mail.lmtp: may not be executed as root");
+
session.lhlo = "localhost";
session.mailfrom = NULL;