squirrelmail/cyrus-imap/postfix segfault using lmtp socket
In SLES 9 I am having a problem getting squirrelmail to work with cyrus-Imap. I have configured all with yast2 using default LDAP and so on. I have Local Delivery Type as Cyrus IMAP. I have listed error messages and configuration files below. Any ideas or suggestions are appreciated. I have used "cyradm" before with mysql for virtual domains, but this time was trying to stay with "vanilla" SLES packages (hence using LDAP) so as to be able to get regular securty patches via YOU. Thank you - Richard Squirrelmail logs me in but displays the following error messages: ERROR : Could not complete request. Query: CREATE "INBOX/Sent" Reason Given: Permission denied Here are the messages in my log: Dec 4 17:12:12 gofish kernel: SFW2-INext-ACC-TCP IN=eth2 OUT= MAC=00:e0:81:2b:4b:c3:00:10:0b:4e:58:01:08:00 SRC=130.13.89.148 DST=140.99.50.60 LEN=48 TOS=0x00 PREC=0x00 TTL=112 ID=53439 DF PROTO=TCP SPT=4004 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B401010402) Dec 4 17:12:12 gofish kernel: SFW2-INext-ACC-TCP IN=eth2 OUT= MAC=00:e0:81:2b:4b:c3:00:10:0b:4e:58:01:08:00 SRC=130.13.89.148 DST=140.99.50.60 LEN=48 TOS=0x00 PREC=0x00 TTL=112 ID=53446 DF PROTO=TCP SPT=4005 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B401010402) Dec 4 17:12:12 gofish master[27011]: about to exec /usr/lib/cyrus/bin/imapd Dec 4 17:12:12 gofish imap[27011]: executed Dec 4 17:12:12 gofish imap[27011]: accepted connection Dec 4 17:12:12 gofish PAM-warn[5477]: function=[pam_sm_authenticate] service=[imap] terminal=[<unknown>] user=[rnmixon] ruser=[<unknown>] rhost=[<unknown>] Dec 4 17:12:12 gofish PAM-warn[5477]: function=[pam_sm_acct_mgmt] service=[imap] terminal=[<unknown>] user=[rnmixon] ruser=[<unknown>] rhost=[<unknown>] Dec 4 17:12:12 gofish imap[27011]: login: localhost [127.0.0.1] rnmixon plaintext Dec 4 17:12:12 gofish imap[27011]: accepted connection Dec 4 17:12:12 gofish PAM-warn[5478]: function=[pam_sm_authenticate] service=[imap] terminal=[<unknown>] user=[rnmixon] ruser=[<unknown>] rhost=[<unknown>] Dec 4 17:12:12 gofish PAM-warn[5478]: function=[pam_sm_acct_mgmt] service=[imap] terminal=[<unknown>] user=[rnmixon] ruser=[<unknown>] rhost=[<unknown>] Dec 4 17:12:12 gofish imap[27011]: login: localhost [127.0.0.1] rnmixon plaintext Dec 4 17:12:13 gofish master[26519]: process 27009 exited, status 0 Dec 4 17:12:13 gofish master[27014]: about to exec /usr/lib/cyrus/bin/lmtpd Dec 4 17:12:13 gofish lmtpunix[27014]: executed Dec 4 17:12:13 gofish lmtpunix[27014]: accepted connection Dec 4 17:12:13 gofish lmtpunix[27014]: lmtp connection preauth'd as postman Dec 4 17:12:13 gofish lmtpunix[27014]: append_check() of 'user.root' failed (Mailbox does not exist) Dec 4 17:12:13 gofish kernel: lmtp[27012]: segfault at 0000000000000000 rip 00000000004243fa rsp 0000007fbffff580 error 4 Dec 4 17:12:13 gofish lmtpunix[27014]: accepted connection Dec 4 17:12:13 gofish lmtpunix[27014]: lmtp connection preauth'd as postman Dec 4 17:12:13 gofish lmtpunix[27014]: append_check() of 'user.root' failed (Mailbox does not exist) Dec 4 17:12:13 gofish kernel: lmtp[27013]: segfault at 0000000000000000 rip 00000000004243fa rsp 0000007fbffff580 error 4 Dec 4 17:12:42 gofish master[26519]: process 27010 exited, status 0 Here is my /etc/imapd.conf configdirectory: /var/lib/imap partition-default: /var/spool/imap sievedir: /var/lib/sieve admins: cyrus allowanonymouslogin: no autocreatequota: 29 reject8bit: no quotawarn: 75 timeout: 30 poptimeout: 10 dracinterval: 0 drachost: localhost sasl_pwcheck_method: saslauthd lmtp_overquota_perm_failure: no unixhierarchysep: yes allowplainwithouttls: yes altnamespace: no tls_cert_file: /etc/ssl/servercerts/servercert.pem tls_key_file: /etc/ssl/servercerts/serverkey.pem tls_ca_path: /etc/ssl/certs # # if you want TLS, you have to generate certificates and keys # #tls_cert_file: /usr/ssl/certs/cert.pem #tls_key_file: /usr/ssl/certs/skey.pem #tls_ca_file: /usr/ssl/CA/CAcert.pem #tls_ca_path: /usr/ssl/CA Here is "postconf -n" gofish:/var/log # postconf -n alias_maps = hash:/etc/aliases canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin config_directory = /etc/postfix content_filter = daemon_directory = /usr/lib/postfix debug_peer_level = 2 defer_transports = disable_dns_lookups = no home_mailbox = html_directory = /usr/share/doc/packages/postfix/html inet_interfaces = all local_recipient_maps = $alias_maps, ldap:/etc/postfix/ldaplocal_recipient_maps.cf mail_owner = postfix mail_spool_directory = mailbox_command = mailbox_size_limit = 0 mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_domains = ldap:/etc/postfix/ldapmasquerade_domains.cf masquerade_exceptions = root message_size_limit = 20480000 mydestination = $myhostname, localhost.$mydomain, $mydomain, ldap:/etc/postfix/ldapmydestination.cf myhostname = gofish.swamp.home mynetworks = 127.0.0.0/8, 192.168.11.0/24, 192.168.12.0/24, 192.168.1.0/24, [::1]/128, [fe80::2e0:81ff:fe2b:4bc3]/64, [fe80::2e0:81ff:fe2b:4be1]/64, [fe80::2e0:81ff:fe2b:4be0]/64 newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = relocated_maps = hash:/etc/postfix/relocated sample_directory = /usr/share/doc/packages/postfix/samples sender_canonical_maps = hash:/etc/postfix/sender_canonical sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_enforce_tls = no smtp_sasl_auth_enable = no smtp_sasl_security_options = noanonymous smtp_tls_enforce_peername = no smtp_tls_per_site = ldap:/etc/postfix/ldapsmtp_tls_per_site.cf smtp_use_tls = no smtpd_banner = $myhostname ESMTP $mail_name smtpd_client_restrictions = reject_rbl_client list.dsbl.org, reject_rbl_client relays.ordb.org, ldap:/etc/postfix/ldapaccess.cf smtpd_helo_required = yes smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_auth_destination, permit_mynetworks, reject_unauth_destination, reject smtpd_sasl_auth_enable = no smtpd_sender_restrictions = ldap:/etc/postfix/ldapaccess.cf, reject_unknown_sender_domain smtpd_tls_CApath = /etc/ssl/certs smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/ssl/servercerts/servercert.pem smtpd_tls_key_file = /etc/ssl/servercerts/serverkey.pem smtpd_use_tls = yes strict_rfc821_envelopes = no transport_maps = ldap:/etc/postfix/ldaptransport_maps.cf unknown_local_recipient_reject_code = 550 virtual_alias_maps = ldap:/etc/postfix/ldapvirtual_alias_maps.cf, ldap:/etc/postfix/ldaplocal_recipient_maps.cf gofish:/var/log #
On Sat, 04 Dec, 2004 at 17:29:29 -0700, Richard Mixon (qwest) wrote:
In SLES 9 I am having a problem getting squirrelmail to work with cyrus-Imap.
<snip>
Thank you - Richard
Squirrelmail logs me in but displays the following error messages: ERROR : Could not complete request. Query: CREATE "INBOX/Sent" Reason Given: Permission denied
First of all: Sorry if multiple versions of this reply end up on the list. I'm trying to be helpful and testing something at the same time :P Now, I'm in the process of some changes in my own mail system, some of which involves Cyrus. During the process I think I've seen something that might apply to your problem. Basically, you might want to check the permissions on /var/spool/imap Cyrus needs to be able to create/delete files there, so something like chmod -R cyrus /var/spool/imap might be relevant. HTH /Jon -- YMMV
Jon Clausen wrote:
On Sat, 04 Dec, 2004 at 17:29:29 -0700, Richard Mixon (qwest) wrote:
In SLES 9 I am having a problem getting squirrelmail to work with cyrus-Imap.
<snip>
Thank you - Richard
Squirrelmail logs me in but displays the following error messages: ERROR : Could not complete request. Query: CREATE "INBOX/Sent" Reason Given: Permission denied
First of all: <snip> Basically, you might want to check the permissions on /var/spool/imap
Cyrus needs to be able to create/delete files there, so something like chmod -R cyrus /var/spool/imap might be relevant.
Hmm, I took a look at that directory and contained files. I think its OK. No? # ls -ld imap drwxr-x--- 7 cyrus mail 200 Dec 4 16:24 /var/spool/imap # ls -ld imap/* drwx------ 2 cyrus mail 48 Dec 4 21:20 /var/spool/imap/stage. drwx------ 3 cyrus mail 80 Nov 30 06:52 /var/spool/imap/user drwx------ 2 cyrus mail 144 Dec 4 12:26 /var/spool/imap/user^rnm^fromltoj^com drwx------ 2 cyrus mail 144 Dec 4 16:24 /var/spool/imap/user^rnmixon drwx------ 2 cyrus mail 144 Nov 30 14:43 /var/spool/imap/user^root # Thanks - Richard (PS - only got one copy of youre note :)
On Sun, 05 Dec, 2004 at 05:10:29 -0700, Richard Mixon (qwest) wrote:
Jon Clausen wrote:
Cyrus needs to be able to create/delete files there, so something like chmod -R cyrus /var/spool/imap might be relevant.
Hmm, I took a look at that directory and contained files. I think its OK. No? # ls -ld imap drwxr-x--- 7 cyrus mail 200 Dec 4 16:24 /var/spool/imap # ls -ld imap/* drwx------ 2 cyrus mail 48 Dec 4 21:20 /var/spool/imap/stage. drwx------ 3 cyrus mail 80 Nov 30 06:52 /var/spool/imap/user drwx------ 2 cyrus mail 144 Dec 4 12:26 /var/spool/imap/user^rnm^fromltoj^com drwx------ 2 cyrus mail 144 Dec 4 16:24 /var/spool/imap/user^rnmixon drwx------ 2 cyrus mail 144 Nov 30 14:43 /var/spool/imap/user^root #
Looks fine to me... The only thing I can suggest is 'tail -f' all pertinent log files, in the hope something comes up :P
Thanks - Richard (PS - only got one copy of youre note :)
Something's still not quite right on my end, though... But that's another story /Jon -- YMMV
participants (2)
-
Jon Clausen
-
Richard Mixon (qwest)