>From: "Steve Thomas" <[EMAIL PROTECTED]>
>To: "Don Lindbergh" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
>Sent: Tuesday, October 01, 2002 4:06 PM
>Subject: RE: [SAtalk] Whitelisting with an alias
>
> The file you're looking for is either /etc/aliases or /etc/mail/aliases.
> It's a file that's associated with sendmail. Once you modify it, you need
to
> run the command 'newaliases' as the root user. That rebuilds the actual
> aliases.db file which is what sendmail actually uses. You do not need to
> restart sendmail.
>
> You should be able to run "man aliases" and get a description of how to
> properly set up an alias to shell out to a program. Typically, it'd be
> something like:
>
> somealias:  |"/path/to/some/program -arg1 -arg2"
>
> HTH,
> St-

Thanks,  that definitely cleared up the initial mystery of what to do with
the lines from the spamassassin man page.  Am I correct that as per the
aliases man page that the 'somealias' name must exist as a real user on the
system, so that the 'getpwnam' call will work?  I created a user and I run
'newaliases' as root after making chages to the /etc/aliases file.

Using the syntax as per the spamassassin (v2.31) man page for my entry in my
/etc/asliases file

   somealias: ""|/usr/bin/spamassassin -W""

mail forwarded to this alias at my machine bounces with the message

   550 5.1.1 ""|/usr/bin/spamassassin -W""... User unknown

If I use the sytax you suggest

   somealias:  |"/usr/bin/spamassassin -W"

mail forwarded to this alias at my machine bounces with the message

   smrsh: spamassassin not available for sendmail programs
   554 5.0.0 Service unavailable

I'm guessing that maybe one must run spamd to whitelist with an alias
because spamassassin called via the sendmil aliases mechanism can't run
under the user id in this case?
Would it be possible to create a user on the system for whitelisting and
configure that user's .procmailrc and/or .forward file to update the
auto-whitelist.db for the desired user?

--Don



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to