[Comm] cyrus-imap sieveshell

Nick S. Grechukh =?iso-8859-1?q?ngrechukh_=CE=C1_ua=2Efm?=
Вс Янв 16 21:07:49 MSK 2005


не получается войти в sieveshell. imtest аутентифицируется, а sieveshell 
вылетает.
----------- следующая часть -----------
# standard standalone server implementation

START {
  # do not delete this entry!
  recover	cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
#  idled		cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
  # add or remove based on preferences
  imap		cmd="imapd" listen="imap" prefork=5
#  imaps		cmd="imapd -s" listen="imaps" prefork=1
#  pop3		cmd="pop3d" listen="pop3" prefork=3
#  pop3s		cmd="pop3d -s" listen="pop3s" prefork=1
  sieve		cmd="timsieved" listen="sieve" prefork=0
#  smmapd		cmd="smmapd" listen="/var/lib/imap/socket/smmapd" prefork=1

  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp		cmd="nntpd" listen="nntp" prefork=3
#  nntps		cmd="nntpd -s" listen="nntps" prefork=1

  # at least one LMTP is required for delivery
#  lmtp		cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix	cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

  # this is only necessary if using notifications
#  notify	cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpoint	cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune	cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune	cmd="tls_prune" at=0400
}
----------- следующая часть -----------
# In more detail to look in man 5 imapd.conf

#@include: <none>

admins: cyrus

#afspts_localrealms: <none>
#afspts_mycell: <none>

#allowallsubscribe: 0
allowanonymouslogin: 1
allowapop: 1
#allownewnews: 0
#allowplaintext: 1
#allowusermoves: 0
#altnamespace: 0

annotation_db: skiplist

#autocreatequota: 0
#createonpost: 0
#autocreateinboxfolders: <none>
#autosubscribeinboxfolders: <none>
#autosubscribesharedfolders: <none>

#berkeley_cachesize: 512
#berkeley_locks_max: 50000
#berkeley_txns_max: 100


configdirectory: /var/lib/imap
#debug_command: <none>
#defaultacl: anyone lrs

defaultdomain: home.gns.tdo.ua
#defaultpartition: default
#deleteright: c

duplicate_db: berkeley-nosync
duplicatesuppression: 0

#foolstupidclients: 0
#force_sasl_client_mech: plain
#fulldirhash: 0

hashimapspool: 1
#hostname_mechs: <none>
#hostname_password: <none>

idlesocket: /var/lib/imap/socket/idle
#ignorereference: 0
#imapidlepoll: 60
imapidresponse: 0
#imapmagicplus: 0
#implicit_owner_rights: lca

lmtp_downcase_rcpt: 1
#lmtp_over_quota_perm_failure: 0
#lmtpsocket: {configdirectory}/socket/lmtp

#loginrealms: <empty string>
#loginuseacl: 0
#logtimestamps: 0

#mailnotifier: <none>
#maxmessagesize: 0

mboxlist_db: skiplist

#mupdate_connections_max: 128
#mupdate_authname: <none>
#mupdate_password: <none>
#mupdate_port: 3905
#mupdate_realm: <none>
#mupdate_retry_delay: 20
#mupdate_server: <none>
#mupdate_workers_start: 5
#mupdate_workers_minspare: 2
#mupdate_workers_maxspare: 10
#mupdate_workers_max: 50
#mupdate_username: <empty string>

#netscapeurl: http://asg.web.cmu.edu/cyrus/imapd/netscape-admin.html

#newsmaster: news
#newspeer: <none>
#newspostuser: <none>
#newsprefix: <none>
#notifysocket: {configdirectory}/socket/notify

partition-default: /var/spool/imap
#partition-name: <none>
plaintextloginpause: 1

#popexpiretime: -1
#popminpoll: 0
poptimeout: 5
#postmaster: postmaster
#postuser: <empty string>
#proxy_authname: proxy
#proxy_password: <none>
#proxy_realm: <none>
#proxyd_allow_status_referral: 0
proxyservers: cyrus kolya

#ptloader_sock: <none>

#ptscache_db: berkeley
#ptscache_timeout: 10800
#ptskrb5_convert524: 1

#quota_db: quotalegacy
#quotawarn: 90
#quotawarnkb: 0

# If you want to have 8-bit symbols in 'Subject' the
# reject8bit should matter 0
reject8bit: 0

#rfc2046_strict: 0
#rfc3028_strict: 1

#sasl_auto_transition: 0
#sasl_maximum_layer: 256
#sasl_minimum_layer: 0
#sasl_option: 0
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_mech_list: PLAIN 

seenstate_db: skiplist

sendmail: /usr/sbin/sendmail
servername: home.gns.tdo.ua

#sharedprefix: Shared Folders
#sieve_maxscriptsize: 32
#sieve_maxscripts: 5
sievedir: /var/lib/imap/sieve
#sievenotifier: <none>
#sieveusehomedir: 0

#singleinstancestore: 1
#skiplist_unsafe: 0
#soft_noauth: 1
#srvtab: <empty string>

subscription_db: flat

#syslog_prefix: <none>

#temp_path: /tmp
#timeout: 30

#umask: 077
username_tolower: 1
#userprefix: Other Users
#unix_group_enable: 1
#unixhierarchysep: 0
virtdomains: off
----------- следующая часть -----------
-------------- testing imap
kolya на compact-home ~ $ imtest -m cram-md5 -a kolya  home.gns.tdo.ua
S: * OK home.gns.tdo.ua Cyrus IMAP4 v2.2.10 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
C: A01 AUTHENTICATE CRAM-MD5
S: + PDE0MTM1ODE4MTcuMTUzNjU5MDNAaG9tZS5nbnMudGRvLnVhPg==
Please enter your password:
C: a29seWEgY2RjNzhmNzYwYjIwNDczZmY2OGIzY2UyMmMwZTI0ZmI=
S: A01 OK Success (no protection)
Authenticated.
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.
kolya на compact-home ~ $ imtest -m login -a kolya home.gns.tdo.ua
S: * OK home.gns.tdo.ua Cyrus IMAP4 v2.2.10 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN kolya {1}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0
C: Q01 LOGOUT
Connection closed.
kolya на compact-home ~ $ imtest -m digest-md5 -a kolya home.gns.tdo.ua
S: * OK home.gns.tdo.ua Cyrus IMAP4 v2.2.10 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
C: A01 AUTHENTICATE DIGEST-MD5
S: + bm9uY2U9IkJ2K2h0Vld5bW45aDVzU2tLL05xK3IxTWIzSXpFMzltdDg2OERXdkVNUlE9IixyZWFsbT0iaG9tZS5nbnMudGRvLnVhIixxb3A9ImF1dGgsYXV0aC1pbnQsYXV0aC1jb25mIixjaXBoZXI9InJjNC00MCxyYzQtNTYscmM0LGRlcywzZGVzIixtYXhidWY9NDA5NixjaGFyc2V0PXV0Zi04LGFsZ29yaXRobT1tZDUtc2Vzcw==
Please enter your password:
C: dXNlcm5hbWU9ImtvbHlhIixyZWFsbT0iaG9tZS5nbnMudGRvLnVhIixub25jZT0iQnYraHRWV3ltbjloNXNTa0svTnErcjFNYjNJekUzOW10ODY4RFd2RU1SUT0iLGNub25jZT0iVjZndDJDVG5lWmc0QkdIMzV5KzdxOHNOKzI3bHhDdkRWUTlhT2JNeGtaRT0iLG5jPTAwMDAwMDAxLHFvcD1hdXRoLWNvbmYsY2lwaGVyPXJjNCxtYXhidWY9MTAyNCxkaWdlc3QtdXJpPSJpbWFwL2hvbWUuZ25zLnRkby51YSIscmVzcG9uc2U9NWViOWQ4NzA2Mzk4NTU2MzFhMzkyNTY4NjljNDAxNmU=
S: + cnNwYXV0aD0wNTAxY2RhODY4ZTg4ZjcwYTkzZDk2YzE3YzEzMzBhMQ==
C:
S: A01 OK Success (privacy protection)
Authenticated.
Security strength factor: 128
C: Q01 LOGOUT
Connection closed.
---------------------------- TESTING SIEVE (digest-md5)
kolya на compact-home ~ $ sieveshell -a kolya home.gns.tdo.ua
connecting to home.gns.tdo.ua
Please enter your password:
Please enter your password:
Bad protocol from MANAGESIEVE server: lost connection
---------------------------- TESTING SIEVE with cram-md5
kolya на compact-home ~ $ sieveshell -a kolya home.gns.tdo.ua
connecting to home.gns.tdo.ua
Please enter your password:
unable to connect to server at /usr/bin/sieveshell line 169, <STDIN> line 1.
---------------------------- TESTING SIEVE with plain only
kolya на compact-home ~ $ sieveshell -u kolya home.gns.tdo.ua
connecting to home.gns.tdo.ua
Please enter your password:
unable to connect to server at /usr/bin/sieveshell line 169, <STDIN> line 1.
----------- следующая часть -----------
Jan 16 16:14:38 compact-home imap[2808]: accepted connection
Jan 16 16:14:39 compact-home imap[2808]: login: home.gns.tdo.ua [192.168.192.2] kolya CRAM-MD5 User logged in
Jan 16 16:14:50 compact-home imap[2811]: accepted connection
Jan 16 16:14:50 compact-home imap[2811]: login: home.gns.tdo.ua [192.168.192.2] kolya plaintext User logged in
Jan 16 16:14:58 compact-home imap[2812]: accepted connection
Jan 16 16:14:58 compact-home imap[2812]: DIGEST-MD5 server step 1
Jan 16 16:14:58 compact-home imtest: DIGEST-MD5 client step 2
Jan 16 16:14:58 compact-home imtest: DIGEST-MD5 client step 2
Jan 16 16:14:58 compact-home imap[2812]: DIGEST-MD5 server step 2
Jan 16 16:14:58 compact-home imtest: DIGEST-MD5 client step 3
Jan 16 16:14:58 compact-home imap[2812]: login: home.gns.tdo.ua [192.168.192.2] kolya DIGEST-MD5 User logged in
Jan 16 16:15:00 compact-home master[2794]: process 2810 exited, status 0
Jan 16 16:15:00 compact-home master[2848]: about to exec /usr/lib/cyrus/imapd
Jan 16 16:15:00 compact-home imap[2848]: executed
Jan 16 16:15:18 compact-home master[2850]: about to exec /usr/lib/cyrus/timsieved
Jan 16 16:15:18 compact-home sieve[2850]: executed
Jan 16 16:15:18 compact-home sieve[2850]: accepted connection
Jan 16 16:15:18 compact-home sieve[2850]: DIGEST-MD5 server step 1
Jan 16 16:15:18 compact-home perl: DIGEST-MD5 client step 2
Jan 16 16:15:19 compact-home sieve[2850]: DIGEST-MD5 server step 2
Jan 16 16:15:21 compact-home sieve[2850]: attempting server step after doneflag
Jan 16 16:15:21 compact-home master[2794]: process 2850 exited, signaled to death by 11
Jan 16 16:15:21 compact-home master[2794]: service sieve pid 2850 in BUSY state: terminated abnormally
--------------------- now testing with only cram-md5 and plain
Jan 16 16:16:57 compact-home master[2943]: about to exec /usr/lib/cyrus/timsieved
Jan 16 16:16:57 compact-home sieve[2943]: executed
Jan 16 16:16:57 compact-home sieve[2943]: accepted connection
Jan 16 16:16:57 compact-home sieve[2943]: attempting server step after doneflag
Jan 16 16:16:57 compact-home sieve[2943]: badlogin: home.gns.tdo.ua[192.168.192.2] CRAM-MD5 generic failure
Jan 16 16:16:57 compact-home perl: No worthy mechs found
Jan 16 16:16:57 compact-home master[2916]: process 2943 exited, status 0
--------------------- now leaving only plain
Jan 16 16:20:18 compact-home sieve[3000]: executed
Jan 16 16:20:18 compact-home sieve[3000]: accepted connection
Jan 16 16:20:19 compact-home perl: No worthy mechs found
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 190 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/community/attachments/20050116/3d5b988a/attachment-0003.bin>


Подробная информация о списке рассылки community