Bug#620825: bacula-director-common: wrong email From address

2013-01-28 Thread Teodor MICU
Hi,

I'm using this configuration in Messages:

  mailcommand = "/usr/sbin/bsmtp -h SMTPHOST -f \"Bacula
\\" -s "[..]"

The main reason is to have the real address instead of the fake <%r>
which could be rejected at the destination. This same address is added
automatically by 'bsmtp' on Sender: header.

What I would like is to have a parameter (like %r) for the local host
name that I could use instead of specifying the FQDN.

Regarding <> this is mandated by strict RFC email rules. It's probably
common to activate 'strict_rfc821_envelopes = yes' in Postfix to block
unsolicited messages.

Cheers


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#620825: bacula-director-common: wrong email From address

2012-06-02 Thread Luca Capello
forwarded 620825 http://bugs.bacula.org/view.php?id=1376
usertags 620825 + pca.it-backup
thanks

Hi there!

On Mon, 04 Apr 2011 15:26:55 +0200, Luca Capello wrote:
> By default, Bacula sends email with the following originator address
> 'From: (Bacula) ' (for the domain part see #519567).
> AFAIK this is wrong, but i could not find any RFC dictating it.
> Nevertheless, this causes Gnus/Emacs, Icedove/Thunberbird and RoundCube
> to show it as "From: (Bacula)".  FYI, Evolution shows it as "From:
> " and Mutt simply as "From: Bacula".
>
> I guess you would like to have it showed as "From: Bacula", for which
> you need to correct it to 'From:  (Bacula)' (like other
> system-wide services do, e.g. cron or debbugs).
[...]
> Simply removing the less-than and greater-than signs does the trick.

After further investigation, I found two upstream bugs:

  
  

The second one contains the reason for the less-than and greater-than
signs, i.e. without them Exchange complains.

If I read RFC5322 correctly, Exchange is at fault here, since everything
in unquoted () should be considered as a comment:

  

While mail/mailutils_2.2+dfsg1-6 has the following behavior:
=
$ mail -a "From: luca" -s "luca" l...@pca.it
[email sent]

$ mail -a "From: " -s "" l...@pca.it
[email not sent, missing domain]

$ mail -a "From: (Bacula) luca" -s "(Bacula) luca" l...@pca.it
[email sent]

$ mail -a "From: (Bacula) " -s "(Bacula) " l...@pca.it
[email not sent, missing domain]

$ mail -a "From: luca (Bacula)" -s "luca (Bacula)" l...@pca.it
[email not sent]

$ mail -a "From:  (Bacula)" -s " (Bacula)" l...@pca.it
[email not sent, wrong From address]
=

...bsmtp seems to always send emails, no matter if the -f/From address
is wrong, also considering the fix for #519567:
=
# echo test | /usr/lib/bacula/bsmtp -h localhost -f "(Bacula) " -s 
"(Bacula) " l...@pca.it
[mail sent]
=

Is there something I have missed?

Thx, bye,
Gismo / Luca


pgpB8bcBF5GDY.pgp
Description: PGP signature