newcrontab user template
template file for user crontabs. Allows admins to add header/environmental variables for things like email addresses, etc.
Absence of the template will default DA to the current method of adding cronjobs.
Create the template in:
A sample layout would be:
SHELL=/bin/sh MAILTO=|EMAIL| |CRONS|
USERNAME EMAIL CREATOR HOME CRONS
newMagic token that dumps all other tokens and their values.
In all field that can be tokenized, there will be several tokens with certain values that a person can use to be tokenized. Apart from hunting down the documentation, there wasn't a simple way to find out all of the tokens that he can use.
The magic token called DUMPTOKENS will be available in all places that can be tokenized: templates, skins, welcome messages, default index.html files, etc (almost anywhere).
If you add:
Then it will replace that token with all tokens, values in the following format(example):
username=bob home=/home/bob domain=domain.com
This token is really designed only for debugging/devlopment puposes.
newnew tokens in the user_limit.txt email
SUSPENDATLIMIT=ON or OFF LANG=en (or whatever languages is set to for that user).
newCMD_API_DNS_ADMIN & CMD_API_DNS_CONTROL return url encoded zone
Both return the raw zone file.
This feature will allow you to use:
to give a far easier parseable output.
Output is 1 line per type. Url encoded.
A=fpdomain%2Ecom%2E=%31%39%32%2E%31%36%38%2E%30%2E%32&ftp=%31%39%32%2E%31%36%38%2E%30%2E%32&localhost=%31%39%32%2E%31%36%38%2E%30%2E%32&mail=%31%39%32%2E%31%36%38%2E%30%2E%32&pop=%31%39%32%2E%31%36%38%2E%30%2E%32&www=%31%39%32%2E%31%36%38%2E%30%2E%32 NS=ns%31%2Esteve%2Ecom%2E=fpdomain%2Ecom%2E&ns%32%2Esteve%2Ecom%2E=fpdomain%2Ecom%2E MX=mail=%31%30 CNAME= PTR= TXT=fpdomain%2Ecom%2E=%22v%3Dspf%31%20a%20mx%20ip%34%3A%31%39%32%2E%31%36%38%2E%30%2E%32%20%3Fall%22 AAAA= SRV=
newftp_create_post.sh, ftp_modfiy_post.sh, ftp_delete_post.sh
custom script for ftp accounts:
Environmental vars for:
username=da username user= ftp username, eg: "fred" domain=domain.com login=if IP is owned or system account: "fred" shared: "email@example.com" passwd=plaintext pass. If ftp_modify_post.sh this may be blank for root update only. gecos=account type (system, ftp, etc.. can probably ignore this field) root= the document root path for the account file=file password is stored in /etc/proftpd.passwd or /usr/local/directadmin/data/users/username/ftp.passwd
Environmental vars for:
username=da username user= ftp username, eg: "fred" domain=domain.com login=if IP is owned or system account: "fred" shared: "firstname.lastname@example.org" file=file password is stored in /etc/proftpd.passwd or /usr/local/directadmin/data/users/username/ftp.passwd
newtool to monitor partition disk usage (SKINS)
Will monitor a list of partitions, default will be:
if any of those partitoins doesn't actually exist on your system, it won't be checked.
List will be in the templates directory, ability to copy it to "custom" to add/remove your own partitions. File is called:
and contains a list of partitions.
Will also be a message template for the warning.
option to check minutely or daily. (each time the dataskq is run, or when the tally is run)
in the directadmin.conf:
0 is off
1 is minutely
2 is daily
Default with nothing set it 2 (daily).
Thereshold (in percent):
partition_usage_threshold=95 (95 is the default is nothing is set)
If the usage of a given partition exceeds the partition_usage_threshold, an email is sent to all admins. This email is only sent once per day if the usage is not reduced or settings changed. (message time history stored in admin.conf)
<tr> <td class=list> Warn Admin's at <input type=text name=partition_usage_threshold size=2 value="|PART_THRESH|">% partition usage </td> <td class=list> Check Every: <input type=radio name=check_partitions value="1" |PARTMINUTECHECKED|>Minute <input type=radio name=check_partitions value="2" |PARTDAYCHECKED|>Day <input type=radio name=check_partitions value="0" |PARTNEVERCHECKED|>Never </td> </tr>
newability to change the ftp path/option without needing the old password
a non-zero return value aborts the password change.
fixedbackup/restore domain pointer dns zones
/var/named/domain.com.db files for domain poitners were not being created during a restore.
fixedchange domain name with clustering loop
If you have 2 DA servers, each pointing to each other with dns clustering (multiserver), when a domain name is changed at the User level, the remote server will call back to this server and delete the zone before the local one gets to rename it. This becaus the local server deletes and re-adds the zone on the remote machine, but fails to tell it that "this is with regards to clustering so dont call it to your own cluster".
Fix will include a flag to mention to the remote box that it's with regards to clustering, thus the remote box won't call back to delete the zone.
fixedset the user quota to unlimited before dovecot conversion
During the conversion of emails, if the mbox inbox file is larger than the available free space for the user, the conversion will fail.
This will allow a temporary upgrade of the disk quotas to unlimited during the conversion. Once done, it will return the quota to the Users specified setting.
fixedremove reseller cron backups after reseller removed
echo -e "action=backup&id=1&owner=resellername"
crons exist after the reseller has been removed.
remove the entry, and run:
crontab -u diradmin -e
to remove the entry as well.
fixedDon't set installed=yes if a plugin's install.sh return non-zero value
Don't set installed=yes if a plugin's install.sh return non-zero value.
If non-zero is returned, plugin is not set to "installed".
fixedInclude webmail data in quotas, and delete
Count the user's /var/www/html/webmail/tmp/* data towards his total usage.
Also delete the data when the domain is deleted.