Bacula-users

Re: [Bacula-users] Missing emails after upgrade to 5.0.2

2010-07-09 09:47:06
Subject: Re: [Bacula-users] Missing emails after upgrade to 5.0.2
From: Udo Lembke <udo.lembke AT albertbauer DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 09 Jul 2010 15:44:40 +0200
Hi,
if you switch to the backup-user (bacula?), perhaps you will be unable 
to send mail because the rights of libbac-5.0.1.so are to strong:
bacula@backup-srv: $ /usr/sbin/bsmtp -h mailgate.domain.de -f 
bacula AT domain DOT de -s "testmail von bsmtp" bacula AT domain DOT de
/usr/sbin/bsmtp: error while loading shared libraries: libbac-5.0.1.so: 
cannot open shared object file: Permission denied

ls -lsa /usr/lib/libbac-5.0.1.so
152 -rwxr-x--- 1 root root 359306 Jan  1  1980 /usr/lib/libbac-5.0.1.so

chmod 755 /usr/lib/libbac-5.0.1.so should help. Or change the group, or 
use visudo and add following: bacula  ALL = NOPASSWD: /usr/sbin/bsmtp
(then you must call bsmtp with sudo - i do that way because i start 
bacula from a cd-distro - devil-linux)

Udo


Am 08.07.2010 11:32, schrieb Patric Buskas:
> Hi,
> I just upgraded Bacula 3.0.3 to 5.0.2 on a Centos 5.4.
> I followed the instructions to build the rpms @
> http://wiki.bacula.org/doku.php?id=howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5.
> Now I don't get any emails sent from bacula.
> Everything else seems to work like before upgrade.
> I haven't changed anything in the Messages entry in bacula-dir.conf:
>
> Messages {
>   Name = Standard
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
>   mail = root@localhost = all, !skipped
>   operator = root@localhost = mount
>   console = all, !skipped, !saved
>   append = "/var/lib/bacula/log" = all, !skipped
> }
>
> The messages are passed on to /var/lib/bacula/log and I've
> successfully sent emails with bsmtp to the same recipient from command
> prompt.
> Does anyone got any idea how to solve this problem?
> Best Regards

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>