Darren Nickerson schrieb:
>
> >>>>> On Tue, 11 Jun 2002,"Simon" == Simon Matter wrote:
>
> Simon> Hi,
> Simon> I think it's the problem with sieveshell. I had to put this in my
> Simon> imapd.conf when authenticating the way you're doing it because you can
> Simon> not pass --auth like with cyradm:
>
> Simon> sasl_pwcheck_method: saslauthd
> Simon> sasl_mech_list: PLAIN
>
> Thanks, your suggestion above and the pam facility config file are often the
> answer to the problem, but that does not seem to help me.
>
> Here's my imapd.conf:
>
> [root@polaris SASL]# egrep "^\w" /etc/imapd.conf
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> admins: cyrus root test darren
> allowanonymouslogin: no
> hashimapspool: yes
> tls_cert_file: /var/imap/server.pem
> tls_key_file: /var/imap/server.pem
> sasl_auto_transition: yes
> loginrealms: dazza.org polaris.dazza.org
> sasl_mech_list: PLAIN
> sasl_pwcheck_method: saslauthd
>
> I've stopped & restarted cyrus since changing it to look like that (I used to
> have PLAIN and LOGIN in the mechs) and now I still see:
>
> [root@polaris SASL]# sieveshell --user=darrenhyla --authname=darrenhyla
> --realm=dazza.org localhost
Do you really need --realm? I do
sieveshell --user=simix --authname=simix localhost
and it works.
I have
[root@xxl root]# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
sieveuserhomedir: no
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
[root@xxl root]# cat /etc/pam.d/sieve
#%PAM-1.0
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
saslauthd runs with -a pam.
Don't know what's wrong.
Simon
> connecting to localhost
> Please enter your password:
> unable to connect to server: Authentication Error at /usr/bin/sieveshell line
> 172, <STDIN> line 1.
> [root@polaris SASL]#
>
> Jun 11 10:07:41 polaris master[19663]: about to exec /usr/cyrus/bin/timsieved
> Jun 11 10:07:41 polaris sieve[19663]: executed
> Jun 11 10:07:41 polaris sieve[19663]: accepted connection
> Jun 11 10:07:44 polaris timsieved[19663]: badlogin: localhost[127.0.0.1] PLAIN
> invalid parameter supplied
> Jun 11 10:07:44 polaris master[18358]: process 19663 exited, status 75
> Jun 11 10:07:44 polaris timsieved[19663]: Password verification failed
> Jun 11 10:07:44 polaris timsieved[19663]: badlogin: localhost[127.0.0.1] PLAIN
> invalid parameter supplied
>
> Any other ideas?
>
> Thanks!
>
> -Darren
| |