From 611d2ed7bca45b9f572e14521b744df1b3f1e5e1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Mar 2001 16:05:24 +0000 Subject: Use sendmail if we find it. svn path=/trunk/; revision=3213 --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index d8544126..060ab50c 100644 --- a/configure.in +++ b/configure.in @@ -207,12 +207,21 @@ AC_MSG_RESULT(root-mode pid file will go in $dir) AC_DEFINE_UNQUOTED(PID_DIR, "$dir") # We may have a fallback MDA available in case the socket open to the -# local SMTP listener fails... +# local SMTP listener fails. Best to use procmail for this, as we know +# it won't try delivering through local SMTP and cause a mail loop. +# Sendmail without the -t option to use the message headers will work too, +# not just for sendmail itself but for workalikes like exim. AC_PATH_PROG(procmail, procmail, "", $PATH:/usr/sbin) if test "$procmail" then echo "Found procmail, will use it as a fallback MDA." AC_DEFINE(FALLBACK_MDA, "$procmail -d %T") + AC_PATH_PROG(sendmail, sendmail, "", $PATH:/usr/sbin) + if test "$sendmail" + then + echo "Found sendmail, will use it as a fallback MDA." + AC_DEFINE(FALLBACK_MDA, "$sendmail %T") + fi fi AC_CHECK_SIZEOF(short) -- cgit v1.2.3