ssmtp functionality via sendmail need advise

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
Code:
define(`MAIL_HUB', `smtp.myisp.com.')dnl
define(`LOCAL_RELAY', `smtp.myisp.com.')dnl
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
Code:
FEATURE(`nullclient', `smtp.myisp.com')
undefine(`ALIAS_FILE')
 
Sendmail treats the "w" class as the domains for which it will attempt local delivery. The default FreeBSD configuration (/etc/mail/freebsd.mc) includes these lines, for example:

Code:
FEATURE(local_lmtp)
...
define(`confCW_FILE', `-o /etc/mail/local-host-names')
...

/etc/mail/local-host-names is the file containing names of hosts for which the system receives email. What's in your file?
 
See previous post - corrected :)

Please consult the sendmail documentation for an explanation of the w class beyond what I have already explained.
 
Back
Top