Gmail SMTP relay

405 pts.
Tags:
Gmail
Relay server
SMTP
Ubuntu 10.04
Hi,

Just came to know that there is a possibility of SMTP relaying using gmail accounts(google apps as well).

Can anyone help me on this ??????

I`m using Ubuntu 10.04 LTS



Software/Hardware used:
gmail,smtp,ubuntu

Answer Wiki

Thanks. We'll let you know when a new response is added.

You will have to add following lines to your /etc/postfix/main.cf file :

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I'm not clear on your question. Can you clarify? As I understand things, relaying can be done through any SMTP server that is accessible if the server isn't configured not to relay. That's a standard SMTP capability. But I would be extremely surprised if GMail servers allowed relay for any length of time. The capability is practically guaranteed to be disabled very shortly after it was exposed to the internet. But your question includes the phrase "relaying using gmail accounts". An account generally isn't needed for "relays". If e-mails are being sent by logging on as an account user, then it's not a "relay" -- it's just plain sending authorized e-mails. The fundamental protection against that is changing the password on the e-mail account. A secondary protection would be ensuring that there is no virus/zombie process on your PC that may be stealing your password. Tom
    125,585 pointsBadges:
    report
  • carlosdl
    Yes, some clarification is needed. You didn't specify what exactly you need help with. We don't know if the possibility of relaying is a problem for you, or it is something you want to take advantage of.
    69,510 pointsBadges:
    report
  • Jibin
    i need to send mails from my terminal using sendmail feature in ubuntu to any mail address (Using gmail as SMTP) Process involved: 1) Configure Sendmail 2) Configure relaying on sendmail 3) Use gmail/google apps accounts for sendmail to relay via gmail smtp.
    405 pointsBadges:
    report
  • TomLiotta
    (Using gmail as SMTP) Ah, makes much more sense. (@Carlosdl: Good call!) There are dozens of sets of instructions on the internet for using GMail with sendmail. Different releases, different combinations, whatever. Have you tried any of the existing instructions? An example is Configure sendmail to work with Gmail smtp relay. If you've tried and had problems, what problems were there? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following