[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SPAM Block w/o QMAILQUEUE or qmail-scanner



On Fri, 30 Jan 2004, Manvendra Bhangui wrote:

> Date: Fri, 30 Jan 2004 13:10:58 +0530
> From: Manvendra Bhangui <mbhangui@xxxxxxxxx>
> To: Asif Iqbal <iqbala@xxxxxxxxxxx>
> Cc: qmail@xxxxxxxxxxxxx
> Subject: Re: SPAM Block w/o QMAILQUEUE or qmail-scanner
>
>
> Why do you want to run spamc as user alias? What problem are
> you trying to solve?

I want just alias to learn spam

>
>
> You can make any ELF executable to run with any user
> i.e.
> chown alias path_of_your_executable
> chmod u+s  path_of_your_executable
>
> Regards Manvendra
> On Fri, 2004-01-30 at 12:31, Asif Iqbal wrote:
> > Hi Manvendra
> >
> > Please let me know if you have the answer. I am resending it in case you missed
> > it first time
> >
> > Thanks
> >
> > On Mon, 26 Jan 2004, Asif Iqbal wrote:
> >
> > > Date: Mon, 26 Jan 2004 11:38:59 -0500 (EST)
> > > From: Asif Iqbal <iqbala@xxxxxxxxxxx>
> > > To: mbhangui@xxxxxxxxx
> > > Cc: qmail@xxxxxxxxxxxxx
> > > Subject: Re: SPAM Block w/o QMAILQUEUE or qmail-scanner
> > >
> > > -----pgpenvelope processed message
> > >
> > >
> > > On Fri, 12 Dec 2003, Manvendra Bhangui wrote:
> > >
> > > > Date: Fri, 12 Dec 2003 14:41:32 +0530
> > > > From: Manvendra Bhangui <mbhangui@xxxxxxxxx>
> > > > To: Asif Iqbal <iqbala@xxxxxxxxxxx>
> > > > Cc: qmail@xxxxxxxxxxxxx
> > > > Subject: Re: SPAM Block w/o QMAILQUEUE or qmail-scanner
> > > >
> > > > simple.
> > > >
> > > > lets say your wrapper which you wanted to have it in the QMAILQUEUE
> > > > environment variable is named qmail-spamassasin. You can do the
> > > > following steps (which will not require QMAILQUEUE env variable)
> > > >
> > > > 1. stop qmail
> > > > 2. mv /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.org
> > > >     (ensure that you do not loose the setuid bit and permission
> > > >    of the qmail-queue executable.
> > > > 3. modify your wrapper to call qmail-queue.org (right now it
> > > >    will be calling qmail-queue).
> > > > 4. copy your wrapper to /var/qmail/bin as qmail-queue
> > >
> > > On the qmail-spamc.c I noticed a line
> > >
> > > execlp("spamc", "spamc", NULL);
> > >
> > > Is there anyway I an modify it to run spamc as the user alias. That way only
> > > alias has to run the spams. Easier to manage I guess.
> > >
> > > I basically want to make sure that alias is the only user who needs to
> > > learn spam.
> > >
> > >
> > > Thanks
> > >
> > > Asif Iqbal
> > >
> > > -----pgpenvelope information
> > > Hash: SHA1
> > > Version: GnuPG v1.2.1 (SunOS)
> > > Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
> > >
> > > gpg: Signature made Mon Jan 26 11:39:01 2004 EST using DSA key ID E62693C5
> > > gpg: Good signature from "Asif Iqbal (Engineering) <iqbala@xxxxxxxxxxx>"
> > >
> > > pgpenvelope_decrypt: message processed at Fri Jan 30 01:59:30 2004
> > >
> > > -----end pgpenvelope information
> > >
>

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
There's no place like 127.0.0.1