Can gerrit use Gmail SMTP Server?

1,035 views
Skip to first unread message

xiaoya

unread,
Mar 16, 2012, 9:48:36 AM3/16/12
to Repo and Gerrit Discussion
Can gerrit use Gmail SMTP Server?

Magnus Bäck

unread,
Mar 16, 2012, 10:12:47 AM3/16/12
to Repo and Gerrit Discussion
On Friday, March 16, 2012 at 09:48 EDT,
xiaoya <xugu...@rogen.com.cn> wrote:

> Can gerrit use Gmail SMTP Server?

Sure, just include proper login credentials in gerrit.conf.

Note that all released versions of Gerrit submit email messages
synchronously with the operations that trigger the email, so e.g.
operations in the web UI will temporarily freeze while the message
is being sent (and if your connection to the Gmail servers is flaky
the UI could probably hang for minutes).

This drawback was solved last week, so future Gerrit releases won't
have this problem.

I recommend that you set up your own SMTP server for outgoing email.

--
Magnus Bäck
ba...@google.com

Shawn Pearce

unread,
Mar 16, 2012, 1:38:17 PM3/16/12
to Repo and Gerrit Discussion

Indeed, I prefer using a local SMTP server like Postfix to relay to
the GMail SMTP servers. This way Gerrit stays nice and fast, and
retrying delivery through GMail during a temporary network outage or
something is automatically handled by a reliable MTA like Postfix
rather than having to build all of this into Gerrit Code Review
itself.

xiaoya

unread,
Mar 16, 2012, 11:32:55 PM3/16/12
to Repo and Gerrit Discussion
Hi,
I wanna to use local smtp server ,too.Yesterday I built the Postfix in
my computer,it can send mail to another user on my computer,but can't
send to another computer .What's wrong with it?

Thanks,

On 3月17日, 上午1时38分, Shawn Pearce <s...@google.com> wrote:
> On Fri, Mar 16, 2012 at 07:12, Magnus Bäck <ba...@google.com> wrote:
> > On Friday, March 16, 2012 at 09:48 EDT,
> >     xiaoya <xuguil...@rogen.com.cn> wrote:
>
> >> Can gerrit use Gmail SMTP Server?
>
> > Sure, just include proper login credentials in gerrit.conf.
>
> > Note that all released versions of Gerrit submit email messages
> > synchronously with the operations that trigger the email, so e.g.
> > operations in the web UI will temporarily freeze while the message
> > is being sent (and if your connection to the Gmail servers is flaky
> > the UI could probably hang for minutes).
>
> > This drawback was solved last week, so future Gerrit releases won't
> > have this problem.
>
> > I recommend that you set up your own SMTP server for outgoing email.
>
> Indeed, I prefer using a local SMTP server like Postfix to relay to
> the GMail SMTP servers. This way Gerrit stays nice and fast, and
> retrying delivery through GMail during a temporary network outage or
> something is automatically handled by a reliable MTA like Postfix
> rather than having to build all of this into Gerrit Code Review
> itself.- 隐藏被引用文字 -
>
> - 显示引用的文字 -

xiaoya

unread,
Mar 17, 2012, 1:42:03 AM3/17/12
to Repo and Gerrit Discussion
If I wanna to use Gmail SMTP Server ,How to do it?

Thanks,

On 3月16日, 下午10时12分, Magnus Bäck <ba...@google.com> wrote:
> On Friday, March 16, 2012 at 09:48 EDT,
>      xiaoya <xuguil...@rogen.com.cn> wrote:
>
> > Can gerrit use Gmail SMTP Server?
>
> Sure, just include proper login credentials in gerrit.conf.
How?

Magnus Bäck

unread,
Mar 17, 2012, 10:22:04 AM3/17/12
to Repo and Gerrit Discussion
On Fri, Mar 16, 2012 at 11:32 PM,
xiaoya <xugu...@rogen.com.cn> wrote:

> I wanna to use local smtp server ,too.Yesterday I built the Postfix in
> my computer,it can send mail to another user on my computer,but can't
> send to another computer .What's wrong with it?

That's impossible to say with the information you're giving us. Read
the logs (/var/log/mail.info or similar) and contact the postfix-users
mailing list for further help (make sure to include logs and "postconf
-n" output in your post). The kind of configuration you're looking for
is a standard one that's described in the Postfix documentation.

http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/STANDARD_CONFIGURATION_README.html
http://www.postfix.org/SASL_README.html#client_sasl

Googling "postfix gmail" will give you several useful pages.

Was it really necessary to build Postfix yourself? Surely, your
distribution has a prebuilt Postfix that you can use.

--
Magnus Bäck
ba...@google.com

Magnus Bäck

unread,
Mar 17, 2012, 10:25:09 AM3/17/12
to Repo and Gerrit Discussion
On Sat, Mar 17, 2012 at 1:42 AM,
xiaoya <xugu...@rogen.com.cn> wrote:

> If I wanna to use Gmail SMTP Server ,How to do it?

See https://groups.google.com/d/topic/repo-discuss/6FSg5XksjaE/discussion.

--
Magnus Bäck
ba...@google.com

Reply all
Reply to author
Forward
0 new messages