How osTicket Actually Moves Mail
osTicket handles email in two separate directions, and mixing them up is the most common reason delivery "doesn't work." Inbound mail is how incoming messages become tickets: osTicket either fetches messages from a mailbox using IMAP or POP3, or receives them through a piped script. Outbound mail is how osTicket sends autoreplies, staff alerts, and user notifications. These two paths use completely different settings, different credentials, and fail for different reasons. When a customer says "osTicket email is broken," the first diagnostic step is deciding whether tickets are not being created (inbound) or notifications are not arriving (outbound).
On a Managed Cloud Shared Hosting account, you create the mailbox itself in DirectAdmin under E-Mail Accounts (for example support@yourdomain.com). That mailbox lives on the same server stack, served by the local mail system, and osTicket connects to it like any external client would. Because you are an unprivileged hosting user, you cannot alter the mail transport agent, open additional ports, or change server-wide authentication policy. Everything you configure happens inside the osTicket Admin Panel, inside DirectAdmin's email and DNS sections, and in the PHP environment for the account.
The outbound side is where shared hosting introduces its own behavior. osTicket can send through PHP's native mail function or through authenticated SMTP. Native mail() frequently produces messages that fail SPF or arrive with a mismatched envelope sender, which lands them in spam or gets them rejected outright. Authenticated SMTP against your own DirectAdmin mailbox produces a clean, aligned sender identity that downstream providers trust. That single choice resolves a large share of "my customers never got the autoreply" tickets.
Configuring Authenticated Outbound SMTP
Start by creating a dedicated sending mailbox in DirectAdmin under E-Mail Accounts, such as support@yourdomain.com, and set a strong password. Note the credentials; osTicket needs the full email address as the username, not just the local part.
In osTicket, go to Admin Panel → Emails → Emails, then open the address you want to send from (or add it with Add New Email). On the email's settings, locate the Outgoing Email via SMTP section and enable it. Use the following values, which match the local mail stack on a LiteSpeed/DirectAdmin server:
Hostname: mail.yourdomain.com
Port: 465
Encryption: SSL
Authentication: enabled
Username: support@yourdomain.com
Password: (the mailbox password)If the SSL connection on 465 is refused or the certificate hostname does not match your domain, switch to the server's primary hostname that the certificate actually covers, or use STARTTLS on port 587 instead. Port 587 with TLS is the more forgiving choice when a domain-level SSL certificate has not been issued for the mail. subdomain yet. Avoid plain port 25 for authenticated submission; it is intended for server-to-server transport and is commonly throttled or blocked outbound on shared plans.
Set the System Default Email under Admin Panel → Settings → Emails to this same address so that all system-generated notifications inherit the authenticated route. The default alert email and the default MTA both matter here: if the system default still points at an address using native PHP mail, staff alerts will take the weaker path even after you configure SMTP on the support address.
osTicket does not expose per-site SMTP timeouts, but shared hosting can impose connection limits. If sending stalls, keep the hostname pointed at the local mail.yourdomain.com rather than an external relay, because loopback delivery avoids outbound firewall restrictions entirely.
Inbound Fetching, the Email Cron, and Piping
For messages to become tickets, osTicket must pull them from the mailbox. In the same email entry under Admin Panel → Emails → Emails, open the Fetching Email via IMAP/POP section and enable it:
Hostname: mail.yourdomain.com
Port: 993
Protocol: IMAP (with SSL)
Username: support@yourdomain.com
Password: (the mailbox password)
Fetch Frequency: 5 minutes
Emails Per Fetch: 20IMAP on 993 is preferable to POP3 because it lets osTicket mark messages as read and optionally move them to a folder rather than deleting them, which makes troubleshooting far easier. Click Save Changes and watch for a green confirmation; osTicket validates the login immediately, so a red error here means the credentials or port are wrong before you even involve the cron.
Fetching only runs when osTicket's email cron executes. Nothing happens automatically just because fetching is enabled. In the DirectAdmin Cron Jobs section, add a job that calls the command-line cron script using the PHP binary. A reliable form on CloudLinux is:
*/5 * * * * /usr/local/bin/php -q /home/USER/domains/yourdomain.com/public_html/support/api/cron.phpReplace USER and the path with your actual account path shown in DirectAdmin's File Manager. Running under PHP CLI avoids web timeouts and uses the PHP version you selected in MultiPHP / PHP Selector. Confirm the selected version includes the IMAP extension; in the DirectAdmin PHP Selector, enable the imap extension for your domain, otherwise fetching silently fails with a connection error even though credentials are valid. A quick way to verify is to create phpinfo.php temporarily in public_html and confirm an IMAP section appears, then delete the file.
Piping (routing incoming mail directly to pipe.php) is the alternative to polling and gives instant ticket creation, but it requires mail-system forwarding that unprivileged users generally cannot configure on shared hosting. Stick with IMAP fetching plus a five-minute cron; the small delay is an acceptable tradeoff for a setup you fully control. If tickets still are not created, check osTicket's own log under Admin Panel → Dashboard → System Logs, and the account's error_log in the osTicket directory, for authentication or extension messages.
DNS Alignment and Avoiding the Spam Folder
Authenticated SMTP solves the connection, but deliverability depends on DNS records that tell receiving servers your messages are legitimate. Manage these in DirectAdmin under DNS Management for the domain. Three records matter.
First, SPF. Ensure a TXT record authorizes the server to send for your domain. DirectAdmin usually creates one automatically; verify it resembles:
v=spf1 a mx include:yourdomain.com ~allIf you kept the hosting default, it will reference the server's sending identity. Do not create two SPF records; a domain must have exactly one, so merge mechanisms into a single line if needed.
Second, DKIM. In DirectAdmin, DKIM signing is typically toggled per domain under the email or DNS area; when enabled, a default._domainkey TXT record is published. Confirm it exists in DNS Management. DKIM is what survives forwarding and gives the strongest authentication signal.
Third, DMARC. Add a TXT record at _dmarc.yourdomain.com to tell receivers how to treat failures:
v=DMARC1; p=none; rua=mailto:postmaster@yourdomain.comStart with p=none to monitor without risking legitimate mail, then tighten to quarantine once SPF and DKIM pass consistently. The alignment goal is that the From address osTicket uses (support@yourdomain.com), the SMTP envelope sender, and the DKIM signing domain all share the same domain. That is exactly why sending through a local DirectAdmin mailbox beats native PHP mail: the identity is consistent and signed.
After changes, send a test ticket from an external address and reply from staff. Inspect the received message's headers for spf=pass, dkim=pass, and dmarc=pass. If a provider still files messages as spam despite passing checks, warm the address gradually and keep notification volume reasonable, since a brand-new sending domain has no reputation yet. With SMTP authenticated, IMAP fetching driven by a working PHP CLI cron, and SPF, DKIM, and DMARC aligned, osTicket's two mail paths both operate cleanly within the limits of a shared hosting account.