Fallback to system's sendmail if the one from Zimbra isn't installed
This will be the case if you run mailboxd and mta on different servers
This commit is contained in:
parent
5867c0b54e
commit
04aa834976
|
@ -770,7 +770,7 @@ sub handle_error {
|
|||
body_str => "LDAP synchronisation for domain $domain failed at step '$step'. The error was\n$err\n",
|
||||
);
|
||||
my $transport = Email::Sender::Transport::Sendmail->new({
|
||||
sendmail => '/opt/zimbra/common/sbin/sendmail'
|
||||
sendmail => ( -x '/opt/zimbra/common/sbin/sendmail' ) ? '/opt/zimbra/common/sbin/sendmail' : '/usr/sbin/sendmail'
|
||||
});
|
||||
sendmail( $mail, { transport => $transport } );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue