Configure sendmail as gmail relay
Hello !
I took the template file /usr/share/sendmail/cf/cf/sendmail-slackware.mc and added those 3 lines : define(`SMART_HOST',`smtp.gmail.com:465') define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl I created the file /etc/mail/auth/client-info with this content : AuthInfo:smtp.gmail.com "U:root" "I:myaddress@gmail.com" "P:mypassword" After that I changed the permissions and created de db file with those commands : chmod 600 /etc/mail/auth/client-info makemap -r hash /etc/mail/auth/client-info.db < /etc/mail/auth/client-info And finaly compiled the configuration file and restarted sendmail : m4 sendmail-slackware.mc > sendmail-slackware.cf cp sendmail-slackware.cf /etc/sendmail.cf /etc/rc.d/rc.sendmail restart When I try to send a mail, it's always "stat=Defered" and stays in the queue and never use the relay. Now, if I delete de port 465 I get this error : "stat=Deferred: smtp.gmail.com: No route to host" Why ??? Thanks for your help. |
Pretty sure you need to use SSL for the authority mechanism along with port 995. Don't think Gmail will allow anything else. Probably means you'll need to rebuild your cf file with SSL in mind. Slackware should ship with an ssl/tls example cf/mc file so try using that one.
|
All times are GMT -5. The time now is 09:01 PM. |