Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231866 - ebuild for patch to ssmtp to expose MAXSYSUID in ssmtp.conf
Summary: ebuild for patch to ssmtp to expose MAXSYSUID in ssmtp.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 14:50 UTC by Trevor Bowen
Modified: 2008-09-05 20:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ssmtp-2.61-r2 ebuild to include new patches (ssmtp-2.61-r273.ebuild,3.45 KB, text/plain)
2008-07-15 14:53 UTC, Trevor Bowen
Details
patch to ssmtp.c (2.61) to enable loading and use of MinUserId option (ssmtp-2.61-maxsysuid.patch,1.16 KB, patch)
2008-07-15 14:55 UTC, Trevor Bowen
Details | Diff
patch to ssmtp.conf to include default MinUserId option with comment (ssmtp-2.61-maxsysuid-conf.patch,669 bytes, patch)
2008-07-15 14:56 UTC, Trevor Bowen
Details | Diff
patch to ssmtp.conf to include default MinUserId option with comment (ssmtp-2.61-maxsysuid-conf.patch,667 bytes, patch)
2008-07-15 15:00 UTC, Trevor Bowen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Bowen 2008-07-15 14:50:50 UTC
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 Trevor Bowen 2008-07-15 14:53:31 UTC
Created attachment 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 Trevor Bowen 2008-07-15 14:55:05 UTC
Created attachment 160449 [details, diff]
patch to ssmtp.c (2.61) to enable loading and use of MinUserId option
Comment 3 Trevor Bowen 2008-07-15 14:56:37 UTC
Created attachment 160450 [details, diff]
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 Trevor Bowen 2008-07-15 15:00:14 UTC
Created attachment 160454 [details, diff]
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 Tobias Scherbaum (RETIRED) gentoo-dev 2008-09-05 20:30:03 UTC
Thanks for your patch Trevor! I bumped ssmtp to 2.62-r2 to include the patches using a +maxsysuid use-flag.