--- digest.orig	Fri Jan  7 12:04:34 2000
+++ digest	Wed Feb  2 13:31:41 2011
@@ -322,8 +322,9 @@ sub readconfig {
 		&abort("-C used without -l");
 	    } else {
 		# Read and execute the .cf file
-		$cf = $opt_c || $ENV{"MAJORDOMO_CF"} || 
-		    "/etc/majordomo.cf";
+		$opt_c = ($opt_c && $opt_c !~ /\//) ?
+		    "$ENV{'MAJORDOMO_CFDIR'}/$opt_c" : '';
+		$cf = $opt_c || $ENV{"MAJORDOMO_CF"} || "/etc/majordomo.cf";
 		require "$cf";
 
 		chdir($homedir);
@@ -335,7 +336,7 @@ sub readconfig {
 # Define all of the mailer properties:
 # It is possible that one or both of $sendmail_command and $bounce_mailer
 # are not defined, so we provide reasonable defaults.
-$sendmail_command = "/usr/lib/sendmail"
+$sendmail_command = "/usr/sbin/sendmail"
   unless defined $sendmail_command;
 $mailer = "$sendmail_command -oi -oee -f\$sender"
   unless defined $mailer;
@@ -414,7 +415,7 @@ $bounce_mailer = "$sendmail_command -f\$sender -t"
 
 # Define all of the mailer properties:
 # The majordomo.cf file isn't used in this option, so fake everything.
-$sendmail_command = "/usr/lib/sendmail"
+$sendmail_command = "/usr/sbin/sendmail"
   unless defined $sendmail_command;
 $mailer = "$sendmail_command -oi -oee -f\$sender"
   unless defined $mailer;
