SMTP Credentials
Create SMTP credentials for official government systems and mail clients.
SMTP credentials let government systems send official email through Taifa Mail using the standard SMTP protocol. Use them with service portals, case-management tools, legacy systems, or email clients that support SMTP.
Credentials can only be created for a domain ICTA has already approved and that you have verified. See Request domains & mailboxes from ICTA.
Creating SMTP credentials
- Go to Developer → SMTP.
- Click Create.
- Select the verified domain the credential is linked to. The domain must be verified first - credentials cannot be created for an unverified domain.
- Click Create.
- Copy the username and password immediately.
The username is generated for you in the form <id>@health.go.ke. The host, port, username, and password are all shown on the creation screen.
The SMTP password is shown only once at creation time. Store it securely. If you lose it, delete the credential and create a new one.
Each verified domain can have one active SMTP credential at a time. If a credential already exists for a domain, delete it before creating a new one.
SMTP connection settings
The exact host is shown on the creation screen alongside your username and password. Use those values rather than copying them from here.
| Setting | Value |
|---|---|
| Host | mail.govconnect.ke (shown at creation) |
| Port | 587 |
| Encryption | STARTTLS |
| Username | Generated, shown at creation (format: <id>@health.go.ke) |
| Password | Shown at creation |
Code examples
Python (smtplib)
Node.js (Nodemailer)
Django (settings.py)
Laravel (.env)
Revoking credentials
- Go to Developer → SMTP.
- Click Delete next to the credential.
- Confirm.
Revocation takes effect immediately. Any SMTP connection using the deleted credential will be rejected.
Use separate SMTP credentials for each application or environment. This makes it easy to revoke access for one government system without affecting other services.