caff doesn't send emails via SMTP with my From address

Bug #317563 reported by Muelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
signing-party (Debian)
Fix Released
Unknown
signing-party (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: signing-party

I configured caff with
$CONFIG{'email'} = 'my@address';

and I'm trying to send the signed mails.

Caff does, however, use "user@hostname" as the FROM address in the SMTP dialog, which makes it impossible for me to send the signed-keys.

I expected it to use the $CONFIG{'email'} as FROM address and not my user@hostname.
Also there is no way to configure that.

A workaround is to either use ssmtp or configure the smtpd that it doesn't barf on a malformed FROM address. Both are a hassle to setup and to maintain. I'd love to have a simple CAFF option for that.

Revision history for this message
Thijs Kinkhorst (kink) wrote :

It uses the specified email and owner variables for the From: header. However, the Envelope FROM in the SMTP session is decided by the Mail::Internet perl module that caff uses.

I think it should be possible to use the MailFrom option from this perl module to specify the envelope from.

It's a design decision from caff to make it agnostic of which email transport you use. Otherwise we would have to reimplement SMTP and sendmail and ... functionality in this script, and in the next script, etc. Adding such an option to caff is hence not 'simple' as it complicates the codebase, rather than abstracting the sending away to the tools that are good at sending email.

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote : Re: [Bug 317563] Re: caff doesn't send emails via SMTP with my From address

Hi :)

Thijs Kinkhorst wrote:
> It uses the specified email and owner variables for the From: header.
> However, the Envelope FROM in the SMTP session is decided by the
> Mail::Internet perl module that caff uses.
>
> I think it should be possible to use the MailFrom option from this perl
> module to specify the envelope from.
>
I'm happy to try your suggestion, if you provide one :)

Daniel Hahler (blueyed)
Changed in signing-party (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Daniel Hahler (blueyed) wrote :

It appears to use $USER@$(cat /etc/mailname) in the end, so you might fix it by using your mail hosts' name in /etc/mailname.

Basically, you want to pass the "-f" option to sendmail, so the following might work:
    $CONFIG{'mailer-send'} = [ 'sendmail', '-<email address hidden>' ];

It says however:
    Setting this option is strongly discouraged. Fix your local MTA
      instead.

If I remember correctly, it's easy with e.g. "nullmailer", but does not work as easy with dma (which is the current default MTA in Ubuntu).

Changed in signing-party (Debian):
status: Unknown → New
Revision history for this message
Daniel Hahler (blueyed) wrote :

For what it's worth, I am back to just using nullmailer, which relays to my own "real" MTA.

Revision history for this message
Carsten Agger (agger) wrote :

Caff does not send mails out of the box. I'm using postfix as my MTA. Works with mutt.

Changed in signing-party (Debian):
status: New → Won't Fix
Changed in signing-party (Debian):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.