deleting old trash mails
Hello list Many of my clients are use imap accounts and they usually delete mails but don't purge them. Most of them use SquirrelMail, others Thunderbird. So I'm trying to make Cyrus to delete automatically after some days. I use cyrus-imapd-2.3.16-3.fc12.i686. In the imap.conf I put: ... expunge_mode: delayed ... And in the cyrus.conf: ... delprune cmd="cyr_expire -a -E 3 -X 10" at=0400 ... In maillog everyday I found the following records: ... Jan 17 04:00:02 ns1 cyr_expire[12994]: mydelete: starting txn 2147487755 Jan 17 04:00:02 ns1 cyr_expire[12994]: mydelete: committing txn 2147487755 Jan 17 04:00:02 ns1 cyr_expire[12994]: duplicate_prune: purged 284 out of 786 entries but no mails deleted from trash. I believe there is some misunderstanding here. What I' doing wrong? Thank's in advance Nikos Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
rsync problem backing up cyrus-imap emails
Hello list I use rsync to backup cyrus mail dirs using the following command: rsync -vaR --delete --log-file=/var/log/rsync /var/lib/imap /var/spool/imap/ /mnt/backup The destination is a Lacie external network drive in ntfs format. The problem I have is that rsync change email names from, lets say 102. to 2RB3UX~6. I also backup to a local ext3 format hard drive where files save with exactly same name with right attributes, and rights with no problem. I try to rsync to a window pc shared folder and the emails saved also with the same names as used (102. to 102.) The external disk cant change from ntfs to ext format. Does someone had the same problem? Thank you in advance. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: rsync problem backing up cyrus-imap emails
On 8/2/2011 5:52 μμ, Jeff wrote: > Nikos Gatsis - Qbit qbit.gr> writes: >> Hello list >> I use rsync to backup cyrus mail dirs using the following command: >> >> rsync -vaR --delete --log-file=/var/log/rsync /var/lib/imap >> /var/spool/imap/ /mnt/backup >> >> The destination is a Lacie external network drive in ntfs format. >> The problem I have is that rsync change email names from, lets say 102. >> to 2RB3UX~6. >> >> I also backup to a local ext3 format hard drive where files save with >> exactly same name with right attributes, and rights with no problem. >> I try to rsync to a window pc shared folder and the emails saved also >> with the same names as used (102. to 102.) >> >> The external disk cant change from ntfs to ext format. >> >> Does someone had the same problem? >> Thank you in advance. > I have not seen your exact problem with the files being renamed, but I do know > that Windows/NTFS makes life very difficult for cyrus mail files. While NTFS > allows file names that end with a dot, virtually all of the Windows OS tools > for > accessing files do not work with such file names. It's hard to say what is > happening on the Lacie drive. Could the Lacie NAS drive be running a linux > implementation of NTFS behind the scenes? That would be another potential > source > of problems. > > One solution would be to rsync /var/spool/imap to a local directory on the > imap > server and then tar it up to /mnt/backup. > > We store our mail backups on a Windows server using the Microsoft > implementation > of NFS (regrettable, I know). We didn't have any issues getting the imap email > files to the NFS share, but again, we couldn't work with them from the Windows > OS. We solved the problem with a rather convoluted script that first mirrors > the > directory structure of /var/spool/imap, then in the mirror directory, it > softlinks to every file in /var/spool/imap, but adds a "eml" extension to the > all links that refer to mail files that end with a dot. Then we rsync the > mirror > structure to NFS using the --copy-links option which copies the content of the > symlink referrent, thus generating the same file on the Windows server, but > with > a .eml extension, which then can be easily managed with Windows tools. Oh, the > hoops we jump through to deal with Windows... > > I once emailed the cyrus-devel list asking about possibly changing the > file-name > convention of mail files and received an unofficial patch that seemed to work > just fine. > > http://lists.andrew.cmu.edu/pipermail/cyrus-devel/2009-November/001317.html > > Jeff > > > Cyrus Home Page: http://www.cyrusimap.org/ > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ > Thanks Jeff for your answer It's strange that some of my clients have nas in ntfs format (mostly lacie) and work without this problem and some others (different models of nas) has it. More strange is that on of them, a seagate blackarmor something has cifs shares... I have already try your workaround to backup in a windows server and work with no problem. Thank you again -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Move of mailboxes
try this: http://cynici.wordpress.com/2010/12/06/how-to-migrate-32-bit-cyrus-imapd-mailboxes-to-64-bit/ On 5/5/2011 1:08 μμ, Matt Elson wrote: >> Is there a recommended procedure to do the move? Any pointers (even to >> pitfalls) are welcome. > I'm actually in the middle of migrating two backends of a Murder > (2.2.13p1) to new machines (and Cyrus version, 2.3.16, though it doesn't > sound like you're switching Cyrus versions in your case). Full > disclosure, no idea if this is the recommended procedure and 2.2.13's > probably too old to be that useful, but it's been working for me. > > The way I've been doing it is writing a small script that: > > 1) Checks $cyrus_var/proc to see if the user is logged in. > 2) If they are not, connects to one of the proxy frontends, changes > permissions on the mailbox to (temporarily) stop the user from > manipulating it if they were to log in mid transfer. > 3) Issue a rename (which I think ultimately just makes an XFER call to > the appropriate backend?) of the format: "user.melson user.melson > mailboxes3.example.com!partition1" (for example). > 4) Set the permissions back to normal after success. (I may be changing > this permission switching to temporarily deny the user authentication, > that method just didn't fit my environment when I started this). > > The script's just some perl using Cyrus::IMAP::Admin, and it should be > fairly easily to replicate in anything with an IMAP library. > > (It's basically the same process I use to shuffle people between > backends in the murder environment normally, which was handy from a > laziness standpoint; the process is used for moving from 2.3.16->2.3.16 > backends as well) > > It's been pretty successful so far, no user has noticed anything amiss > (that said, most of my users are relatively light users), and delivered > email just gets queued up during the transfer as near as I can tell. > I've found it to be an ideal way to go about migration/upgrades - I can > introduce users into the new environment slowly to catch configuration > "glitches", make sure I didn't misjudge the resources I would require, > etc, etc. Very handy. It's been good about catching problems, even (I > have a customization that extends the valid characters in mailboxes I > forgot to apply on the new machines; the XFER noticed right away and > left the user's mailbox unmoved and unmolested) > > Oh, one thing I forgot - I'm fairly sure you *do* have to set > allowusermoves: 1 in your configuration if you're using this method. > > The gotchas I've run into are probably more quirks of the environment > I'm working with or relics of a relatively old Cyrus at this point, but > I'll share them in case they are useful. > > *) I've had some weirdness if the transfer gets interrupted in the > middle (I forget the exact symptom, but the mailbox on the home spool > was flagged as REMOTE (or something like that), but it hadn't actually > made it over to the new machine - a simple ctl_mboxlist -m on the > backend fixed it up since the frontend had the right information). > *) This is probably more my environment than anything else, but I've had > to throttle the moves and not run too many simultaneous moves in > parallel or I basically overwhelm the server I'm migrating from - it > seems to actually be the delete of the mailbox from its old home that > hits the hardest. I've not looked into it much, because, old crusty > server (2.4 kernel, ext3 file system; like I said, probably my > environment :P). > -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
disabling user
Hello list How can I disable a user from getting emails? I dont want to delete it, just to stop pop his account. Thank you in advance! -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: disabling user
what is the 2 stands for in: "2 pop3Can't use pop."? and what if i have to remove one of the deny users? thank you On 04/05/2012 5:03 μμ, Dan White wrote: On 05/04/12 14:45 +0300, Nikos Gatsis - Qbit wrote: Hello list How can I disable a user from getting emails? I dont want to delete it, just to stop pop his account. Thank you in advance! You can use the userdeny_db database to accomplish that. See: http://asg.andrew.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=50826 also see: http://cyrusimap.org/docs/cyrus-imapd/2.4.16/internal/database-formats.php imapd.conf(5) (options userdeny_db and userdeny_db_path) -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: disabling user
I try it and seems to work fine! As I notice, the message appears only in maillog and not to client side. Is that correct? Thanks again! On 04/05/2012 5:56 μμ, Dan White wrote: '2' is the database version number, and should always be 2 (for now). To remove the entry, from my example: cyr_dbtool /var/lib/imap/user_deny.db flat delete dwhite On 05/04/12Β 17:42Β +0300, Nikos Gatsis - Qbit wrote: what is the 2 stands for in: "2 pop3Can't use pop."? and what if i have to remove one of the deny users? thank you On 04/05/2012 5:03 ΞΌΞΌ, Dan White wrote: On 05/04/12 14:45 +0300, Nikos Gatsis - Qbit wrote: Hello list How can I disable a user from getting emails? I dont want to delete it, just to stop pop his account. Thank you in advance! You can use the userdeny_db database to accomplish that. See: http://asg.andrew.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=50826 also see: http://cyrusimap.org/docs/cyrus-imapd/2.4.16/internal/database-formats.php imapd.conf(5) (options userdeny_db and userdeny_db_path) -- *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Re: Migration from Cyrus 2.3.7 to 2.4.12
Hello If is the same stracture follow the instructions here: http://cynici.wordpress.com/2010/12/06/how-to-migrate-32-bit-cyrus-imapd-mailboxes-to-64-bit/ Nikos On 7/1/2013 1:52 μμ, Adonai Silveira Canez wrote: Hi, I need to migrate my server cyrus 2.3.7 from redhat 5.3, to Ubuntu 12.04 LTS with cyrus 2.4.12. What is the migration procedure should I do? thanks Adonai S. Canez 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 -- Untitled Document *Γατσής Νίκος - Gatsis Nikos* Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr 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
Virtual table help
Title: Untitled Document Hello List I'm trying to setup cyrus with virtdomains. I've already set it up and seems to work fine. But I need help to set the virtuale table of sendmail. Before, without virtdomains configuration, I use to made a local user and make the alias to virtusertable of sendmail. Lets say, i...@mydomain.com info_something That helps me to have different info@.. accounts for multiple domains. Now, with virtdomains setup, sendmail fails to deliver incoming email. Another account, us...@mydomain.com alias to user1 local user delivers without problem. Can somebody give instractions or a tutorial? Sorry for my English, hope everything is clear. Thank you in advance Nikos. -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr smime.p7s Description: S/MIME Cryptographic Signature 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
autocreateinboxfolders
Hello list I have install cyrus 2.4.17 in a Centos 7 distro and i find out that autocreateinboxfolders doesn't work. I mean, imap users doesnt auto create Sent or Trash folder automatically. Is something I miss? My conf is: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus some sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail allowanonymouslogin: no hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN allowplaintext: yes anyoneuseracl: 0 createonpost: 0 munge8bit: 0 autocreateinboxfolders: Sent|Drafts|Trash autosubscribeinboxfolders: Drafts|Sent|Trash tls_cert_file: /var/lib/imap/server.pem #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /var/lib/imap/server.pem #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 Thank you in advance Nikos smime.p7s Description: S/MIME Cryptographic Signature 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
autocreateinboxfolders
Hello list I have install cyrus 2.4.17 in a Centos 7 distro and i find out that autocreateinboxfolders doesn't work. I mean, imap users doesnt auto create Sent or Trash folder automatically. Is something I miss? My conf is: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus some sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail allowanonymouslogin: no hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN allowplaintext: yes anyoneuseracl: 0 createonpost: 0 munge8bit: 0 autocreateinboxfolders: Sent|Drafts|Trash autosubscribeinboxfolders: Drafts|Sent|Trash tls_cert_file: /var/lib/imap/server.pem #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /var/lib/imap/server.pem #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 Thank you in advance Nikos smime.p7s Description: S/MIME Cryptographic Signature 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: autocreateinboxfolders
Title: Untitled Document Strange, I have autocreateinboxfolders command in older distros. So, what should I do? On 18/6/2015 5:25 μμ, Dan White wrote: On 06/18/15 17:18 +0300, Nikos Gatsis - Qbit wrote: Hello list I have install cyrus 2.4.17 in a Centos 7 distro and i find out that autocreateinboxfolders doesn't work. I mean, imap users doesnt auto create Sent or Trash folder automatically. Is something I miss? My conf is: configdirectory: /var/lib/imap partition-default: /var/spool/imap admins: cyrus some sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail allowanonymouslogin: no hashimapspool: true sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN allowplaintext: yes anyoneuseracl: 0 createonpost: 0 munge8bit: 0 autocreateinboxfolders: Sent|Drafts|Trash autosubscribeinboxfolders: Drafts|Sent|Trash These two options are not valid for version 2.4.17, and appear to have been added in one of the 2.5.x releases. tls_cert_file: /var/lib/imap/server.pem #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_key_file: /var/lib/imap/server.pem #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt # uncomment this if you're operating in a DSCP environment (RFC-4594) # qosmarking: af13 -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr smime.p7s Description: S/MIME Cryptographic Signature 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
rsync problem backing up cyrus-imap emails
Title: Untitled Document Hello list. I send the following some years ago and still facing same problem again: I use rsync to backup cyrus mail dirs using the following command: rsync -vaR --delete --log-file=/var/log/rsync /var/lib/imap /var/spool/imap/ /mnt/backup The destination is a WD external network drive in unknown format, probably ntfs. The problem I have is that rsync change email names from, lets say 102. to 2RB3UX~6. The external disk cant change from ntfs to other format. Does someone had the same problem? Thank you in advance. -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 2108256721 - 2108256722 fax: 2108256712 email: ngat...@qbit.gr http://www.qbit.gr smime.p7s Description: S/MIME Cryptographic Signature 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
install certificate how to
Hello list I have a mailserver which serve about 40 virutal domains and many users per domain using cyrus-imapd-2.4.17-13.el7.x86_64 and sendmail-8.14.7-5.el7.x86_64. How can I install a certificate per domain? Is that possible? Now I use what cyrus manual suggest: imapd.conf: ... tls_cert_file: /var/lib/imap/server.pem tls_key_file: /var/lib/imap/server.pem 3tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt ... Thank you in advance, Nikos 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
Centos 8
Hello list. Does somebody knows witch version on cyrus-imapd centos 8 install? Thank you in advance. Nikos. 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: Centos 8
Title: Untitled Document Thank you very much! On 14/11/2019 1:49 μ.μ., Patrick Boutilier wrote: On 11/14/19 7:38 AM, Nikos Gatsis - Qbit wrote: Hello list. Does somebody knows witch version on cyrus-imapd centos 8 install? Thank you in advance. yum list|grep cyrus-imapd cyrus-imapd.i686 3.0.7-15.el8_0.1 AppStream cyrus-imapd.x86_64 3.0.7-15.el8_0.1 AppStream cyrus-imapd-utils.x86_64 3.0.7-15.el8_0.1 AppStream cyrus-imapd-vzic.x86_64 3.0.7-15.el8_0.1 AppStream Nikos. 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 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 -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 210.8256721 - 210.8256712 email: ngat...@qbit.gr http://www.qbit.gr 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: Confused about Deleted and Expunged
Title: Untitled Document delprune cmd="cyr_expire -E 3" at=0400 Οn centos 7: Version: 2.4.17 Release: 15.el7 On 17/1/2020 12:11 μ.μ., Horst Häberlen wrote: Hi Sebastian Hagedorn , i have no idea how follow-up works in this list, i hope this mail goes to the right place. does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That can't work. The command is named cyr_expire on my system, and it definitely does not have a space in its name. Yes, the command is correct. On Ubuntu 18.04 there is no cyr_expire and the entry "/usr/sbin/cyrus expire" is in cyrus.conf by default. In the log files the results are printed ".. localhost cyrus/cyr_expire[14320]: Expired 0 and expunged 0 out of 143844 messages from 818 mailboxes" regards Horst -- Γατσής Νίκος - Gatsis Nikos Web developer tel.: 210.8256721 - 210.8256712 email: ngat...@qbit.gr http://www.qbit.gr 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
Vacation script
Hello list. Can somebody propose me a vacation script or help me how to create it? I have latest centos 7 installation and cyrus-imapd-2.4.17-8.el7_1.x86_64 Thank you in advance smime.p7s Description: S/MIME Cryptographic Signature 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