Posted by mike Filed Under Cyrus-Imap with Comments Off
One nice feature of cyrus IMAP is that it does support quotas. Quotas are applied on the basis of the mailbox and any sub-mailboxes that do not have quotas. This means that a mailbox can only have or be a part of one quota. When mail arrives the quota is checked to verify that the mail will not cause the quota to be exceeded, THE MAIL WILL STILL BE DELEVERED; however, the user will be notified they are over the limit. If the mailbox is already over the limit when the mail arrives it will not be accepted.
Posted by mike Filed Under Cyrus-Imap with Comments Off
The default admin user is cyrus; however, an additional admin may be needed, or for some reason the default does not work a new admin can be created. Create an admin user name on the system with a password first. cyrus is the default and will be created when cyrus IMAP is installed. However, a good password must be created, see the example.
# passwd cyrus
Changing password for user cyrus.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
It may be a good idea to create a second admin account as is seen here:
useradd cyrusad
passwd cyrusad
Now create an admin with saslauthd:
Verify sasauthd is started with this command:
service saslauthd status
If the status is off it will need to be started with the command below.
Start saslauthd
Centos
# service saslauthd start
Starting saslauthd: [ OK ]
Suse or Ubuntu
/etc/init.d/saslauthd start
saslpasswd2 -c cyrus
Error Message – generic falure
If you get this message do not panic, just do the password again.
# saslpasswd2 -c cyrus
Password:
Again (for verification):
saslpasswd: generic failure
Second time it works!
# saslpasswd2 -c cyrus
Password:
Again (for verification):
Edit the file /etc/impad.conf and view the line that lists admins, add the second admin that was just created and add the third admin if needed.
admins: cyrus
Note: You should not use regular users who have mailboxes as admins. This adds to the security risk.
Create cyrus Folders
su to the user cyrus
su cyrus
Create the necessary file and directories for Cyrus to run by executing this script.
/usr/lib/cyrus-imapd/mkimap
Here is what it looks like from the console.
bash-3.00$ /usr/lib/cyrus-imapd/mkimap
reading configure file…
i will configure directory /var/lib/imap.
i saw partition /var/spool/imap.
done
configuring /var/lib/imap…
creating /var/spool/imap…
done
Return to the root user by using the exit command:
exit
You will probably need to reboot to get everything running.
Posted by mike Filed Under Cyrus-Imap with Comments Off
Basic Installation
Install the two basic applications required, cyrus-imapd and cyrus-imapd-utils.
You can either use the graphical tools to install or from the command line:
yum install cyrus-imapd cyrus-imapd-utils (CentOS)
apt-get install cyrus-imapd cyrus-impad-utils (Ubuntu)
Start cyrus-imapd
# service cyrus-imapd start
Starting cyrus-imapd: preparing databases… done. [ OK ]
(Suse and Ubuntu)
/etc/init.d/cyrus-imapd start
Starting cyrus-imapd: preparing databases… done. [ OK ]