On 03/15/2014 12:40 PM, Neil Rickert wrote:
On Fri, 14 Mar 2014 18:03:22 -0500 Moby <moby@mobsternet.com> wrote:
However, now I have a need to allow only certain users, and not all authenticated users, to be able to send outgoing mail through sendmail. Does anyone know how one can specify a list of users that sendmail would accept while rejecting all others, even ones who have authenticated fine? I have not done exactly that. I have only checked on whether authenticated at all.
You can access $&{auth_authen} to find the authentication information, then perhaps check that in a database lookup to see if approved.
If you put the check in a "Local_check_rcpt" ruleset, you could check it the recipient is local, but deny for a non-local recipient unless from an authenticated user in your allowed list.
You will probably need to reference the sendmail operations manual, in "/usr/share/doc/packages/sendmail" for details. Thanks Neil, I will investigate down that path. I was sure this would have been a common enough thing but I guess not - even copious amounts of googling do not turn up any clear-cut solutions.
-- --Moby -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org