$ssh_agent = "/usr/bin/ssh-agent";
$ssh_add = "/usr/bin/ssh-add";
$md5sum = "/usr/bin/md5sum";
-$mail = "/usr/bin/mail";
+$mail = "/usr/sbin/sendmail";
$mkfifo = "/usr/bin/mkfifo";
$tar = "/bin/tar"; # must be GNU tar!
$gzip = "/bin/gzip";
$junk = @conf::nonus_packages;
$junk = @conf::test_binaries;
$junk = @conf::maintainer_mail;
+$junk = $conf::mail ||= '/usr/sbin/sendmail';
$conf::target = "localhost" if $conf::upload_method eq "copy";
package main;
# then send out
#
sub finish_mail() {
- local( *MAIL );
debug( "No mail for $main::mail_addr" )
if $main::mail_addr && !$main::mail_text;
my $package = keys %main::packages ? join(' ', keys %main::packages) : "";
use Email::Send;
- $Email::Send::Sendmail::SENDMAIL = '/usr/sbin/sendmail';
+
+ unless (defined($Email::Send::Sendmail::SENDMAIL)) {
+ $Email::Send::Sendmail::SENDMAIL = $conf::mail;
+ }
my $message = <<__MESSAGE__;
To: $addr