Re: [sa-list] Re: Way to skip scanning per-user?
by John D. Hardin other posts by this author
Dec 14 2006 9:57AM messages near this date
Re: [sa-list] Re: Way to skip scanning per-user?
|
Re: Way to skip scanning per-user?
On Thu, 14 Dec 2006, Theo Van Dinter wrote:
> On Thu, Dec 14, 2006 at 12:11:11PM -0500, Dan Mahoney, System Admin wrote:
> > At the moment, that's a hack in the system-wide procmailrc that I don't
> > know how to do, since the only thing procmail knows about userspace is
> > "dropprivs="yes"", and there's no translation for an easy way to equate
> > that to email address (i.e. it allows me to do it per *domain* not per
> > user, i.e. *@mydomain.com, but if a user has two domains, then I'd have to
> > do them each separately).
>
> If you're using procmail, you could look at the X-Original-To (or
> similar) header to figure out who the mail is going to.
> Otherwise, you could modify your setup to pass information in to
> procmail from the MTA.
Try looking at $LOGNAME. Procmail knows who it's delivering the
message to - it's a *delivery agent* after all.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@[...].org FALaholic #11174 pgpk -a jhardin@[...].org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
It is not the business of government to make men virtuous or
religious, or to preserve the fool from the consequences of his own
folly. -- Henry George
-----------------------------------------------------------------------
Tomorrow: Bill of Rights day
Thread:
Dan Mahoney
Neal Coffey
Dan Mahoney
John D. Hardin
Theo Van Dinter
Dan Mahoney
Theo Van Dinter
John D. Hardin
Dan Mahoney
Dan Mahoney
Theo Van Dinter
|