Hi Kern,
    Thanks, that did it. I replaced that with %r as you indicated and it 
fired right up, sent the email when my catalog job was done, came in as 
[EMAIL PROTECTED], so i then went in and changed the %r again to the 
fully qualified hostname i wanted and it worked. I would probably mention 
this in the manual, it might be useful.
Thanks again to everyone.
Dave.

----- Original Message ----- 
From: "Kern Sibbald" <[EMAIL PROTECTED]>
To: "Dave" <[EMAIL PROTECTED]>
Cc: "bacula-users" <bacula-users@lists.sourceforge.net>
Sent: Sunday, May 27, 2007 7:48 AM
Subject: Re: postfix and bacula bsmtp mail option


> On Sunday 27 May 2007 13:43, Kern Sibbald wrote:
>> Hello,
>>
>> The solution to your problem is *most likely* to put only \"%r\" in the 
>> from
>> field (i.e. after the -f option).
>>
>> The handling of more complex from fields in bsmtp was not really correct 
>> for
>> all SMTP servers (for the reasons you state). However, version 2.1.11 has 
>> a
>> fix for this providing you use the form in the manual and in the default
>> bacula-dir.conf file, which is not what you have in your conf file below.
>> What you have below isn't going work on any SMTP server that I know of.
>
> Correction -- you are using what is shown in the manual.  I guess over the
> years it has changed a bit ...  Oh well.   My basic advice in the first
> paragraph is still correct.
>
>>
>> Regards,
>>
>> Kern
>>
>> > Date: Fri, 25 May 2007 16:50:14 -0400
>> > From: "Dave" <[EMAIL PROTECTED]>
>> > Subject: [Bacula-users] postfix and bacula bsmtp mail option
>> > To: <bacula-users@lists.sourceforge.net>
>> > Message-ID: <[EMAIL PROTECTED]>
>> > Content-Type: text/plain; format=flowed; charset="iso-8859-1";
>> >         reply-type=original
>>
>> > Hello,
>> >  I'm running postfix 2.4.1 on FreeBSD, with the option
>> > strict_rfc821_envelopes set to yes in my main.cf. I set up Bacula on 
>> > this
>> > box as well, v2.03. When i had strict_rfc821_envelopes set to yes I 
>> > kept
>> > getting the error "fatal malformed reply from localhost" and an error 
>> > 501
>> > from postfix in my bacula log. If i change the strict_rfc821_envelopes
>> > option to no it works fine. I'd rather not change this option, does 
>> > anyone
>> > have a workaround? The specific error i'm seeing in the log is:
>>
>> > 25-May 16:26 zeus-dir: message.c:481 Mail prog: bsmtp: bsmtp.c:92 Fatal
>> > malformed reply from localhost: 501 5.1.7 Bad sender address syntax
>>
>> > and the message resource looks like this:
>>
>> > 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
>> > }
>>
>> > 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
>> > }
>>
>> > Thanks.
>> > Dave.
>> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to