DirectAdmin directadmin.conf – Complete Reference Guide to All Configuration Variables

The directadmin.conf file is the core configuration file of DirectAdmin. Any variable missing from this file uses an internal default value, and adding a variable overrides that default. This guide provides a complete, categorized reference to the most important configuration variables, including security, SSL, backups, email, DNS, performance, and general system behavior.

Configuration Variablesdirectadmin.conf

~3 min read · Updated Mar 1, 2026

1. Introduction


The file /usr/local/directadmin/conf/directadmin.conf contains the primary configuration settings for DirectAdmin. If a variable is not present in this file, DirectAdmin uses its internal default value. Adding a variable overrides the built in default.

Modify a variable from the command line:


da config-set variable_name value
systemctl restart directadmin

Example:


da config-set letsencrypt 1
systemctl restart directadmin
---

2. Security & Authentication


VariableDefaultDescription
bruteforce1Enable/disable Brute Force Monitor
brutecount20Failed login attempts before blocking IP
brute_dos_count100Invalid login requests before blocking
user_brutecount30Attempts on a single user before admin alert
ip_brutecount30Attempts from one IP before admin alert
clear_blacklist_ip_time86400Auto unblock time for blacklisted IPs (0 = never)
hide_brute_force_notifications1Hide brute force alerts from Message System
twostep_auth1Enable Two Step Authentication (2FA)
twostep_auth_discrepancy1Allowed time drift for 2FA (each unit = 30s)
twostep_auth_trust_days30Trusted device duration after 2FA login
login_keys1Enable Login Keys
login_keys_notify_on_creation1Notify admin when a Login Key is created
allow_foreign_key0Allow session keys from non local IPs
---

3. SSL & Let's Encrypt


VariableDefaultDescription
letsencrypt1Enable Let's Encrypt
acme_server_cert_enabled0Auto issue SSL for server hostname
acme_server_cert_provider-Provider: letsencrypt / zerossl / staging
acme_server_cert_account-Email for ACME account
acme_server_cert_additional_domains-Additional SAN domains
admin_ssl_cert_on_create1Auto issue SSL on domain creation
admin_ssl_replace_all_expired_invalid0Auto replace expired/invalid certs
admin_ssl_poll_frequency5m:15m:30m:1h:12h:1dCertificate check frequency
certificate_common_name_with_www0Use www.domain.com as CN
---

4. Backup & Restore


VariableDefaultDescription
backup_gzip2Compression: 0=tar, 1=gzip, 2=zstd
incremental_ftp1Incremental FTP uploads
backup_tmpdir/home/tmpTemporary backup directory
skip_domains_in_backups0Skip /home/user/domains
skip_imap_in_backups0Skip IMAP mail
skip_hometargz_in_backups0Skip home.tar.gz
backup_nice19Backup process priority
backup_hard_link_check1Check hard links before backup
---

5. Email & Spam


VariableDefaultDescription
mail_sni1Enable SNI for Exim/Dovecot
max_per_email_send_limit200Daily outgoing limit per mailbox
max_user_send_limit-1Max limit settable by reseller
default_pop_quota50Default mailbox quota (MB)
spam_inbox_prefix1Use INBOX.spam instead of Junk
parse_php_mail_log_at_limit1Log PHP mail() calls
---

6. DNS & Networking


VariableDefaultDescription
dnssec1Enable DNSSEC
allow_dns_underscore1Allow underscores in DNS records
default_ttl14400Default DNS TTL
ipv61Enable IPv6
add_domain_to_domainips0Manage domainips for outgoing mail IP
---

7. Performance & Logging


VariableDefaultDescription
dataskq_run_interval1mTask queue execution interval
dataskq_max_instances0Max concurrent dataskq processes
timeout60Max request execution time
errorlog/var/log/directadmin/error.logError log path
systemlog/var/log/directadmin/system.logSystem log path
---

8. Other Important Settings


VariableDefaultDescription
force_ssl0Force HTTPS for all users
hsts-1Enable HSTS for login page
x_frame_optionssameoriginClickjacking protection
languageenDefault panel language
max_username_length16Maximum username length
allow_numeric_username0Allow numeric-only usernames
allow_upper_case_username0Allow uppercase usernames

Written & researched by Dr. Shahin Siami

Related Articles

Email Client Configuration & Dovecot Quota/Monitoring Guide for DirectAdmin Users

This guide explains how to configure popular email clients (iPhone Mail, Thunderbird, Gmail POP/SMTP), enable Dovecot LMTP quota warnings, and check the last login time for all email accounts on a DirectAdmin server. It includes step by step instructions, recommended IMAP/SMTP settings, and useful administrative scripts.

Continue

Troubleshooting Dovecot in DirectAdmin – Fixing IMAP Errors, Authentication Issues, and SSL Certificate Checks

Dovecot is the IMAP/POP3 server used by DirectAdmin. Sometimes users encounter errors such as “Connection dropped by IMAP server” or “unknown user” during authentication. This guide explains how to fix corrupted Dovecot indexes, understand authentication logs, hide unnecessary warnings, and manually inspect SSL certificates on IMAP ports 143 and 993.

Continue

DNS Troubleshooting in DirectAdmin – When named is Running but Domains Do Not Resolve

Sometimes the named (BIND) service runs normally, yet DNS queries fail or domains do not resolve from outside. This guide provides a complete troubleshooting workflow for checking named listeners, firewall rules, named.conf configuration, DNS propagation issues, subdomain problems, resolv.conf errors, and common Apache/Nginx misconfigurations.

Continue

Managing DNS Records in DirectAdmin – Complete Practical Guide for Administrators

DirectAdmin provides a powerful DNS management system that allows administrators to control TTL values, create SRV records, enable DNSSEC, manage subdomain delegation, automate TLSA records, and perform mass DNS updates. This guide explains all essential DNS operations in DirectAdmin with real-world examples and best practices.

Continue

DNS and Nameservers in DirectAdmin – Complete, Practical, and Professional Guide

DNS is the backbone of the internet, responsible for translating domain names into IP addresses. DirectAdmin allows you to create private nameservers (ns1/ns2), manage DNS zones, configure DNS clustering, use external DNS, and troubleshoot common issues. This guide provides a complete, clear, and practical explanation of DNS concepts and their implementation in DirectAdmin.

Continue

CustomBuild in DirectAdmin – Complete Guide to Installation, Updates, Configuration, and Advanced Customization

CustomBuild is DirectAdmin’s primary software management system. It installs, updates, configures, and rebuilds essential services such as Apache, Nginx, PHP, MariaDB/MySQL, Exim, Dovecot, FTP servers, and more. Because most components are compiled from source, CustomBuild offers exceptional flexibility, fast access to new versions, and optimized performance.

Continue