Hi Dave

Sorry about the delay, weekend was a bit busy :)

My mail server is sendmail on both my home Linux box, and the company file server (also Linux). Here is the relevant lines from my bacula-dir.conf (email address has been changed):

===============

mailcommand = "/sbin/bsmtp -h localhost -f \"\(Marvin-Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"

operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Marvin-Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"

mail = [EMAIL PROTECTED] = all, !skipped

operator = [EMAIL PROTECTED] = mount

console = all, !skipped, !saved

===============

Any email messages from bacula get delivered just fine on both boxes.

From what I can understand, the "%r" parameter is replaced with the intended recipient's email address. So, in your config, postfix would see a mail from:

        "([EMAIL PROTECTED]) [EMAIL PROTECTED]"

and it might be getting upset with both parts of the "From" line containing a real address, rather than "(Bacula) [EMAIL PROTECTED]" which is the normal way: (human readable name) + email address.

I would remove the full email address inside the ( and ) chars, and see what happens. Its odd that the %r is used in the sender and the recipients part of bsmtp, I think i`ll edit mine so it appears to come from a specific address, but still sent to "%r".

Steve


Dave wrote:
Hi,
Here's the output of my postfix logs for the email. Do you have a similar setup? Can i see your bacula-dir.conf file? I'd like to compare what you do that works with what i do which does not.
Thanks.
Dave.

Jan 27 15:35:18 zeus postfix/smtpd[9209]: connect from unknown[127.0.0.1]
Jan 27 15:35:18 zeus postfix/smtpd[9209]: warning: Illegal address syntax from unknown[127.0.0.1] in MAIL command: <([EMAIL PROTECTED]) [EMAIL PROTECTED]> Jan 27 15:35:18 zeus postfix/smtpd[9209]: lost connection after MAIL from unknown[127.0.0.1] Jan 27 15:35:18 zeus postfix/smtpd[9209]: disconnect from unknown[127.0.0.1]
Jan 27 15:35:18 zeus postfix/smtpd[9209]: connect from unknown[127.0.0.1]
Jan 27 15:35:18 zeus postfix/smtpd[9209]: warning: Illegal address syntax from unknown[127.0.0.1] in MAIL command: <([EMAIL PROTECTED]) [EMAIL PROTECTED]> Jan 27 15:35:18 zeus postfix/smtpd[9209]: lost connection after MAIL from unknown[127.0.0.1] Jan 27 15:35:18 zeus postfix/smtpd[9209]: disconnect from unknown[127.0.0.1]

----- Original Message ----- From: "Steve Loughran" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 27, 2006 7:00 PM
Subject: Re: [Bacula-users] error with email setup


what does the postfix log look like for this entry?

Just checking my config, and I only have:

"(Bacula)"

in my email setup, not

"([EMAIL PROTECTED])"

Steve

Dave wrote:
Hello,
I've got a bacula backup server running on freebsd6 with postfix as an mta also on the same box. When my backups complete i'm getting an error from message.c that i've got a bad address or syntax and i'm not sure whether the problem lies with bacula or a postfix restriction, everything else is working fine for both programs. Here's my error message and the appropriate part of my bacula-dir.conf file:

27-Jan 17:26 zeus-dir: message.c:454 Mail prog: bsmtp: bsmtp.c:85 Fatal malformed reply from localhost: 501 Bad address syntax 27-Jan 17:26 machinename-dir: backup_machinename.2006-01-27_15.37.18 Error: message.c:465 Mail program terminated in error. CMD=/usr/local/sbin/bsmtp -h localhost -f "([EMAIL PROTECTED]) [EMAIL PROTECTED]" -s "Bacula: Backup OK of machinename-fd Full" [EMAIL PROTECTED]
ERR=Child exited with code 1

# messages #############################################################
# Reasonable message delivery -- send most everything to email address
#  and to the console
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.
#
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula: %t %e of %c %l\" %r" operatorcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %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 = "/var/db/bacula/log" = all, !skipped
}

#
# Message delivery for daemon messages (no job).
Messages {
 Name = Daemon
mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\([EMAIL PROTECTED]) %r\" -s \"Bacula daemon message\" %r"
 mail = [EMAIL PROTECTED] = all, !skipped
 console = all, !skipped, !saved
 append = "/var/db/bacula/log" = all, !skipped
}

Any help appreciated.
Thanks.
Dave.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to