Bacula-users

[Bacula-users] Problem with bsmtp setup: works from the command line but not in normal op

2008-06-17 06:48:38
Subject: [Bacula-users] Problem with bsmtp setup: works from the command line but not in normal op
From: bacula <bacula AT mycircuit DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 17 Jun 2008 12:48:22 +0200
Hi
I try to set up email notification. The following entered on the command line on the machine where the director is running works:

#  /sbin/bsmtp -h 192.168.1.4 -f bacula AT myhost1 DOT org -s "Backup" root AT myotherhost DOT org
Test
<Ctrl-D>

And I get this message "Test" on my postfix server on the internal network on host 192.168.1.4  - just fine.

However , putting this command in the bacula-dir.conf :

Messages {
  Name = Standard
  mailcommand = "/sbin/bsmtp -h  192.168.1.4
                -f \"%r\"
                -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/sbin/bsmtp -h 192.168.4
                -f \"\(Bacula\) \<%r\>\"
                -s \"Bacula: Intervention needed for %j\" %r"
  mail = root AT mycircuit DOT org = all, !skipped
  append = "/mnt/tc/bacula/log" = all, !skipped
  operator = root AT mycircuit DOT org = mount
  console = all, !skipped, !saved
}

will give me the following errors when running a backup job:


17-Jun 12:18 datacenter-dir JobId 195: message.c:482 Mail prog: bsmtp: bsmtp.c:406 Error unknown mail host "192.168.1.4
17-Jun 12:18 datacenter-dir JobId 195: message.c:482 Mail prog: ": ERR=Success
17-Jun 12:18 datacenter-dir JobId 195: message.c:482 Mail prog: bsmtp: bsmtp.c:408 Retrying connection using "localhost".
17-Jun 12:18 datacenter-dir JobId 195: message.c:482 Mail prog: bsmtp: bsmtp.c:145 Fatal malformed reply from localhost: 501 5.1.3 Bad recipient address syntax
17-Jun 12:18 datacenter-dir JobId 195: Error: message.c:493 Mail program terminated in error.
CMD=/sbin/bsmtp -h  192.168.1.4
                -f "root AT myhost DOT org"
                -s "Bacula: Backup OK of datacenter-fd Incremental" root AT myotherhost DOT org
ERR=Child exited with code 1


Note in particular the error concerning the unknown host at 192.168.1.4 which was not unknown from the command line

Any ideas ?
Thanks a lot
P

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users