The mailcommand is set to:
 mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula: %t %e of %c %l\" %r"
and has never been changed.


The exact error, or rather the error message sent back is:
<snip>
This is the Postfix program at host gateway.mydomain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                        The Postfix program

<[EMAIL PROTECTED]>: host obmr.btconnect.com[213.123.20.93] said: 550
    <[EMAIL PROTECTED]>... Not permitted (in reply to MAIL FROM
    command)

</snip>

And the corresponding message in /var/log/maillog is:

<snip>
Oct  8 01:47:58 gateway postfix/smtp[3787]: CAB1E5217E:
to=<[EMAIL PROTECTED]>, relay=obmr.btconnect.com[213.123
.20.93], delay=4, status=bounced (host obmr.btconnect.com[213.123.20.93]
said: 550 <[EMAIL PROTECTED]>... Not pe
rmitted (in reply to MAIL FROM command))
</snip>

The error message does get through but the original mail does not.  

Any ideas?

Thanks for your time,
AC

> 
> Hi all,
>  
> When a job finishes, bacula sends an email from (e.g.) [EMAIL PROTECTED],
> but the server is actually on (e.g.) myother.domain.co.uk and the smtp
relay
> at myother.domain.co.uk rejects the FROM domain and the email is returned
to
> [EMAIL PROTECTED]  Where is the setting for who bacula is sending the
> email FROM (not the bsmtp -f field)???  Normal sending (e.g. echo "Test
> timed `date`" | mail -s test [EMAIL PROTECTED]) works fine.
>  
> Bacula 2.0.2 on CentOS4.  I've checked manuals, tips and google to no
avail.
> I'm sure it's simple (it was set up, after all!)  Help!!
 
The -f option should set the from fields in both the envelope and the
message.
What are you passing for the -f option and what is the exact error from the
mail server?
 
__Martin
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 
-------------------------------------------------------------
 
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity to whom they are
addressed.
 
If you are not the intended recipient you must not read, use or disseminate
the information contained in the email and its attachments.
 
Any views expressed in the email or its attachments are those of the author
and may not necessarily constitute or imply its endorsement by Bow Software
Ltd.
 
-------------------------------------------------------------
 
Bow Software Ltd
The Old Malt House
Bow
Crediton
Devon  EX17 6HB
http://www.bowsoftware.co.uk
 
Registered in England No. 5934136
 
-------------------------------------------------------------
 
PLEASE CONSIDER THE ENVIRONMENT before printing this message.
 
-------------------------------------------------------------

 


________________________________

        From: Andy Collyer [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, October 04, 2007 11:00 AM
        To: 'bacula-users@lists.sourceforge.net'
        Subject: Mail problem
        
        
        Hi all,
         
        When a job finishes, bacula sends an email from (e.g.)
[EMAIL PROTECTED], but the server is actually on (e.g.)
myother.domain.co.uk and the smtp relay at myother.domain.co.uk rejects the
FROM domain and the email is returned to [EMAIL PROTECTED]  Where is the
setting for who bacula is sending the email FROM (not the bsmtp -f field)???
Normal sending (e.g. echo "Test timed `date`" | mail -s test
[EMAIL PROTECTED]) works fine.
         
        Bacula 2.0.2 on CentOS4.  I've checked manuals, tips and google to
no avail.  I'm sure it's simple (it was set up, after all!)  Help!!
         
        Thanks for your time!
        AC
         





-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to