Bacula-users

Re: [Bacula-users] Bacula invalid sender

2008-10-16 14:46:12
Subject: Re: [Bacula-users] Bacula invalid sender
From: Bruno Friedmann <bruno AT ioda-net DOT ch>
To: Peter Herrington <bacula.list.xsel AT recursor DOT net>
Date: Thu, 16 Oct 2008 20:41:05 +0200
The big trouble you can have is smtp relay and auth to trust and accept valid 
email.

In one customer site I've setup postfix localhost to transfert any email to a 
alias (which contain all final dest).
The localhost authenticate with a valid smtp-auth user on the sender server.

Config is

  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) <srvbackup AT 
somedomain DOT net>\" -s \"[Ultimate-Bacula]: %t %e of %c
%l\" <ultimate.srvbackup AT somedomain DOT net>"

Hope this help you a bit.


Peter Herrington wrote:
>  
> Hello
> 
> Earlier I was shown a sample for the -f option which I tried, but it was
> unsuccessful.
> 
> I deleted all conf files and reinstalled bacula with default settings And I
> found that the default recipient was now root@localhost.
> 
> Emailing resulted in invalid recipient
> 
> Changing to my isp email address as recipient, the error then Changes to
> invalid sender,and I cant move from here.
> 
> Below please find part of my server-dir.conf
> 
> Any help you can provide will be great.
> 
> Thanx/peter
> 
>  Messages {
> #
> # 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.
> #
> #
> # 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.
> #
>   Name = Standard
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f bacula AT somename.dyndns 
> DOT org
> -s \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/sbin/bsmtp -h localhost -f
> bacula AT somename.dyndns DOT org -s \"Bacula: Intervention needed for %j\" 
> %r"
>   mail = "admin AT somename.dyndns DOT org" = all, !skipped
>   operator = "admin AT somename.dyndns DOT org" = mount
>   console = all, !skipped, !saved
>   append = "/var/log/bacula" = all, !skipped }
> 
> #
> # Message delivery for daemon messages (no job).
> Messages {
>   Name = Daemon
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
> \"Bacula daemon message\" %r"
>   mail = "root@localhost" = all, !skipped
>   console = all, !skipped, !saved
>   append = "/var/log/bacula" = all, !skipped }
> 
> -----Original Message-----
> From: Silver Salonen - silver AT ultrasoft DOT ee
> [mailto:+bacula+xsel+8c11e7c531.silver#ultrasoft.ee AT spamgourmet DOT com]
> Sent: 16 October 2008 08:24 AM
> To: bacula-users AT lists.sourceforge DOT net
> Cc: Peter Herrington
> Subject: Re: [Bacula-users] Fully qualified from field bsmtp -f option
> (bacula: message 3 of 20)
> 
> On Thursday 16 October 2008 07:58:08 Peter Herrington wrote:
>> Hello good people
>>
>> I am having an invalid sender with bacula emailing configuration files.
>>
>> Reading various resources I find that I need to put a fully qualified 
>> email address at the -f option on the mail command line, but I need an 
>> example, because currently I see gibberish, as after -f it shows
>> \"\(Bacula\) %r\" and then the -s option.
>>
>> Please give an example of what part of \"\(Bacula\) %r\" must be 
>> replaced with a valid Email address.
>>
>> Thanx a ton
>>
>> Peter
> 
> Hello.
> 
> In my case it's:
> mailcommand = "/usr/local/sbin/bsmtp -h localhost -f \"\(Bacula\)
> bacula AT ultrasoft DOT ee\" -s \"Bacula: %t %e of %c %n %l\" %r"
> 
> --
> Silver
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


-- 

     Bruno Friedmann

Ioda-Net Sàrl
  2830 Vellerat - Switzerland

  Tél : ++41 32 435 7171
  Fax : ++41 32 435 7172
  gsm : ++41 78 802 6760
  www.ioda-net.ch

 Centre de Formation et de Coaching En Ligne
 www.cfcel.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>