Hello,
    Thanks for your reply. I added a \< and \> to the bsmtp line and that 
didn't do it. If you've got this going could i see your bsmtp line for 
comparison?
Thanks.
Dave.

----- Original Message ----- 
From: "Arno Lehmann" <[EMAIL PROTECTED]>
To: <bacula-users@lists.sourceforge.net>
Sent: Friday, May 25, 2007 5:27 PM
Subject: Re: [Bacula-users] postfix and bacula bsmtp mail option


> Hi,
>
> On 5/25/2007 10:50 PM, Dave wrote:
>> 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 obvious solution would be to use strictly RFC compliant mail
> addresses for the sender :-)
>
> Let's see...
>
> postconf tells me
>> strict_rfc821_envelopes (default: no)
>>        Require  that  addresses  received  in  SMTP  MAIL  FROM  and RCPT 
>> TO commands are
>>        enclosed with <>, and that those addresses do not contain RFC 822 
>> style  comments
>>        or phrases.  This stops mail from poorly written software.
>>
>>        By  default,  the Postfix SMTP server accepts RFC 822 syntax in 
>> MAIL FROM and RCPT
>>        TO addresses.
>
> So, a mail sender address like '<[EMAIL PROTECTED]>' should
> work better. Actually, assuming your  system is set up accordingly, I
> wold even prefer '<[EMAIL PROTECTED]>', but that's a matter of taste
> as probably noone ever will have reason to reply to that address...
>
> Unfortunately, I did not reread the relevant RFCs recently ;-) but I
> suppose an address like '"Bacula system" <[EMAIL PROTECTED]>' should
> also work and give you a reasonable sender name in your mail client.
>
>> 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"
>
> Note that we're talking about the sender address, given after -f, here...
>
> Arno
>
>>   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
>
> -- 
> IT-Service Lehmann                    [EMAIL PROTECTED]
> Arno Lehmann                  http://www.its-lehmann.de
>
> -------------------------------------------------------------------------
> 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 


-------------------------------------------------------------------------
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