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
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.
Created attachment 160449 [details, diff] patch to ssmtp.c (2.61) to enable loading and use of MinUserId option
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.
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.
Thanks for your patch Trevor! I bumped ssmtp to 2.62-r2 to include the patches using a +maxsysuid use-flag.