Version 1.26.4

Released: 2006-03-24

crontab user template new

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:

/usr/local/directadmin/data/templates/custom/cron_template.txt

A sample layout would be:

SHELL=/bin/sh
MAILTO=|EMAIL|
|CRONS|

All tokens:

USERNAME
EMAIL
CREATOR
HOME
CRONS

Magic token that dumps all other tokens and their values. new

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:

|DUMPTOKENS|

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.

new tokens in the user_limit.txt email new

SUSPENDATLIMIT=ON or OFF
LANG=en  (or whatever languages is set to for that user).

CMD_API_DNS_ADMIN & CMD_API_DNS_CONTROL return url encoded zone new

Currently:

CMD_API_DNS_CONTROL?domain=domain.com

CMD_API_DNS_ADMIN?domain=domain.com

Both return the raw zone file.

This feature will allow you to use:

CMD_API_DNS_CONTROL?domain=domain.com&urlencoded=yes

CMD_API_DNS_ADMIN?domain=photosbymark.com&urlencoded=yes

to give a far easier parseable output.

Output is 1 line per type. Url encoded.

Sample output:

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=

ftp_create_post.sh, ftp_modfiy_post.sh, ftp_delete_post.sh new

custom script for ftp accounts:

/usr/local/directadmin/scripts/custom/*

  • ftp_create_post.sh
  • ftp_modify_post.sh
  • ftp_delete_post.sh

Environmental vars for:

  • ftp_create_post.sh
  • ftp_modify_post.sh
username=da username
user= ftp username, eg: "fred"
domain=domain.com
login=if IP is owned or system account: "fred"  shared: "fred@domain.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:

ftp_delete_post.sh

username=da username
user= ftp username, eg: "fred"
domain=domain.com
login=if IP is owned or system account: "fred"  shared: "fred@domain.com"
file=file password is stored in /etc/proftpd.passwd or /usr/local/directadmin/data/users/username/ftp.passwd

tool to monitor partition disk usage (SKINS) new

Will monitor a list of partitions, default will be:

/

/var

/home

/usr

/tmp

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:

partition_check.list

and contains a list of partitions.

Will also be a message template for the warning.

partition_check_message.txt

option to check minutely or daily. (each time the dataskq is run, or when the tally is run)

in the directadmin.conf:

check_partitions=0|1|2

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)

SKINS:

admin/admin_settings.html

add:

<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: &nbsp;<input type=radio name=check_partitions value="1" |PARTMINUTECHECKED|>Minute &nbsp;<input type=radio name=check_partitions value="2" |PARTDAYCHECKED|>Day &nbsp;<input type=radio name=check_partitions value="0" |PARTNEVERCHECKED|>Never
</td>
</tr>

ability to change the ftp path/option without needing the old password new

Related to:

http://www.directadmin.com/forum/showthread.php?s=&postid=70123#post70123

user_password_change_pre.sh new

to compliment

user_password_change_post.sh

a non-zero return value aborts the password change.

backup/restore domain pointer dns zones fixed

/var/named/domain.com.db files for domain poitners were not being created during a restore.

change domain name with clustering loop fixed

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.

CMD_API_DNS_ADMIN

set the user quota to unlimited before dovecot conversion fixed

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.

remove reseller cron backups after reseller removed fixed

The:

echo -e "action=backup&id=1&owner=resellername"

crons exist after the reseller has been removed.

Workaround:

Edit:

/usr/local/directadmin/data/admin/backup_crons.list

remove the entry, and run:

crontab -u diradmin -e

to remove the entry as well.

Don't set installed=yes if a plugin's install.sh return non-zero value fixed

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".

Include webmail data in quotas, and delete fixed

Count the user's /var/www/html/webmail/tmp/* data towards his total usage.

Also delete the data when the domain is deleted.

Last Updated: