How to Automate Notifications Using AdminCraft Emailer In modern server administration, staying informed about system health, user activity, and security events is critical. Manually checking logs is inefficient and opens the door to missed alerts. AdminCraft Emailer provides a streamlined, automated solution to deliver real-time server notifications directly to your inbox. This guide covers how to install, configure, and automate your first notification workflow using this powerful utility. Prerequisites
Before starting the setup process, ensure you have the following components ready:
AdminCraft Console Access: Administrative privileges on your server panel.
SMTP Server Details: Hostname, port number, and login credentials from your email provider.
Target Email Addresses: A list of destination mailboxes for your automated alerts. Step 1: Install the AdminCraft Emailer Extension
The installation process integrates the emailer utility directly into your core AdminCraft dashboard.
Navigate to the AdminCraft Marketplace or Extensions tab within your panel. Search for AdminCraft Emailer in the search bar.
Click Install and wait for the repository download to complete.
Restart your AdminCraft control panel daemon to apply the changes. Step 2: Configure SMTP Server Connections
To send external emails, AdminCraft Emailer must connect securely to an outbound mail server.
Open the AdminCraft dashboard and locate the new Emailer Config section under system settings.
Enter your SMTP Host (e.g., ://gmail.com or ://office365.com).
Set the Port to 587 for TLS encryption or 465 for SSL encryption.
Input your full sending email address in the Username field and provide the corresponding password or App Password.
Click Save Settings, then select Send Test Email to verify the connection. Step 3: Define Your Notification Triggers
Triggers tell AdminCraft Emailer exactly when an email should be generated and sent.
Navigate to the Triggers & Rules submenu within the Emailer interface.
Click Create New Trigger and assign a clear name, such as High CPU Alert.
Choose a system event type from the dropdown menu, such as Resource Metric Threshold, User Login Event, or Backup Completed.
Define the specific condition value (e.g., CPU Usage > 90% for 5 minutes). Step 4: Create the Email Template
Dynamic templates allow you to insert real-time server data directly into the subject lines and bodies of your emails.
Scroll down to the Action or Template block inside your newly created trigger.
Write a concise subject line utilizing variables, for example: [Alert] Server {server_name} - High CPU Warning. Draft the email body using standard markdown or HTML.
Insert variables like {timestamp}, {current_usage}, and {active_processes} to give your notifications actionable context. Assign the recipient email address in the To: field. Step 5: Test and Activate the Automation
Validating your workflow ensures that your automation handles live incidents reliably without flooding your inbox.
Set the trigger condition temporarily to a low threshold to force an execution (e.g., CPU Usage > 1%).
Trigger the event by performing normal operations on your server.
Check your destination inbox to confirm the email arrives promptly and displays variables correctly.
Leave a Reply