Configure sendmail as gmail relay
I took the template file /usr/share/sendmail/cf/cf/sendmail-slackware.mc and added those 3 lines :
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
I created the file /etc/mail/auth/client-info with this content :
AuthInfo:smtp.gmail.com "U:root" "I:email@example.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
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"
Thanks for your help.