Bug 24216 - bacula-dir can't send email due to /usr/sbin/bsmtp rights
Summary: bacula-dir can't send email due to /usr/sbin/bsmtp rights
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-21 13:40 CET by Stéphane Pontier
Modified: 2019-03-03 14:11 CET (History)
1 user (show)

See Also:
Source RPM: bacula-9.4.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Stéphane Pontier 2019-01-21 13:40:24 CET
Description of problem:
Bacula-dir runs fine and when a backup is done, try to send an email but fail with the following message

  CMD=/usr/sbin/bsmtp -h sandalphon -f "(Bacula) <root@sandalphon>" -s "Bacula: Backup OK of azrael-fd Full" root@sandalphon
  ERR=Permission denied

How reproducible:
Always

Steps to Reproduce:
1. install bacula-dir
2. configure a backup
3. wait for the backup to be completed (using bconsole or bat)
4. journalctl -u bacula-dir and see the error message

I'm able to solve the problem by changing the ownership of the program:
  sudo chown bacula /usr/sbin/bsmtp
But I have to redo this change each time the bacula-dir package is updated.
Comment 1 Marja Van Waes 2019-01-22 14:49:44 CET
Assigning to the registered maintainer.

Assignee: bugsquad => shlomif
CC: (none) => marja11

Comment 2 Shlomi Fish 2019-02-15 23:42:55 CET
Please try again with bacula-9.4.2-2mga7. Thanks

Status: NEW => ASSIGNED

Comment 3 Stéphane Pontier 2019-03-03 14:11:09 CET
It's working fine now.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.