405 pts.
 Gmail SMTP relay
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
ASKED: May 14, 2011  12:47 AM
UPDATED: May 25, 2011  4:25 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  May 25, 2011  4:25 am  by  stephenlembert   975 pts.
All Answer Wiki Contributors:  stephenlembert   975 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 108,205 pts.

 

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.

 63,535 pts.

 

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 pts.

 

(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

 108,205 pts.