Send via SMTP
Connect your application or email client to Taifa Mail using standard SMTP credentials.
SMTP lets you send email through Taifa Mail from any application or email client that supports outbound SMTP.
Generate SMTP credentials
- Go to Settings -> SMTP Credentials.
- Click Create and pick one of your verified domains. SMTP credentials can only be created for a domain whose status is verified.
- Taifa Mail generates a username and a password. The username is derived automatically from your account and the domain (it looks like
a1b2c3d4@yourdomain.com); you do not choose it. - Copy the password. It is shown only once.
A domain can have one active SMTP credential at a time. Requesting a second for the same domain returns a conflict; delete the existing one first.
Store your SMTP password securely. You cannot retrieve it after creation. If you lose it, delete the credential and create a new one. Deleting a credential immediately revokes SMTP access for that username.
SMTP settings
The create-credential response returns the exact host and port to use. The standard values are:
| Setting | Value |
|---|---|
| Host | mail.govconnect.ke |
| Port | 587 |
| Encryption | STARTTLS |
| Authentication | Username + Password |
| Username | The generated SMTP credential username |
| Password | The SMTP credential password (shown once at creation) |
Code examples
Nodemailer (Node.js)
Python (smtplib)
Go (net/smtp)
PHP (PHPMailer)
Thunderbird
- Open Account Settings → Outgoing Server (SMTP) → Add.
- Enter the following:
- Server Name:
mail.govconnect.ke - Port:
587 - Connection Security: STARTTLS
- Authentication Method: Normal password
- User Name: Your SMTP credential username
- Server Name:
- Click OK and enter your SMTP password when prompted.
Gmail "Send as"
Gmail can send from an address on your verified domain through the relay via Settings → Accounts and Import → Send mail as. In Gmail's SMTP dialog, use server mail.govconnect.ke, port 587, your SMTP credential username and password, and select Secured connection using TLS.
Gmail verifies the address by emailing it a confirmation link, so a forward rule for that address pointing at your Gmail should exist before you start. For the full walkthrough, including the forward rule, defaults, and troubleshooting, see the Gmail integration guide.
SMTP credentials are separate from your API key. You can create multiple SMTP credentials for different applications and revoke them independently at Settings → SMTP Credentials.