First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 231866
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Trevor Bowen <m27315@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ssmtp-2.61-r273.ebuild modified ssmtp-2.61-r2 ebuild to include new patches text/plain Trevor Bowen 2008-07-15 14:53 0000 3.45 KB Details
ssmtp-2.61-maxsysuid.patch patch to ssmtp.c (2.61) to enable loading and use of MinUserId option patch Trevor Bowen 2008-07-15 14:55 0000 1.16 KB Details | Diff
ssmtp-2.61-maxsysuid-conf.patch patch to ssmtp.conf to include default MinUserId option with comment patch Trevor Bowen 2008-07-15 14:56 0000 669 bytes Details | Diff
ssmtp-2.61-maxsysuid-conf.patch patch to ssmtp.conf to include default MinUserId option with comment patch Trevor Bowen 2008-07-15 15:00 0000 667 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 231866 depends on: Show dependency tree
Bug 231866 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


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.

First Last Prev Next    No search results available      Search page      Enter new bug