Search K
Appearance
Appearance
This script is called before an autoresponder is deleted.
This hook is for autoresponder creation and modification.
This script is called before/after an email user's password is changed.
passwd is encrypted.directadmin.conf value:user_can_set_email_limitThis hook is called before/after the virtual email is created.
passwd is encryptedThis hook script is ran before/after an email account is removed.
This hook is called before/after the filter file at /etc/virtual/domain.com/filter is modified.
/etc/virtual/domain.ltd/filter.conf contents for each entry: value is foundtype=size&value=100These custom scripts are used for creating, setting, and deleting forwarders.
Note that this will also be called when the catch-all is set.
username: DA account name file: domain aliases file (/etc/virtual/domain.com/aliases) user: forwarder name value: (forwarder_create_(pre|post).sh only) address to forward to domain: domain for which forwarder is created
Hook scripts used when the User sets a vacation message (creation or alteration).
Hook script used after a mailing list is modified
Create directory
mkdir -p /usr/local/directadmin/scripts/custom/mailing_list_save_postAnd place your hook script in that directory. It can be named anything. For example: /usr/local/directadmin/scripts/custom/mailing_list_save_post/myhook.sh
The environment values passed will be the same as the tokens that are set in the template: /usr/local/directadmin/data/templates/list.config
These tokens correspond to the similarly named option fields in DirectAdmin's mailing list page. Note that all of these options are specific to majordomo. If any descriptions are missing then further documentation should be looked for in documentation related to majordomo specifically.
Most of the descriptions found here were gathered from the following sources: utas.edu.ausilo.tips
New hook script, called after the dkim_create.sh has finished running, and was successful.
Use exit 0; for success, and exit with a non-zero for error.
The result will be added to the output regardless, but only shown if there is an error.
This script is called after a zone is signed, but before any clustering sends it off to the slave DNS servers.
If all is well, and you want the clustering (if enabled) to proceed, use exit code 0.
If there is an error and you need it to abort the clustering push, then use any non-zero value so that the signing function call will abort after the local file is signed, but before the clustering push happens.
cluster=1 AND it's a local trigger. Remote slaves get the raw copy anyway, so do_cluster=0 might only be seen if directadmin.conf cluster=0.This script is called before spamassassin/rspamd is disabled for domain.
If rspamd is used, the hook script is aptly named rspamd_destroy_pre.sh.
This hook is run before/after a user modifies spamassasin (rspamd) settings.
If rspamd is used, the hook is aptly named rspamd_edit_(pre|post).sh.
required_hits is set to custom... custom spam score thresholdrewrite_subject=1This hook is related to the directadmin.conf value:parse_php_mail_log_at_limit.
It is run after a spamming script mode bits are set to 0 with chmod 000.
Add the following to spam_script_chmod_0_post.sh, chmod to 700, and then chown to diradmin:
#!/bin/sh
mv ${script} ${script}.${username}.spam
RET=$?
exit $RET