Re: Newbie sieve problem w/sieveshell

2004-08-16 Thread Derrick J Brashear
On Tue, 10 Aug 2004, Rob Tanner wrote:
Unfortunately, it doesn't look like sieveshell does what I was hoping for.
I'm looking for some tool that will allow me, as the administrator, to manage
other users' sieve space (add/modify scripts, etc).  Do you have any
suggestions?
Sadly I don't believe there is one, if what you mean is doing it for all 
users, at once.

But, you can do e.g.
sieveshell --user=someuser --authname=my-admin sieve-server
On a per-user basis to manage sieve state, one user at a time. Is that 
acceptable?

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Kevin Williams


On Tue, 2004-08-10 at 10:41, Rob Tanner wrote:
> --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
> <[EMAIL PROTECTED]> wrote:
> 
> > 
> > What do your logs say when you try it?
> > 
> > --Jo
> 
> Duh!  I didn't even think to check there.  Here are two examples, the
> sieveshell that fails followed by a smartsieve login that worked.  In
> bothe cases I logged in (or tried to login in) as the same user.  The
> one difference I note is that the failed login does not list the user
> name while the successful login does.  Is that significant?

> Aug 10 10:33:11 belgarath sieve[6690]: badlogin:
> belgarath.linfield.edu[10.171.255.14] PLAIN authentication failure
> 

> Aug 10 10:35:14 belgarath sieve[6737]: login:
> socrates.linfield.edu[10.171.255.11] rtanner PLAIN User logged in

Looks to me like your underlying authentication layer is what's
failing.  What are you authenticating against?  Can you provide the log
file for that?
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Rob Tanner
--On Tuesday, August 10, 2004 10:53:18 AM -0700 Rob Tanner
<[EMAIL PROTECTED]> wrote:

> --On Tuesday, August 10, 2004 10:47:53 AM -0700 Joakim Ryden
> <[EMAIL PROTECTED]> wrote:
> 
>> On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote:
>>> --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
>>> 
>>> <[EMAIL PROTECTED]> wrote:
>>> > What do your logs say when you try it?
>>> > 
>>> > --Jo
>>> 
>>> Duh!  I didn't even think to check there.  Here are two examples, the
>>> sieveshell that fails followed by a smartsieve login that worked.  In
>>> bothe cases I logged in (or tried to login in) as the same user.  The
>>> one difference I note is that the failed login does not list the user
>>> name while the successful login does.  Is that significant?
>> [...]
>> 
>> Try this and see if it makes a difference:
>> 
>># sieveshell --authname=rtanner localhost
>> 
>> --Jo
> 
> Yep, that did it.  I got in!
> 
> Unfortunately, it doesn't look like sieveshell does what I was hoping for.
> I'm looking for some tool that will allow me, as the administrator, to
> manage other users' sieve space (add/modify scripts, etc).  Do you have any
> suggestions?
> 
> Thanks,
> Rob
> 

I just figured it out.  That's what the --user parameter is for.

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Rob Tanner
--On Tuesday, August 10, 2004 10:47:53 AM -0700 Joakim Ryden
<[EMAIL PROTECTED]> wrote:

> On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote:
>> --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
>> 
>> <[EMAIL PROTECTED]> wrote:
>> > What do your logs say when you try it?
>> > 
>> > --Jo
>> 
>> Duh!  I didn't even think to check there.  Here are two examples, the
>> sieveshell that fails followed by a smartsieve login that worked.  In
>> bothe cases I logged in (or tried to login in) as the same user.  The
>> one difference I note is that the failed login does not list the user
>> name while the successful login does.  Is that significant?
> [...]
> 
> Try this and see if it makes a difference:
> 
># sieveshell --authname=rtanner localhost
> 
> --Jo

Yep, that did it.  I got in!

Unfortunately, it doesn't look like sieveshell does what I was hoping for.
I'm looking for some tool that will allow me, as the administrator, to manage
other users' sieve space (add/modify scripts, etc).  Do you have any
suggestions?

