Bug 231866 - ebuild for patch to ssmtp to expose MAXSYSUID in ssmtp.conf
Bug#: 231866 Product:  Gentoo Linux Version: 2008.0_beta2 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: net-mail@gentoo.org Reported By: m27315@gmail.com
Component: Ebuilds
URL:  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490873
Summary: ebuild for patch to ssmtp to expose MAXSYSUID in ssmtp.conf
Keywords:  
Status Whiteboard: 
Opened: 2008-07-15 14:50 0000
Description:   Opened: 2008-07-15 14:50 0000
For: mail-mta/ssmtp

The ssmtp program sends all mail to users with id < 1000 to "root".  The
minimum user id cutoff (1000) is hard-coded in ssmtp.h as MAXSYSUID (999).

On some systems, real users exist below this 1000 threshold.  So, this patch
was created to expose the MAXSYSUID threshold as a new "MinUserId" setting,
which defaults to 1000 (MAXSYSUID+1).  If undefined in the ssmtp.conf,
MinUserId defaults to exactly MAXSYSUID+1, as defined by ssmtp.h.

The patch is simple and extends the flexibility of ssmtp with minimal fuss.

I have submitted the patch also to Debian, but since ssmtp has not been updated
for a while, I thought it might be good to submit the patch and ebuild here
too.

Thanks!

Trevor

------- Comment #1 From Trevor Bowen 2008-07-15 14:53:31 0000 -------
Created an attachment (id=160447) [details]
modified ssmtp-2.61-r2 ebuild to include new patches

Used stable ssmtp version (2.61-r2) as basis for ebuild.  Only added 2 new
epatch lines.

------- Comment #2 From Trevor Bowen 2008-07-15 14:55:05 0000 -------
Created an attachment (id=160449) [details]
patch to ssmtp.c (2.61) to enable loading and use of MinUserId option

------- Comment #3 From Trevor Bowen 2008-07-15 14:56:37 0000 -------
Created an attachment (id=160450) [details]
patch to ssmtp.conf to include default MinUserId option with comment

Option is commented out by default, which will force usage of MAXSYSUID header
declaration by default.

------- Comment #4 From Trevor Bowen 2008-07-15 15:00:14 0000 -------
Created an attachment (id=160454) [details]
patch to ssmtp.conf to include default MinUserId option with comment

Option is commented out by default, which will force definition from MAXSYSUID
header declaration.

------- Comment #5 From Tobias Scherbaum 2008-09-05 20:30:03 0000 -------
Thanks for your patch Trevor! I bumped ssmtp to 2.62-r2 to include the patches
using a +maxsysuid use-flag.