LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2009, 07:28 PM   #1
mexx20
LQ Newbie
 
Registered: Mar 2005
Posts: 8

Rep: Reputation: 0
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.
 
Old 02-14-2009, 10:01 AM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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.

Last edited by jong357; 02-14-2009 at 10:04 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure Sendmail relay local domain. rroman81 Linux - Server 0 02-08-2009 02:12 AM
configure sendmail to relay mail to exchange server goldwing Red Hat 3 10-18-2008 04:07 PM
How to configure sendmail with gmail? athanatos Slackware 1 07-18-2006 04:37 PM
Configure sendmail to *use* authenticated SNMP relay? TotalDefiance Linux - Software 1 11-22-2005 09:37 AM
sendmail configure relay for specific e-mail addresses LeovanBussel Linux - Newbie 1 07-29-2003 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration