Just to make sure I am not leading you to an incorrect answer, I just re-installed Gutsy.
I used Falko's guide with following changes:
During setup installed:
LAMP server
Openssh server
edited /etc/hosts
1 entry for localhost.localdomain localhost
1 entry for server.domain.com server
1 entry for mail.domain.com mail (added as sub-domain in DNS)
edited /etc/network/interfaces
eth0 for server
eth0:0 for mail
restarted network
/etc/init.d/networking restart
did:
ifconfig (made sure virtual interface was running)
reset the hostname:
echo server.domain.com > /etc/hostname
/etc/init.d/hostname.sh start
hostname
hostname -f
edited /etc/apt/sources.list
commented out the "deb: cdrom" line
did:
apt-get update
apt-get upgrade
Changed quota size to 25 MB
CREATE TABLE users (
email varchar(80) NOT NULL,
password varchar(20) NOT NULL,
quota INT(10) DEFAULT '10485760',
PRIMARY KEY (email)
) TYPE=MyISAM;
to:
CREATE TABLE users (
email varchar(80) NOT NULL,
password varchar(20) NOT NULL,
quota INT(10) DEFAULT '26214400',
PRIMARY KEY (email)
) TYPE=MyISAM;
Changed:
apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 unzoo libnet-ph-perl libnet-snpp-perl libnet-telnet-perl nomarch lzop pax
to:
apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 unzoo libnet-ph-perl libnet-snpp-perl libnet-telnet-perl nomarch lzop pax lha arj unrar cabextract
Changed for 25 MB quota:
INSERT INTO `users` (`email`, `password`, `quota`) VALUES ('sales@example.com', ENCRYPT('secret'), 10485760);
to:
INSERT INTO `users` (`email`, `password`, `quota`) VALUES ('sales@example.com', ENCRYPT('secret'), 26214400);
created user1, user2, user3, user4, and postmaster in mail database
sent differnt sized messages to each user
did:
cd /home/vmail/domain.com
find user1
find user2
find user3
find user4
no user/maildirsize file appeared for any of the users
did:
/usr/local/sbin/quota_notify
result:
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
--
domain
made the "virtual_mailbox_extended = yes" to "virtual_maildir_extended = yes" change in /etc/postfix/main.cf
did:
/etc/init.d/postfix reload
re-sent the emails to the users
re-issued the
find command for each user
now user/maildirsize shows up in all the users
did (again):
/usr/local/sbin/quota_notify
result this time
DAILY QUOTA REPORT:
----------------------------------------------
| % USAGE | ACCOUNT NAME |
----------------------------------------------
| 4 |
user4@domain.com |
---------------------------------------------
| 3 |
user2@domain.com |
---------------------------------------------
| 1 |
user1@domain.com |
---------------------------------------------
--
domain
user3 is still under 1% so he is not showing in the report.
Recent comments
11 hours 57 min ago
17 hours 1 min ago
21 hours 26 min ago
23 hours 15 min ago
1 day 13 hours ago
1 day 13 hours ago
1 day 18 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 3 hours ago