views:

2120

answers:

2

I have a debian webserver and it is running shopsite and some php programs. Which use sendmail to send out email to customers. So this server only needs to send email out. So how do I setup sendmail to use Google Apps smtp? Because I am getting the following error: sm-mta stat=Deferred: Connection reset by mx4.hotmail.com

+3  A: 

If you haven't gotten it set up yet, the easiest way to do it is ditch sendmail, install postfix, and then set up the Google Apps SMTP server as your smarthost. IIRC, the default postfix config has a fully-commented config file, so you just need to read through it, uncomment the smart host line, put in the Google SMTP server, and you're done.

Otherwise, you still need to set up Google Apps as your smarthost. There's a ton of Google-able info on how to do this; see here for instance.

genehack
A: 

You cannot make Google your MTA, as far as I know.

Try using sSMTP

Jonathan