Qpopper's Quota problem

Source: Internet
Author: User
Article Title: Qpopper's Quota problem. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Qpopper is the Open Source POP3 Server of QUALCOMM. The latest version is 4.0. This software is widely used on Solaris. The problem I encountered in practical application is that after the user's email quota is exceeded, the system administrator must manually intervene to expand the quota to continue receiving emails.
The cause of this problem is that the POP server needs to create a temporary file, and the file system where the file is created is in the same file system as the spool directory in the user's mailbox.


For Qpopper, the solution is to separate the two file systems, specify the switch during compilation, or set the switch in the configuration file.

Note that/usr/mail is also attached to/var/mail in Solaris. Therefore, we need to delete/usr/mail to make the system normal.

The following provides an alarm program for the disk quota. Write crontab to monitor your user email usage.


#! /Bin/sh

For I in '/usr/sbin/repquota-v/| awk' $2 ~ /\ +/{Print $1 }''
Do
(
#
Cat <MESSAGE
From: System Administrator sysadmin@freelamp.com
To: $ I @freelamp.com
Subject: Your mailbox is full! Receive your email!

Hello,

Your disk space is full and you will not be able to receive new emails after 7 days.
Please receive your email quickly.

See the attachment for your disk usage:

MESSAGE
Quota-v $ I
) |/Usr/lib/sendmail $ I
Done
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.