how to use gmail smtp server for outgoing mail

Donald Russell russell.don at gmail.com
Tue Jan 18 06:28:38 UTC 2011


I have a domain associated with my comcast IP address (I use dyndns.org)

I installed sendmail on Fedora 14 and I can receive mail OK, but when I try
to send outgoing mail, gmail.com rejects it with the following error:

   ----- Transcript of session follows -----
... while talking to smtp.gmail.com:
>>> MAIL From:<don at drussell.dnsalias.com> SIZE=634
<<< 530-5.5.1 Authentication Required. Learn more at
<<< 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257v19sm7563260wfh.0
554 5.0.0 Service unavailable

I've tried to update /etc/mail/auth/client-info
and run makemap -r has /etc/mail/auth/client-info.db < client-info
/etc/mail/make
service sendmail restart

but not having any success. :-(

Obviously I don't have it configured properly for when sendmail is acting as
a client. :-(

Here are the changes I've made to sendmail.mc (and then cd /etc/mail; make)

#diff sendmail.mc sendmail.mc.original
26d25
< dnl # DNR 2011-01-12 Specify gmail, and add 2 lines to use port 587
28,30d26
< define(`SMART_HOST', `smtp.gmail.com')dnl
< define(`RELAY_MAILER_ARGS',`TCP $h 587')
< define(`ESMTP_MAILER_ARGS',`TCP $h 587')
88,89d83
< dnl # DNR 2011-01-16 Add auth file
< dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
122,124c116
< dnl # DNR 2010-12-29 Accept mail from anywhere, not just local host
< dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
< DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
---
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
157,158c149
< dnl # DNR 2011-01-17 Remove following line as per above recommendation
< dnl FEATURE(`accept_unresolvable_domains')dnl
---
> FEATURE(`accept_unresolvable_domains')dnl
169d159
< dnl # DNR 2010-12-29 Masquerade...
171d160
< MASQUERADE_AS(`drussell.dnsalias.com')dnl
175,176c164
< dnl # DNR 2010-12-29 turn on following feature
< FEATURE(masquerade_envelope)dnl
---
> dnl FEATURE(masquerade_envelope)dnl
180,181c168
< dnl # DNR 2010-12-29 turn on following feature
< FEATURE(masquerade_entire_domain)dnl
---
> dnl FEATURE(masquerade_entire_domain)dnl


Any suggestions?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20110117/bbd1419d/attachment.html 


More information about the users mailing list