Could someone help me to replicate ssmtp functionality using sendmail or advise me please other MTA.
I installed ssmtp and edited ssmtp.conf. PHPmail() and local mail to root etc sending OK to configured mailbox via external ssmtp server using login/password authentification on 587 port. And everything just fine except SSMTP always "interactive delivery mode" which makes website busy until email is finished to sent from frontend.
I've found that sendmail can be switched to "background delivery mode" (submit.cf ->DelivetyMode=b) and this solves website busy problem. So I disable ssmtp via editiong /etc/mail/mailer.conf and try to set up same fuctionality with sendmail + saslauthd + AuthInfo + SMART_HOST. Everything is working except local mail - messages from cron aren't delivered.
I 've read that it's because SMART_HOST not intended to handle local emails and I have to configure also
I tried to do that but seems did something wrong so local mail still not sending to remote smtp server.
Also as an alternative I tried with no positive result
I installed ssmtp and edited ssmtp.conf. PHPmail() and local mail to root etc sending OK to configured mailbox via external ssmtp server using login/password authentification on 587 port. And everything just fine except SSMTP always "interactive delivery mode" which makes website busy until email is finished to sent from frontend.
I've found that sendmail can be switched to "background delivery mode" (submit.cf ->DelivetyMode=b) and this solves website busy problem. So I disable ssmtp via editiong /etc/mail/mailer.conf and try to set up same fuctionality with sendmail + saslauthd + AuthInfo + SMART_HOST. Everything is working except local mail - messages from cron aren't delivered.
I 've read that it's because SMART_HOST not intended to handle local emails and I have to configure also
Code:
define(`MAIL_HUB', `smtp.myisp.com.')dnl
define(`LOCAL_RELAY', `smtp.myisp.com.')dnl
Also as an alternative I tried with no positive result
Code:
FEATURE(`nullclient', `smtp.myisp.com')
undefine(`ALIAS_FILE')