Support setting the email sender
commitf6abd09ae547a7ab8009b1b0668bb12c70c04256
authorKyle J. McKay <mackyle@gmail.com>
Sun, 26 Jan 2014 20:38:19 +0000 (26 12:38 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 26 Jan 2014 20:38:19 +0000 (26 12:38 -0800)
tree9fe9756e2b46150e18598af1c963ea1f7555532c
parentbb7ea7bf006807a98235dda0302bcfa6da4345be
Support setting the email sender

Bounce emails are sent to the Return-Path: address.  The Return-Path:
address can be set by specifying the SMTP 'MAIL FROM:' address.  The
SMTP 'MAIL FROM:' address can be set by passing the -f option to
sendmail.

Add a new $Girocco::Config::sender setting to allow the value passed
to $Girocco::Config::sendmail_bin via the -f option to be specified
and by default set it to the value of $Girocco::Config:admin, but
allow it to be unset to suppress passing the -f option at all.

The mail.sh script will now ignore any hooks.envelopesender setting
in favor of the new $Girocco::Config::sender setting.
Girocco/Config.pm
Girocco/Util.pm
shlib.sh
taskd/mail.sh