Skip to content

Instantly share code, notes, and snippets.

View mikepage's full-sized avatar
🌍
Online

Mike Pagé mikepage

🌍
Online
View GitHub Profile
# /usr/local/directadmin/custombuild/custom/dovecot/2.4/conf/mail_max_userip_connections.conf
mail_max_userip_connections = 100
remote 127.0.0.1 {
mail_max_userip_connections = 150
}
@mikepage
mikepage / imunify360-config
Last active November 26, 2025 16:04
Imunify360 optimal config for DirectAdmin with CSF uninstalled
# Admin contact
imunify360-agent config update '{"ADMIN_CONTACTS": {"emails": ["[email protected]"]}}'
# General config with CSF not installed (CSF integration false)
imunify360-agent config update '{"AUTO_WHITELIST": {"timeout": 1440}}'
imunify360-agent config update '{"CONTROL_PANEL": {"compromised_user_admin_notification": true, "generic_user_notifications": true}}'
imunify360-agent config update '{"CSF_INTEGRATION": {"catch_lfd_events": false}}'
# Malware scanning
imunify360-agent config update '{"MALWARE_SCANNING": {"detect_admin_tools": true, "notify_on_detect": true}}'
#!/bin/bash
for file in /etc/virtual/limit_*; do
usern=$(echo "$file"|cut -d '_' -f2)
# Skip limit_unknown
if [ "$usern" = "unknown" ]; then
continue
fi

Directadmin CSF uninstall

Custombuild

Set csf to no

da build set csf no
ddev mutagen reset && ddev config global --performance-mode=none && ddev config --performance-mode=none
# Delta Fiber
62.45.70.100
62.45.71.100

Reset Edgerouter X to factory defaults and connect to LAN network with IPv4 address range 192.168.1.1/24 configured. When the EdgeRouter X is reset to factory defaults, it is in a minimal, unconfigured state:

  • IP address: The router itself is accessible via 192.168.1.1 on eth0 only.
  • DHCP: Disabled. No devices will receive an IP address automatically.
  • Interfaces: Only eth0 has a static IP (192.168.1.1), all other interfaces are not configured.

SSH into Edgerouter X (use port 2222 for SSH) and update config, replace 192.168.1.254 with main router IP

# Replace EMAIL
doveadm force-resync -u EMAIL -f "*"
systemctl restart dovecot

Directadmin, add default ssh keys for new users

Create the custom scripts directory (if it doesn’t exist)

mkdir -p /usr/local/directadmin/scripts/custom

Create the user_create_post.sh script or update existing script when immunify360 is active

Install the required tools:

dnf install cloud-utils-growpart

Use growpart to extend the partition to the end of the disk:

growpart /dev/vda 4