Email-to-Ticket Configuration Guide

Time to complete: 30 minutes

Difficulty: Intermediate

Prerequisites: Admin access, email account credentials


Overview

Valethon automatically converts incoming emails into support tickets. This guide covers configuring email sources using OAuth2 (Gmail, Microsoft 365) or traditional SMTP/IMAP.


Email Architecture

Valethon supports two email configurations:

TypeUse CaseRouting
System MailboxShared support inboxRoutes by sender domain
Company MailboxDedicated per-customerAll emails become tickets for that company

You can use both: company-specific mailboxes are processed first, then the system mailbox handles everything else.


Option 1: Gmail (OAuth2 + Gmail API)

Gmail integration uses OAuth2 for secure, password-free authentication.

Step 1: Create Google Cloud Project

Step 2: Configure OAuth Consent Screen

Step 3: Create OAuth Credentials

Step 4: Configure in Valethon

Step 5: Test the Connection


Option 2: Microsoft 365 (OAuth2 + Graph API)

Microsoft 365 integration uses the Microsoft Graph API.

Step 1: Register Azure AD Application

Step 2: Add API Permissions

Step 3: Create Client Secret

Step 4: Configure in Valethon


Option 3: IMAP/SMTP (Traditional)

For email providers that don't support OAuth2, use traditional IMAP.

Supported Providers

ProviderIMAP ServerPortSecurity
iCloudimap.mail.me.com993SSL
FastMailimap.fastmail.com993SSL
Zohoimap.zoho.com993SSL
GoDaddyimap.secureserver.net993SSL
CustomYour server993/143SSL/TLS

Configuration Steps

App-Specific Passwords

Many providers require app-specific passwords:


Domain-Based Routing

When using a system mailbox, Valethon routes tickets by sender domain.

Configure Domain Mapping

How Routing Works

Unmapped Domains

Emails from unmapped domains:


Email Processing Options

Processing Schedule

ModeFrequencyUse Case
ContinuousEvery 5 minutesHigh-volume support
ScheduledSpecific timesBusiness hours only
ManualOn-demandTesting/troubleshooting

Configure in Settings → Email Configuration → Schedule.

Ticket Creation Rules

SettingOptionsDefault
Default PriorityLow, Normal, High, UrgentNormal
Default Job TypeAny defined job typeSupport Request
Auto-assignSpecific tech, round-robin, noneNone
AttachmentsSave to ticket, ignoreSave

Thread Matching

Valethon matches replies to existing tickets using:

Matched replies become ticket notes, not new tickets.


Troubleshooting

Emails Not Converting to Tickets

OAuth Token Expired

Duplicate Tickets

Usually caused by:

Solution: Configure email rules to avoid duplicates, check thread matching settings.

Attachments Missing


Best Practices

Security

Organization

Monitoring


What's Next?

TopicGuide
Customize ticket templatesEmail Templates
Configure auto-responsesAuto-Reply Setup
Set up SLA trackingSLA Configuration

Last updated: January 2026