Thanks,
Rob

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote:
> --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
>
> <[EMAIL PROTECTED]> wrote:
> > What do your logs say when you try it?
> >
> > --Jo
>
> Duh!  I didn't even think to check there.  Here are two examples, the
> sieveshell that fails followed by a smartsieve login that worked.  In
> bothe cases I logged in (or tried to login in) as the same user.  The
> one difference I note is that the failed login does not list the user
> name while the successful login does.  Is that significant?
[...]

Try this and see if it makes a difference:

# sieveshell --authname=rtanner localhost

--Jo
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Rob Tanner
--On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
<[EMAIL PROTECTED]> wrote:

> 
> What do your logs say when you try it?
> 
> --Jo

Duh!  I didn't even think to check there.  Here are two examples, the
sieveshell that fails followed by a smartsieve login that worked.  In
bothe cases I logged in (or tried to login in) as the same user.  The
one difference I note is that the failed login does not list the user
name while the successful login does.  Is that significant?

Aug 10 10:33:07 belgarath sieve[6690]: accepted connection
Aug 10 10:33:07 belgarath master[6909]: about to exec
/usr/local/cyrus/bin/timsieved
Aug 10 10:33:07 belgarath sieve[6909]: executed
Aug 10 10:33:11 belgarath sieve[6690]: badlogin:
belgarath.linfield.edu[10.171.255.14] PLAIN authentication failure

Aug 10 10:35:14 belgarath sieve[6737]: accepted connection
Aug 10 10:35:14 belgarath master[6923]: about to exec
/usr/local/cyrus/bin/timsieved
Aug 10 10:35:14 belgarath sieve[6923]: executed
Aug 10 10:35:14 belgarath sieve[6737]: login:
socrates.linfield.edu[10.171.255.11] rtanner PLAIN User logged in

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 10:16 am, Rob Tanner wrote:
> --On Tuesday, August 10, 2004 10:12:10 AM -0700 Joakim Ryden
>
> <[EMAIL PROTECTED]> wrote:
> > On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote:
> >> Hi,
> >>
> >> I have sieve up and running (cyrus-imap v2.2.3) and a php application to
> >> allow users some limited access for setting up forwarding and vacation
> >> scripts.  I am looking at sieveshell as a possible tool to do
> >> administrative maintenance, but whenever I try to invoke it, it fails.
>
>  [...]
>
> > Do you have an entry for sieve in /etc/services?
> >
> > --Jo
>
> Yes.  Otherwise the php app wouldn't work either.

What do your logs say when you try it?

--Jo
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Rob Tanner
--On Tuesday, August 10, 2004 10:12:10 AM -0700 Joakim Ryden
<[EMAIL PROTECTED]> wrote:

> On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote:
>> Hi,
>> 
>> I have sieve up and running (cyrus-imap v2.2.3) and a php application to
>> allow users some limited access for setting up forwarding and vacation
>> scripts.  I am looking at sieveshell as a possible tool to do
>> administrative maintenance, but whenever I try to invoke it, it fails.
>> 
 [...]

> 
> Do you have an entry for sieve in /etc/services?
> 
> --Jo

Yes.  Otherwise the php app wouldn't work either.

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote:
> Hi,
>
> I have sieve up and running (cyrus-imap v2.2.3) and a php application to
> allow users some limited access for setting up forwarding and vacation
> scripts.  I am looking at sieveshell as a possible tool to do
> administrative maintenance, but whenever I try to invoke it, it fails.
>
> I have tried accessing it both as the administrative user (cyrus) and as
> myself, and I have specified the server both as localhost and with the
> FQDN. Below are two example command lines:
>
> sieveshell --user cyrus localhost
> sieveshell --user cyrus mail.linfield.edu
>
> In every case, it prompts for the password, and then returns the error
> (line broken for readability):
>
> unable to connect to server at \
>/usr/local/cyrus/bin/sieveshell line 169,  line 1.
[...]

Do you have an entry for sieve in /etc/services?

--Jo
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html