LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-21-2011, 07:56 PM   #1
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 304

Rep: Reputation: 32
Using Gmail as a relay server


I've read 5 different sets of instructions for how to do this. I still can't get it to work. I send messages with sendmail -t -v. Here's the output:

NancySmith@comcast.net... Connecting to [127.0.0.1] via relay...
220 homedomain.net ESMTP Sendmail 8.14.5/8.14.5; Thu, 20 Oct 2011 20:08:19 -0600
>>> EHLO homedomain.net
250-homedomain.net Hello IDENT:25@localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<JoeJones@gmail.com> SIZE=226 AUTH=JoeJones@gmail.com
250 2.1.0 <JoeJones@gmail.com>... Sender ok
>>> RCPT To:<NancySmith@comcast.net>
>>> DATA
250 2.1.5 <NancySmith@comcast.net>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <NancySmith@comcast.net>... Connecting to smtp.gmail.com port 587 via relay...
050 <NancySmith@comcast.net>... Deferred
250 2.0.0 p9L28JvG007207 Message accepted for delivery
NancySmith@comcast.net... Sent (p9L28JvG007207 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT

About 7 minutes elapses during the '>>> .' line.

/var/log/maillog records:

Oct 20 20:14:38 homedomain sm-mta[7207]: p9L28JvG007207: to=<NancySmith@comcast.net>, delay=00:06:19, xdelay=00:06:19, mailer=relay, pri=30473, relay=587, dsn=4.0.0, stat=Deferred

Oct 20 20:14:38 homedomain sendmail[7206]: p9L28JLk007206: to=NancySmith@comcast.net, ctladdr=JoeJones@gmail.com (0/0), delay=00:06:19, xdelay=00:06:19, mailer=relay, pri=30226, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9L28JvG007207 Message accepted for delivery)

Oct 20 20:21:31 homedomain sendmail[7310]: p9L28JvG007207: to=<NancySmith@comcast.net>, delay=00:13:12, xdelay=00:06:19, mailer=relay, pri=120473, relay=587, dsn=4.0.0, stat=Deferred

Last edited by RandomTroll; 10-22-2011 at 10:57 PM.
 
Old 10-31-2011, 09:02 PM   #2
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 304

Original Poster
Rep: Reputation: 32
My gmail relay problem: some places lack reverse DNS records for their IPs; gmail refuses to forward mail from such places. I have no ISP but reply upon public hosts; not all have reverse DNS records for their IPs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 as gmail relay mexx20 Slackware 1 02-14-2009 11:01 AM
postfix relay thru gmail NeptunEz Linux - Networking 17 12-09-2006 10:10 AM
Postfix for Gmail relay Sinedie Linux - Server 1 11-17-2006 12:51 AM
problem setting up home linux gmail relay emanresu Linux - Software 0 07-12-2006 12:58 PM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM


All times are GMT -5. The time now is 11:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration