Posts Tagged ‘cyrus’
The following is a quick and dirt list of Linux command to do some useful operation.
# To check disk space usage on some/dir
du -h --max-depth=1 /some/dir
# To check all open ports on a Linux system
netstat -puntal
# To create a random password
ps aux | md5sum | cut -c1-8
# To process a text file as argument for a command
while read line
do
echo "${line}";
done < textfile.txt
# To login to cyrus to administer mailboxes
cyradm --user=cyrus --auth=login localhost
# To reconstruct a Cyrus Imap Mailboxes
su - cyrus /usr/lib/cyrus/bin/reconstruct -rfx "user.mailbox"
# To manage CPAN modules
# To start the installation of the needed perl modules from CPAN type the following on your shell:
perl -MCPAN -e shell
# If you haven’t configured the Perl CPAN installation before, you’ll have to go through the initially setup and evt. install the following:
cpan> install CPAN cpan> install LWP
# After that we can start installing the needed packages:
cpan> install Archive::Tar cpan> install Archive::Zip
# To manage mail redirections with SIEVE script
if header :contains "Subject" "****SPAM****" {
fileinto "INBOX/SPAM";
}
if header :contains "X-Spam-Flag" "YES" {
fileinto "INBOX/SPAM";
}
Hope this help
Bye
Riccardo
Print This Post
The following is a quick and dirt guide on how to use a mailbox with the “.” character with Cyrus Imap.
add the following line to your imapd.conf
unixhierarchysep: 1
login to your cyrus imap server and run the following command to create a new mailbox
cm user/your.name
setacl user/your.name cyrus lrsiwpcda
When the UNIX hierarchy convention is used, the “.” character MAY be used in mailbox names, including user names. In order to mantain backwards compatibility with the internal namespace, all “.” character will be translated in a benign character (at this time “^”) before any data is written to disk. For example, if user “your.name” had a personal mailbox “customer.support” , it would be stored as “user.your^name.customer^support” in the internal namespace.
If you use it, it’s very important that you remember this phenomenon if/when reverting back to the netnews hierarchy convention.
Hope this help
Bye
Riccardo
Print This Post























