Hey Kelvin/Alex,
You could also just set postfix to send ssl/tls authenticated emails:
http://www.bacula.com.br/?p=1160
Regards,
=======================================================================
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified
Administrator II
15 a 26 de junho: Treinamento Telepresencial Bacula:
http://www.bacula.com.br/?p=2174
61 8268-4220
Site: www.bacula.com.br | Facebook: heitor.faria | Gtalk: [email protected]
========================================================================
> De: "Alex Domoradov" <[email protected]>
> Para: "Kelvin Minter" <[email protected]>
> Cc: "bacula-users" <[email protected]>
> Enviadas: Segunda-feira, 18 de maio de 2015 4:54:05
> Assunto: Re: [Bacula-users] Unable to send mail with mutt as mailcommand
> You can use swaks to send emails with ssl/tls. It's a very useful command line
> utility which I have used with nagios
> /usr/bin/printf "$MESSAGE$" | /usr/bin/swaks -4 --server
> smtp.googlemail.com:587
> --from [email protected] --to [email protected] -tls --auth PLAIN
> --auth-user [email protected] --auth-password 7654321 --h-Subject
> "$SUBJECT$" --body - --hide-all
> The other way is to setup stunnel, if your command line utility doesn't
> support
> ssl/tls, but email server require it.
> On Thu, May 14, 2015 at 8:40 PM, Kelvin Minter < [email protected] > wrote:
>> I am now seeing logs within the maillog after following Bill's advice.
>> Thank you for your replys and happy coding!
>> On Thu, May 14, 2015 at 9:04 AM, Richard <
>> [email protected] >
>> wrote:
>>> ------------ Original Message ------------
>>> > Date: Thursday, May 14, 2015 09:11:10 AM -0400
>>> > From: Bill Arlofski < [email protected] >
>>> > On 05/14/2015 01:33 AM, Kelvin Minter wrote:
>>> >> Hello I am running bacula 5.2.13 on CentOS 6.6.
>>> >> I have the following configuration for my messages in
>>> >> /etc/bacula/bacula-dir.conf
>>> >> Messages {
>>> >> Name = Standard
>>> >> mailcommand = "/usr/bin/mutt -F /root/.muttrc-bacula -s
>>> >> \"Bacula: %t %e of %c %l\" %r"
>>> >> operatorcommand = "/usr/bin/mutt -F /root/.muttrc-bacula -s
>>> >> \"Bacula: Intervention needed for %j\" %r"
>>> >> mail = [email protected] <mailto: [email protected] > = all,
>>> >> !skipped operator = [email protected]
>>> >> <mailto: [email protected] > = mount console = all, !skipped,
>>> >> !saved
>>> >> append = "/var/log/bacula/bacula.log" = all, !skipped
>>> >> catalog = all
>>> >> }
>>> >> When I run mutt on the command line it proceeds and I am able to
>>> >> receive the mail at my destination address.
>>> >> However, when running a job I receive no email upon completion of
>>> >> the job and no log is created within bacula or maillog.
>>> >> I am using tls for postfix but this should be no issue as I can
>>> >> run the above mailcommand from the command line and receive an
>>> >> email.
>>> >> Using bsmtp (Unable to send because I need to run through tls)
>>> >> will produce an erroneous entry in the maillog file.
>>> >> I am stumped on how to debug further to determine where the mail
>>> >> is being caught up at. It seems to have to be something on
>>> >> bacula's end.
>>> >> Any help would be appreciated.
>>> > Hi Kelvin,
>>> > I would first check to see what user that the bacula-dir daemon is
>>> > running as:
>>> ># ps axuf | grep bacula-dir
>>> > On some distributions, the director runs as user "bacula", on
>>> > others (like Gentoo) it runs as user "root". The director does not
>>> > need to run as root, but some distributions package Bacula so that
>>> > it does.
>>> > You are pointing mutt to a config file in the root user's home
>>> > directory, perhaps mutt, running as "bacula" when called by the
>>> > director simply can not read the config file and exits?
>>> > Bill
>>> >From your slightly obscured configuration, I'm assuming that you're
>>> trying to deliver the mail directly from bacula to your remote mail
>>> server, not localhost, which is why you have the bsmtp/TLS issue. I
>>> believe that if you use the default Bacula bsmtp setup to deliver to
>>> localhost and then alias the recipient off (with an entry in
>>> /etc/aliases) you should be ok. That approach will invoke the
>>> (postfix) MTA -- which will handle TLS just fine. [and avoids the
>>> issue of trying to configure a different mailer.] E.g.,
>>> mailcommand = "/usr/sbin/bsmtp -h localhost -f ...
>>> mail = <user>@localhost = all, !skipped
>>> operator = <user>@localhost = mount
>>> which is the default Bacula configuration and what I use on my
>>> centos box.
>>> - Richard
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Bacula-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Bacula-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users