I am having similar problems, and found out by stracing the timsieved that the sieveshell connects to, that sieveshell doesn't respect ( at least in my case) what I pass as -a. If I run as root, it will try to authenticate as root, if I run as user, then it works fine. -a apparently has no effect.

On a side note, if sieveshell is saying it can't connect to server, then you might want to check your settings in cyrus.conf to make sure that a) sieve is in there, and that b) it's running on port 2000.

HTH,
B

Craig White wrote:
On Tue, 2005-03-15 at 19:41 -0600, Dave McCracken wrote:

--On Tuesday, March 15, 2005 17:48:32 -0700 Craig White <[EMAIL PROTECTED]> wrote:


I want to insert sieve scripts for users via sieveshell but I can't seem
to get that done...

sieveshell -u Alec localhost

will try to authenticate as root, not as Alec and I can't su to Alec
since he doesn't have a usable shell. Is there any other way?

Use -a unstead of -u. The correct syntax would be:

sieveshell -a Alex localhost


---- still struggling here...

starting saslauthd with 'saslauthd -a pam -d'

shows that

sieveshell -a alec localhost

does indeed authenticate but sieveshell still reports failure...

unable to connect to server at /usr/bin/sieveshell line 169, <STDIN>
line 1.

an strace of this sieveshell attempt ends with...

send(5, "<37>Mar 16 06:37:27 perl: No wor"..., 47, 0) = 47
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
getpeername(4, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(4, {sa_family=AF_INET, sin_port=htons(47252),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
uname({sys="Linux", node="MY_FQDN_REMOVED", ...}) = 0
write(2, "unable to connect to server at /"..., 77unable to connect to
server at /usr/bin/sieveshell line 169, <STDIN> line 1.

how can I fix this?

Craig

---
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


--
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912  5FCC 92D8 1EA1 BAF7 0959
---
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

Reply via email to