Re: quota sharing
From: "Jason du Preez" [EMAIL PROTECTED] I have just installed cyrus on my FreeBSD 4.2 system - my problem is that I cannot authenticate. I have installed cyrus-sasl and have created users using saslpasswd. Can anyone point me to a decent setup resource, or explain how to get the whole SASL / Cyrus combination working with FreeBSD? Did you use the security/cyrus-sasl port? First, check the permissions of the sasldb.db file, they need to be: for postfix w/SMTP AUTH cyrus-imapd: -rw-r-cyrusmailsasldb.db for sendmail w/SMTP AUTH cyrus-imapd: -rw-r-cyruswheelsasldb.db Anyone know how to run sendmail as an alternate group (i.e. mail)? The security/cyrus-sasl port installs the pwcheck daemon. This daemon needs to be started before you can authenticate passwords from the systems password file. /usr/local/etc/rc.d/pwcheck.sh start Scot
Re: quota sharing
On 12/4/00 7:14 PM, "unplug" [EMAIL PROTECTED] wrote: If I still continue to send 1MB email to user.abc, he can't receive the mail, right!! However, I can see the maillog and it shows me that the 1MB email is delivered without problem. Where does the 1MB email go?? Does it go to the queue or just delete by the deliver?? Where do the 1MB email keep if it is not deleted?? Can user.abc get back the 1MB email after he deletes his mailbox and get back below 100%?? If it's being delivered, then make sure that you're not running deliver with the -q option. That option means: -q Deliver message even when receiving mailbox is over quota. If it's being delivered, then it's probably sitting in his INBOX waiting to be read. Thanks for your script. You run your script once a day and the sender receiver will notified by a long delay if his mailbox is over 100% in the morning. It seems too long to have such notification. Then run it from cron more frequently - I run it once a day because of my users' patterns. You could run it once an hour if you'd like - it's up to you. Does there any methods that there will be a notification once the mailbox quota excess. I mean if there is any setting for cyrus such that a notification will be sent to the sender immediately if the receiver's mailbox is over 100%. There is a "quotawarn" option in your /etc/imapd.conf it is supposed to: quotawarn: 90 The percent of quota utilization over which the server generates warnings. I have never actually seen a quota warning - I'm not sure that all email clients support it. I've seen it when I've used telnet to test and login, but not in the actual email client. -- Darron [EMAIL PROTECTED]
Re: quota sharing
Please ignore my previous mail as I make some mistakes. But I would like to know the situation below. The qutoa of user.abc is 1. I send several mail to user.abc that make his account to 11000. I continue to send mail to user.abc but he can't receieve it anymore. Q: How can I make a warning message to the sender receiver to tell them there is a qutoa problem?? However, I can see the maillog and the mail still sending to user.abc. Q: I wonder where is the mail store. Q: Can user.abc get back the mails after deleting the existing mail, how?? Best Regards, unplug unplug wrote: Hi all, Quota setting question I use the cyradm to set the quota of user.abc as 1. I have read the document that the unit of the quota setting is kbytes. So it is 10M from the above example. Am I right?? Now I send several huge messages to user.abc and make it over 1kbytes. I issue a command lq in cyradm and it shows. lq user.abc storage 11370/1 (113%) I wonder why I still can send mail to the user.abc which is out of quota. File Sharing question In the normal mail system, user a should not have permission to read user b's mail. Now I use imap to connect to the cyrus server as user a by an Outlook. Then I try to download the folder list and I surprised that I also download user b's all folders and can read his mail as well. How can I tune it back to the normal mail situation?? My system config. cyrus-imapd-1.6.24 openldap 1.2.7 cyrus-sasl-1.5.24 using ldap as authentication for cyrus. Best Regards, unplug
Re: quota sharing
On Monday, December 04, 2000 02:20:12 PM +0800 unplug [EMAIL PROTECTED] wrote: +-- | | Please ignore my previous mail as I make some mistakes. | | But I would like to know the situation below. | The qutoa of user.abc is 1. | I send several mail to user.abc that make his account to 11000. | I continue to send mail to user.abc but he can't receieve it anymore. | Q: How can I make a warning message to the sender receiver to tell | them there is a qutoa problem?? | However, I can see the maillog and the mail still sending to user.abc. Users will get an alert when they exceed a certain %age of their quota, IIRC it is 95% by default. If you wan't something else then you need to implement it yourself, a script to do this was posted some time ago. Mail may be being sent to the user but is it being delivered? | Q: I wonder where is the mail store. Check your imapd.conf. | Q: Can user.abc get back the mails after deleting the existing mail, | how?? Deliver informs sendmail if it could deliver the message and sendmail only deletes the message from the queue when it has been delivered or the message has exceeded its allocated time in the queue. Once the user comes under 100% they will receive messages again. I presume that other MTA's work similarly. /Michael -- This space intentionally left non-blank.
Re: quota sharing
On 12/3/00 11:20 PM, "unplug" [EMAIL PROTECTED] wrote: But I would like to know the situation below. The qutoa of user.abc is 1. I send several mail to user.abc that make his account to 11000. If a certain user is below 100% of their quota *any* email that's being received will be delivered. It will not be rejected because of quota until they are *over* their quota. Example: User.abc has a 10MB quota. User is at 8MB of mail stored - 80% full. User is receiving a 10MB email - since they are still below 99% full, cyrus will take and store the email. Now they're at 180% and no more mail will be received. I continue to send mail to user.abc but he can't receieve it anymore. Q: How can I make a warning message to the sender receiver to tell them there is a qutoa problem?? I posted a script that does this already - I run it from cron every night: #!/usr/bin/perl # TODO # 1. Make this web enabled for checking by the individual users. # 2. Make it configurable % wise for each user with 80% as the default. # Perl Module use Mail::Mailer; # Variables $quota_warn = "80"; $quota_max = "99"; $quota_application = "/usr/local/cyrus-imapd/bin/quota|"; $sysadmin_email = "sysadmin\@domain.com"; $email_subject = "It's time to clean out your email!"; $email_body_standard = "In order to assure that you will not lose any email (due to being over your email storage quota), "; $email_body_standard .= "please clean up and delete any email that is not needed anymore. Messages with large attachments (sounds, movies, etc.) are the usual culprits, taking up large amounts of space and storage capacity.\n\n"; $email_body_standard .= "You will continue to receive this email once a day until your email usage goes below $quota_warn%.\n\n"; $email_body_standard .= "If you have any questions at all, please don't hesitate to contact $sysadmin_email for any further clarification.\n\nThe Server Team"; # TODO: Check to see if you're the cyrus user. # This is the motherlode of cyrus quota information. open (QUOTA, "$quota_application"); # Go! while (QUOTA) { chomp; ($null, $quota, $percent, $used, $user) = split(/\s+/); ($null, $user) = split(/\./, $user); # Log the info to /var/log/messages if they're over 80% full. system ("/usr/bin/logger \"$user is at $percent\% of mail quota.\"") if ($percent $quota_warn); # Send the user an explanatory email if they're over $quota_warn (but under $quota_max) full. if (($percent $quota_warn) ($percent $quota_max)) { # Create the email body. $email_body = "This is just a friendly reminder that your email that is stored on the server is $percent\% full.\n\n"; $email_body .= $email_body_standard; $mailer = Mail::Mailer-new(); $mailer-open({From=$sysadmin_email, To=$user, Subject =$email_subject, }) or die; print $mailer $email_body; $mailer-close(); } else { # Do nothing. } # If the user is over $quota_max, any mail for them will bounce SO # send a quick email to sysadmin to let them know. if ($percent $quota_max) { $warning_body = "$user is at $percent\% of mail quota."; $warning_subject = "$user is over quota and is now bouncing email"; $mailer = Mail::Mailer-new(); $mailer-open({ From= $sysadmin_email, To = $sysadmin_email, Subject = $warning_subject, }) or die; print $mailer $warning_body; $mailer-close(); } } It's pretty rough but it works. It looks through the quota each night and: 1. Notifies the user if they're over $quota_min full and below $quota_max. 2. If they're over $quota_max - then the sysadmin is notified so that they can deal with it. However, I can see the maillog and the mail still sending to user.abc. Q: I wonder where is the mail store. The mail store is setup in the /etc/imapd.conf in the "partition-default" setting. Q: Can user.abc get back the mails after deleting the existing mail, how?? If it's deleted - it's gone. I'm a little confuzed as to what you're asking here. -- Darron [EMAIL PROTECTED]
Re: quota sharing
Make sure you are not using -q option with deliver.. Adonis On Mon, 4 Dec 2000, unplug wrote: Date: Mon, 04 Dec 2000 11:44:32 +0800 From: unplug [EMAIL PROTECTED] To: info-cyrus [EMAIL PROTECTED] Subject: quota sharing Hi all, Quota setting question I use the cyradm to set the quota of user.abc as 1. I have read the document that the unit of the quota setting is kbytes. So it is 10M from the above example. Am I right?? Now I send several huge messages to user.abc and make it over 1kbytes. I issue a command lq in cyradm and it shows. lq user.abc storage 11370/1 (113%) I wonder why I still can send mail to the user.abc which is out of quota. File Sharing question In the normal mail system, user a should not have permission to read user b's mail. Now I use imap to connect to the cyrus server as user a by an Outlook. Then I try to download the folder list and I surprised that I also download user b's all folders and can read his mail as well. How can I tune it back to the normal mail situation?? My system config. cyrus-imapd-1.6.24 openldap 1.2.7 cyrus-sasl-1.5.24 using ldap as authentication for cyrus. Best Regards, unplug -- Adonis El Fakih - President, CEO Engineering Graphical Solutions, Inc. (EGS) 70 Boston Road, Suite A301, Chelmsford MA 01824 USA Fax (978) 244-0544 - [EMAIL PROTECTED]
quota sharing
Hi all, Quota setting question I use the cyradm to set the quota of user.abc as 1. I have read the document that the unit of the quota setting is kbytes. So it is 10M from the above example. Am I right?? Now I send several huge messages to user.abc and make it over 1kbytes. I issue a command lq in cyradm and it shows. lq user.abc storage 11370/1 (113%) I wonder why I still can send mail to the user.abc which is out of quota. File Sharing question In the normal mail system, user a should not have permission to read user b's mail. Now I use imap to connect to the cyrus server as user a by an Outlook. Then I try to download the folder list and I surprised that I also download user b's all folders and can read his mail as well. How can I tune it back to the normal mail situation?? My system config. cyrus-imapd-1.6.24 openldap 1.2.7 cyrus-sasl-1.5.24 using ldap as authentication for cyrus. Best Regards, unplug