Tips for fixing common problems….-Server replied: 421 Unexpected failure, please try later — If Imap returns this error, then there might be something wrong with the smtp server.
server, Check all the /var/log/exim/mainlog (or /var/log/exim/exim_mainlog).
If Errors seen before:
failes to open /etc/virtual/pophosts for linear search: No such file or directory
That would also imply that da-popb4smtp is not running, so popb4smtp would not work. To start it, run:
service da-popb4smtp start
Disk Usage is showing 0.00 or is too low
*** Please Note: If there you are running a VPS with a “simfs” file system, quotas usually can not be enabling with normal means.
Contact your VPS provider to enable quotas for you.
to see your partitions.
If there you have a /home partition, then your quota_partition value will be /home.
If there you have no /home partition, then your quota partition will likely be /.
In some cases, you may have a sybolic link: /home -> /usr/home, in which case your quota_partition will be /usr.
Set the partition value here, as needed:
DirectAdmin relies on the system quotas to return a value for how much space is being used. DirectAdmin will run
Where /home is the quota_partition value set in the /usr/local/directadmin/conf/directadmin.conf file (eg, /home, / or /usr).
The command should output a large list of numbers, eg
[root@server]# /usr/sbin/repquota /home
*** The Report for user quotas on device /dev/hda3
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
root — 417796 0 0 7446 0 0
nobody — 4 0 0 1 0 0
bin — 56880 0 0 510 0 0
majordomo — 8 0 0 2 0 0
diradmin — 8 0 0 2 0 0
admin — 200 0 0 44 0 0
user123 — 100 0 0 22 0 0
user456 — 100 0 0 22 0 0
If the “used” column is not showing anything, or users are not in the list, then you will need to run the quota-check program:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
If there are getting errors and no output is displaying for the repquota command, you will need to check your /etc/fstab file to make sure that it contains the rw,userquota,groupquota line beside the partition that is using the quotas.
***Very Important***: On Linux (Redhat/Debian), it’s usrquota,grpquota, and on FreeBSD it’s userquota,groupquota.
Sample /etc/fstab (do not make yours look identical if it’s different, this is one example from a specific OS):
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1a / ext3 rw,usrquota,grpquota 1 1
/dev/ad0s1e /tmp ext3 rw 2 2
proc /proc procfs rw 0 0
In this case, the quota_partition is /. The quota partition should be the partition that holds your users. Generally, this will be one of /home, / or /usr.
Or there you may consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
In that case instead of “,usrquota,grpquota”, add “,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0” to your fstab file.
Once the repquota program is returning a normal value, then you can run the tally to get the correct usage to show up in DirectAdmin:
echo “action=tally&value=all” >> /usr/local/directadmin/data/task.queue
This task.queue command will get picked up by the dataskq binary.
It calls the repquota command and dumps it into /home/tmp/quota-dump.
Check /var/log/directadmin/errortaskq.log for any errors with this command.
Running the tally manually for a User can also help with debugging these issues.
Information for a Support Request
If you are completely confused and are going to be contacting some support department about the issue, run these commands and paste them the full output from them:
/usr/local/directadmin/directadmin c | grep quota_partition
/usr/local/directadmin/directadmin c | grep use_xfs_quota
repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
ls -lad /home/tmp
ls -la /home/tmp