LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06:56 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
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 09:57 PM.
 
Old 10-31-2011, 08:02 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 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