Can't log into IMAP but pop3 works

2009-07-11 Thread J. Pilfold-Bagwell
Hi All,

I have a problem where I can log into cyrus using POP3 but can't with 
imap. Telnet sessions return the following:

sysad...@smbserver:~$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK smbserver Cyrus POP3 v2.2.13-Debian-2.2.13-13ubuntu3 server ready 
545339973.1247349...@smbserver
quit
+OK
Connection closed by foreign host.


sysad...@smbserver:~$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.


/etc/imap.conf

configdirectory: /var/lib/cyrus
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: no
lmtp_downcase_rcpt: yes
admins: cyrus
allowanonymouslogin: no
popminpoll: 1
autocreatequota: 0
umask: 077
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
allowplaintext: yes
sasl_mech_list: PLAIN
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
tls_ca_path: /etc/ssl/certs
tls_session_timeout: 1440
tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
lmtpsocket: /var/run/cyrus/socket/lmtp
idlemethod: poll
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify
syslog_prefix: cyrus



/etc/cyrus.conf



START {
recovercmd=/usr/sbin/ctl_cyrusdb -r
delprunecmd=/usr/sbin/cyr_expire -E 3
tlsprunecmd=/usr/sbin/tls_prune
}


SERVICES {
imapcmd=imapd -U 30 listen=imap prefork=0 maxchild=100
pop3cmd=pop3d -U 30 listen=pop3 prefork=0 maxchild=50
nntpcmd=nntpd -U 30 listen=nntp prefork=0 maxchild=100
lmtpunixcmd=lmtpd listen=/var/run/cyrus/socket/lmtp 
prefork=0 maxchild=20
  sievecmd=timsieved listen=localhost:sieve prefork=0 
maxchild=100
notifycmd=notifyd listen=/var/run/cyrus/socket/notify 
proto=udp prefork=1
}

EVENTS {
checkpointcmd=/usr/sbin/ctl_cyrusdb -c period=30
delprunecmd=/usr/sbin/cyr_expire -E 3 at=0401
tlsprunecmd=/usr/sbin/tls_prune at=0401
}


Aside from this it works fine. Mail gets delivered to mailboxes etc. 
just can't use imap.

Thanks,

Jools

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


Cyrus IMAP and SASL on replicated machines

2011-08-05 Thread J. Pilfold-Bagwell
Hi All,

I have a Cyrus box that I set up about 3 years ago that's been running 
flawlessly.  Recently though, as we're becoming increasingly reliant on 
email, it was decided that we're going to set up a DRBD replicated system.

The only question that's nagging is that of running Cyrus-SASL across 
the two machines for authentication.  When I first set the existing 
server up I remember reading that if you back the sasldb up and restore 
it to another machine, the new machine has to have the same hostname as 
the original otherwise it breaks the authentication.  I now can't find 
that original document and am not sure if it's still relevant.

Is this likely to be a problem or is there a mechanism that will allow 
me to force sasl to ignore the hostname.

Thanks in advance,

Julian PB


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Phantom Folders

2018-11-14 Thread J Pilfold-Bagwell

Hi All,

I have a cyrus server that appears to have phantom folders that appear 
in everyone's  IMAP folder subscription preferences on Roundcube, but 
can't be accessed.


We searched the /var/spool/imap partition and found several folders that 
are not meant to be there, for example,  there's a 
/var/spool/imap/f/user/ folder, that contains the mailboxes of every 
user starting with "f",  but there's also a /var/spool/imap/f/users 
folder that contains one of the phantom mailboxes.  In another phantom 
folder, there's a phantom mailbox that appears as user,.


My question is, how do I delete these without upsetting cyrus. I've 
tried using various permutations of dm but with no joy.  Is it worth 
deleting them manually and reindexing the whole imap store?



Thanks in advance,

Julian PB


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Sieve not working

2019-02-26 Thread J Pilfold-Bagwell

Hi Willem,

Once I found that you can run sieve on ports 200 and 4190 at the same 
time, I set it up just in case Cyrus was talking to only one of the ports.


If I telnet in, I get this response.

[root@mail rules]# telnet localhost 2000
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-13.el7"
"SASL" "PLAIN LOGIN CRAM-MD5 DIGEST-MD5"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags 
notify envelope relational regex subaddress copy"

"STARTTLS"
"UNAUTHENTICATE"
OK
#

and

[root@mail rules]# telnet localhost 4190
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-13.el7"
"SASL" "PLAIN LOGIN CRAM-MD5 DIGEST-MD5"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags 
notify envelope relational regex subaddress copy"

"STARTTLS"
"UNAUTHENTICATE"
OK

Replacing localhost with 127.0.0.1 gets rid of the  "telnet: connect to 
address ::1: Connection refused".


I can also log into sieveshell and list and manipulate scripts::

[root@mail rules]# sieveshell --authname=mail-admin --user=jpb localhost
connecting to localhost
Please enter your password:
> list
mail
sieve-test  <- active script
> get sieve-test
require ["fileinto"];
if address :is "From" "test-u...@gmail.com" {
  fileinto "INBOX.Microsoft";
  stop;
}




On 18/02/2019 09:33, Willem Offermans wrote:


Dear Egoitz and Cyrus friends,

Check if sieve is actually listening at port 2000 as well.


Wiel Offermans
wil...@offermans.rompen.nl <mailto:wil...@offermans.rompen.nl>




On 18 Feb 2019, at 09:34, ego...@sarenet.es 
<mailto:ego...@sarenet.es> wrote:


Hi!


Could you try enabling local6.debug channel in syslog, so that you 
could see additional Sieve debugging information?. Can you then post 
that log?



Cheers!


El 2019-02-15 12:32, J Pilfold-Bagwell escribió:


Hi All,

I have a Centos 7 box running with the latest default cyrus install 
from the Centos 7 repo, i.e. cyrus-imapd-2.4.17-13.el7.x86_64 .


The problem I have is that sieve doesn't seem to pay any attention 
to the scripts.  I have sieve running, I can successfully log in to 
it using sieveshell, create, upload and activate scripts, but they 
don't seem to be applied to the incoming mail.  First I was trying 
the vacation and reject scripts so checked that the correct sendmail 
is in use but it fails on fileinto as well.


~~

imapd.conf looks like this:

[root@mail admin]# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyradmin
sieve_admins: cyradmin
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
allowplaintext: yes
allowusermoves: yes
defaultdomain: mail
lmtp_downcase_rcpt: yes

tls_cert_file: /etc/ssl/certs/cyrus-imapd/newcert.pem
tls_key_file: /etc/ssl/certs/cyrus-imapd/newkey.pem
tls_ca_file: /etc/ssl/certs/cyrus-imapd/cacert.pem
tls_ca_path: /etc/ssl/certscyrus-imapd



cyrus.conf:

# standard standalone server implementation

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

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

# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  # add or remove based on preferences
  imapcmd="imapd" listen="imap" prefork=5
  imapscmd="imapd -s" listen="imaps" prefork=1
#  pop3cmd="pop3d" listen="pop3" prefork=3
#  pop3scmd="pop3d -s" listen="pop3s" prefork=1
  sievecmd="timsieved" listen="0.0.0.0:2000" prefork=0
  sieve cmd="timsieved" listen="0.0.0.0:4190" prefork=0
#  managesieve   cmd="timsieved" listen="localhost:4190" prefork=0

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

  # at least one LMTP is required for delivery
#  lmtpcmd="lmtpd" listen="lmtp" prefork=0
  lmtpunixcmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1

  # this is only necessary if using notifications
#  notify    cmd="notifyd" listen=&quo

Sieve not working

2019-02-15 Thread J Pilfold-Bagwell

Hi All,

I have a Centos 7 box running with the latest default cyrus install from 
the Centos 7 repo, i.e. cyrus-imapd-2.4.17-13.el7.x86_64 .


The problem I have is that sieve doesn't seem to pay any attention to 
the scripts.  I have sieve running, I can successfully log in to it 
using sieveshell, create, upload and activate scripts, but they don't 
seem to be applied to the incoming mail.  First I was trying the 
vacation and reject scripts so checked that the correct sendmail is in 
use but it fails on fileinto as well.


~~

imapd.conf looks like this:

[root@mail admin]# cat /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyradmin
sieve_admins: cyradmin
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
allowplaintext: yes
allowusermoves: yes
defaultdomain: mail
lmtp_downcase_rcpt: yes

tls_cert_file: /etc/ssl/certs/cyrus-imapd/newcert.pem
tls_key_file: /etc/ssl/certs/cyrus-imapd/newkey.pem
tls_ca_file: /etc/ssl/certs/cyrus-imapd/cacert.pem
tls_ca_path: /etc/ssl/certscyrus-imapd



cyrus.conf:

# 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/sockets
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="0.0.0.0:2000" prefork=0
  sieve cmd="timsieved" listen="0.0.0.0:4190" prefork=0
#  managesieve   cmd="timsieved" listen="localhost:4190" prefork=0

  # 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/lib/imap/socket/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

  # reindex changed mailboxes (fulltext) approximately every three hours
  squatter1   cmd="/usr/bin/ionice -c idle 
/usr/lib/cyrus/bin/squatter -s" period=180


  # reindex all mailboxes (fulltext) daily
  squattera   cmd="/usr/lib/cyrus/bin/squatter" at=0117
}



sieveshell logs in fine:

[root@mail admin]# sieveshell --authname=cyradmin --user=testuser1 localhost
connecting to localhost
Please enter your password:
> list
mail
sieve-test  <- active script

telnet

Telnet login provides:

[root@mail admin]# telnet 192.168.0.6 4190
Trying 192.168.0.6...
Connected to 192.168.0.6.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-13.el7"
"SASL" "PLAIN LOGIN CRAM-MD5 DIGEST-MD5"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags 
notify envelope relational regex subaddress copy"

"STARTTLS"
"UNAUTHENTICATE"
OK

~

And this works for both port 2000 and 4190 on all interfaces. LMTP is in 
use but somewhere, they aren't talking.


Does anyone have any troubleshooting tips they can feed me or, can 
anyone see a glaringly obvious error I've made because it's all gone a 
bit wood for the trees here.


The logs are huge but if you'd like to see the contents, let me know 
what you'd like it grep'd for and I'll provide.


Thanks,

Julian

--
This email is from Borden Grammar School Trust.

This email, together with any files transmitted with it, is confidential, and 
is intended solely for the use of the individual or entity to whom it is 
addressed. Any unauthorised dissemination or copying of this email or its 
attachments, and any use or disclosure of any information contained in them, is 
strictly prohibited, and may also be illegal. If you are not the intended 
recipient you may not use, disclose, distribute, copy, print or relay this 
email.

Please note that any views expressed by an individual within this email, do not 
necessarily reflect the views of the Borden Grammar School Trust.

Borden Grammar School Trust has taken