Bacula-users

Re: [Bacula-users] Bacula's bsmtp and gmail

2008-07-11 05:03:23
Subject: Re: [Bacula-users] Bacula's bsmtp and gmail
From: "Mark V" <mvyver AT gmail DOT com>
To: "Ryan Novosielski" <novosirj AT umdnj DOT edu>
Date: Fri, 11 Jul 2008 19:03:14 +1000
On Thu, Jul 10, 2008 at 12:26 AM, Ryan Novosielski <novosirj AT umdnj DOT edu> 
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John Drescher wrote:
>>> I think smtp.gmail.com is used by gmail users for relaying email, so it
>>> requires authentication (your gmail password).  The bsmtp program is only
>>> useful to connect to a local mail relay that doesn't require password
>>> authentication.
>>>
>> I know for my bacula emails to gmail that I do not connect to
>> smtp.gmail.com. I use a postfix email server on a local machine.
>
> The rule of thumb is that you should be using the mail server that
> resides on your network, whatever mail server that is supposed to be
> (and assuming there is one). Mail servers generally allow mail from the
> local network and are strict, if they allow it at all, about mail from
> the outside.
>

The simplest solution I've found is to install the ssmtp package.
This use case is quite specific, and is just what ssmtp targets:
"extremely simple MTA to get mail off the system to a mail hub", and
this handles gmail :)

Two gmail enabling config files:

cat <<EOD>/etc/ssmtp/ssmtp.conf
root=$GMAIL_USER AT gmail DOT com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=$GMAIL_USER AT gmail DOT com
UseSTARTTLS=YES
AuthUser=$GMAIL_USER
AuthPass=$GMAIL_PSWD
FromLineOverride=YES # optional
EOD

cat <<EOD>/etc/ssmtp/revaliases
root:$GMAIL_USER AT gmail DOT com:smtp.gmail.com:587
mv:$GMAIL_USER AT gmail DOT com:smtp.gmail.com:587
EOD

Hope this helps someone else?
Regards
Mark

> - --
>  ---- _  _ _  _ ___  _  _  _
>  |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
>  |$&| |__| |  | |__/ | \| _| |novosirj AT umdnj DOT edu - 973/972.0922 
> (2-0922)
>  \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIdMqrmb+gadEcsb4RAlTBAJ9qmtO3/ZZ2LE0L5BkoiUtxMXlhLwCgx5DJ
> ZZeNgqLGGwTWLHUbkYWpcds=
> =QdEl
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users