Version 1.24.3
Released: 2005-06-20
new
custom script: update_post.shScript to be run after DA updatese itself.
Just create the script in /usr/local/directadmin/scripts/custom/update_post.sh
If it exists during an update, then DA will call it.
new
custom script: dns_create_post.sh, dns_delete_post.shdns_create_post.sh
dns_delete_post.sh
domain=domain.com
is the only environmental variable. For details about the zone, use dns_write_post.sh
new
Option to disable webalizer and log rotationdirectadmin.conf
default (without anything in the directadmin.conf)
webalizer=1
rotation=1
Note, that if rotation is turned off, but webalizer is on, webalizer will be running on an active log.
new
ability to specify multiple email addresses during user creationability to specify multiple email addresses during user creation.
Will be comma separated. Recommend one space too, but doesn't matter 😉
eg:
user@domain.com, other@other.com, etc...
New regex in the javascript forms:
var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+(,s?([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+)*$/;
(yes, it's very nasty)
new
more API commandsEdit User Login Password
Backups
Mailing lists
Edit User Login Password:
CMD_API_PASSWD
method is to be POST only.
oldpass=oldpassword
passwd=newpass
passwd2=newpass
Update:
Newer DA versions also need:
options=yes
system=yes
ftp=yes
database=yes
to specify which of the system accounts to change.
Note that "Email" is part of the system=yes option.
- User Level Backups
CMD_API_SITE_BACKUP
method can be GET or POST.
list current available backup files
domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required)
create a backup
action=backup
domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required)
for the following items, include whichever ones you wish to include in the backup. The format is select0=<b>item</b>
, where you would use select1=<b>item2</b>
for the next item, etc.
- domain
- subdomain
- forwarder
- autoresponder
- vacation
- list
- emailsettings
- ftp
- ftpsettings
- database
See the Actual user backup page to see what each item does.
restore a backup
action=restore
domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required)
file=filename.tar.gz
Include the desired items using the same select0=item technique as above. Use the action=view command from below to see what items are actually available to restore.
view a backup file's contained items.
action=view
domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required)
file=filename.tar.gz
returns a list of selectable items (see the above list )
- Mailing Lists
CMD_API_EMAIL_LIST
method can be GET or POST
action=create
domain=domain.com
name=list (do not include @domain.com).
action=delete
domain=domain.com
select0=list
(select1=list2) ..etc..
action=add
domain=domain.com
name=list
type=digest or list (one or the other, whichever you are adding to).
email=bob@email.com (you can use comma sperated lists here)
action=view
domain=domain.com
name=list
returns: s0=email@addr.com&s1=subscriber2@add.com&d0=digest@other.com..etc..
action=modify
domain=domain.com
name=list
this will output a large number of settings.. too many to list here. Just run it to see what you get.
action=delete_subscriber or action=delete_subscriber_digest
domain=domain.com
name=list
select0=email@domain.com
(select1=email2@domain.com, other@email.com)..etc..
action=save
domain=domain.com
name=list
you'll nee to also include all of the parameters outputted from the action=modify result. Make any change with them, then save them.
domain=domain.com
(with nothing else)
returns a list of mailling lists in the format:
list=1:2&list2=4:2..etc...
where with 1:2 , the 1 is the number of subscribers, and the 2 is the number of digest subscribers.
fixed
log rotation numnber of logs to keepDA leave the number of logs specified in the admin settings in the logs directory after rotation. This fix will leave that number in the logs directory for each domain, each subdomain (eg, 1 domain, 1 subdomain would leave 10 logs if the limit was set to 5 logs in the admin settings).
fixed
debian services controlDA is unable to control the services but it works from ssh. Likely a piping issue.
fixed
suspend restored accountssuspend accounts after restore that were suspended before the backup.
https://forum.directadmin.com/posts/49540
Will only suspend if the user account was just created.
(unrelated note for john: manual domain suspension set active=no)
fixed
cryptchange salt to begin with "$1$salt$" instead of just "salt".
Ensures that whole password is used instead of first 8 chars.