Re: [Bacula-users] Bacula daemon message- where did it come from?
2015-08-11 14:11:09
Thanks for the reply, Ana. But the mail *was* from Bacula. My bacula-dir.conf looks like this: Messages { Name = Daemon mailcommand = "/usr/local/bin/my_smtp -h mailhub -f \"\(Bacula\) \<backup AT example DOT com\>\" -s \"Bacula daemon message\" %r"...so I can debug those sneaky mail problems :-) . /usr/local/bin/my_smtp logs the behavior; here is its code: echo ARGUMENTS: 1:"'$1'" 2:"'$2'" 3:"'$3'" 4:"'$4'" 5:"'$5'" 6:"'$6'" 7:"'$7'" 8: "'$8'" | logger -p mail.info /usr/sbin/bsmtp -d 10 "$@" 2>&1 | logger -p mail.infoAnd indeed, the mail log shows the event taking place at 11:00, the time the mail was sent:
Aug 9 11:00:01 ch0-backup-01 logger: ARGUMENTS: 1:'-h' 2:'mailhub' 3:'-f' 4:'(Bacula) <backup AT example DOT com>' 5:'-s' 6:'Bacula daemon message' 7:'it AT example DOT com' 8: '' Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 220 mailhub.example.com ESMTP Postfix Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 220 mailhub.example.com ESMTP Postfix Aug 9 11:00:01 ch0-backup-01 logger: mailhub.example.com --> HELO ch0-backup-01 Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 250 mailhub.example.com Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 250 mailhub.example.com Aug 9 11:00:01 ch0-backup-01 logger: ch0-backup-01 --> MAIL FROM:<backup AT example DOT com> Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 250 2.1.0 Ok Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 250 2.1.0 Ok Aug 9 11:00:01 ch0-backup-01 logger: ch0-backup-01 --> RCPT TO:<it AT example DOT com> Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 250 2.1.5 Ok Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 250 2.1.5 Ok Aug 9 11:00:01 ch0-backup-01 logger: ch0-backup-01 --> DATA Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 354 End data with <CR><LF>.<CR><LF> Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 354 End data with <CR><LF>.<CR><LF> Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:594-0 From: (Bacula) <backup AT example DOT com> Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:597-0 Subject: Bacula daemon message Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:625-0 Sender: bacula@ch0-backup-01 Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:630-0 To: it AT example DOT com bsmtp: bsmtp.c:637-0 Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:650-0 Date: Sun, 09 Aug 2015 11:00:01 +0000 (UTC) Aug 9 11:00:01 ch0-backup-01 logger: ch0-backup-01 --> . Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 250 2.0.0 Ok: queued as 921D72056F Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 250 2.0.0 Ok: queued as 921D72056F Aug 9 11:00:01 ch0-backup-01 logger: ch0-backup-01 --> QUIT Aug 9 11:00:01 ch0-backup-01 logger: mailhub <-- 221 2.0.0 Bye Aug 9 11:00:01 ch0-backup-01 logger: bsmtp: bsmtp.c:130-0 mailhub --> 221 2.0.0 Bye
This message is for the named person(s) use only. It may contain confidential proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Mocho Trading LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|