Hi Ron,

If you're using sendmail, you probably want to use the smarthost feature to have it send all mail via your email provider.  So if your smarthost provider is smtp.comcast.net, you would modify sendmail.mc and before the MAILER definition you would add something like:

define(`SMART_HOST', `smtp:smtp.comcast.net')

Then run "make" which should convert the sendmail.mc into sendmail.cf.  If that's successful, restart sendmail, then try sending some messages to see what happens in mail.log.

I use Debian at home too (Debian 10 actually), but I use postfix there.  In that case, you would edit main.cf and set the default_transport line to be:

default_transport = smtp:smtp.comcast.net

Note that some of your providers may (probably will) require you to use SMTP authentication and STARTTLS to be able to send mail ... That will require additional configuration.

For Sendmail,

http://www.sendmail.org/~ca/email/auth.html

and look for "Using sendmail as a client with auth"

For Postfix: http://www.postfix.org/SASL_README.html#client_sasl

Hope this is helpful.

Jim Lawson

On 4/29/20 4:34 PM, Ron Lawrence wrote:

Hi folks,

Tell me if posting question like this is out of bounds.  I’m still relatively new to Linux—but I’m managing my own servers.  I’m running Debian 9 and working in PHP. The application I’m working on needs to be able to send emails.  PHP requires an MTA to be installed for its /mail()/ function to work.  I’ve installed SendMail, but I’m getting lost in what documentation I have found for configuration.

I’m wondering what people are using for an MTA and how you are solving the problem of mail servers junking your emails (because they don’t trust the source).  My thought here is to use one of my email providers (Comcast, GoDaddy, or Gmail) for the SMTP service.  But that means configuring the MTA to do that.

Any advice would be appreciated.

Thanks in advance,

*Ron Lawrence*
Publishers' Assistant

http://pubassist.com

ph: 800-310-8716

Reply via email to