Allow forwarding to multiple "root" recipients

Bug #297929 reported by Daniel Richard G.
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ssmtp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ssmtp

I use sSMTP in a corporate environment, thanks to the feature of rewriting/forwarding mail that would go to system users to an external address instead. This is much simpler than configuring all the various daemons, etc. with the appropriate mail address.

Recently, I've wanted the ability to say e.g.

 <email address hidden>,<email address hidden>

That is, to have system mail be forwarded to more than one external address. My use case is, for systems (usually desktops) that are administered by their users, I want system messages to go to them, but I also want those messages to go to a central mailbox where they can be monitored. For example, if a user leaves the company, this will ensure that system messages don't just vanish into a defunct inbox.

I've put together a patch against ssmtp 2.62. It's very simple, basically doing an extra round of strtok() after the rcpt_remap() calls in ssmtp(). For good measure, I also fixed a couple of uninitialized-variable warnings. The patch is attached below.

The ssmtp.conf(5) man page description for the "Root" keyword might have the following two sentences tacked on:

 Multiple users may be specifed, separated by commas. (White space is not allowed following a comma, nor anywhere else in the argument.)

Revision history for this message
Daniel Richard G. (skunk) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ssmtp (Ubuntu):
status: New → Confirmed
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.