On Wednesday 30 August 2006 12:08, Marco Strullato wrote:
> Hi all!
> I can not understand how to send mails to two different address: how can I
> do? what shoud I add?
> my messages section now is
>
> Messages {
> Name = Daemon
> mailcommand = "/bin/mail -s "Bacula daemon message\" %r"
> mail = <mail_address> = all, !skipped
> console = all, !skipped, !saved
> append = "/opt/bacula/var/bacula/working/log" = all, !skipped
> }
>
>From the current bacula-dir.conf file (beware of wrapped lines from emailer):
Messages {
Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a '[EMAIL PROTECTED]', is better since that tends to
# tell (most) people that its coming from an automated source.
#
mailcommand = "/home/kern/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\"
-s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/home/kern/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
%r\" -s \"Bacula: Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/home/kern/bacula/working/log" = all, !skipped
}
Here is a *real* working example of sending to multiple email addresses again
bewary of
email wrapping -- I've edited out the other person's name (xxx.yyy).
Messages {
Name = Standard
mailcommand = "/msu2/kern/bacula/bin/bsmtp -h mail.sibbald.com -f
\"\(Bacula\) [EMAIL PROTECTED]" -s \"oldhavana Bacula: %t %e of %c %l\" %r"
operatorcommand = "/msu2/kern/bacula/bin/bsmtp -h mail.sibbald.com -f
\"\(Bacula\) [EMAIL PROTECTED]" -s \"oldhavana Bacula: Intervention needed for
%j\" %r"
mail = [EMAIL PROTECTED],[EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED],[EMAIL PROTECTED] = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/msu2/kern/bacula/bin/log" = all, !skipped
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users