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. Could one use a milter (such as mailfromd milter) for this purpose? Maybe have the milter check envfrom's auth_type to see if mail is being relayed for an authenticated user, then lookup the username in some local file?
-- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org