Prerequisites
- Root access to your server
- Sendmail mail server installed and running
- JetEmail SMTP credentials from your dashboard
Configuration Steps
1
Generate SMTP Credentials
Create a smarthost (or use an existing one) in your JetEmail dashboard.
2
Configure Authentication
Add the following to your Sendmail configuration file (typically Replace
/etc/mail/sendmail.mc
):your_username
and your_password
with your JetEmail SMTP credentials.3
Configure DKIM Support
Add DKIM configuration for email authentication:
Update the
confDKIM_SIGNING_KEY
path to match your DKIM key location.DKIM configuration is only needed if you haven’t configured the domain in the JetEmail dashboard. If you’ve already set up DKIM in the dashboard, you can skip this step.
4
Configure Access Control
Add access control to allow authentication:Create or update
/etc/mail/access
:5
Configure Mailer
Add the SMTP mailer configuration:
The
MAILER
definitions should be at the end of your sendmail.mc file.6
Generate Configuration and Restart
Generate the Sendmail configuration and restart the service:
Alternative Configuration Method
If you prefer to edit thesendmail.cf
file directly, add these lines:
Testing Your Configuration
After configuration, test your setup:-
Send a test email to an external address:
-
Check email headers for authentication details:
- Monitor delivery in your JetEmail dashboard
Troubleshooting
Authentication Failures
- Verify your SMTP credentials are correct
- Ensure your account is active and in good standing
- Check that authentication is properly configured in sendmail.mc
Connection Issues
- Verify ports 25 or 587 are open in your firewall
- Test connectivity to
relay.jetsmtp.net
:
Configuration Errors
- Check Sendmail logs for error messages:
- Verify configuration syntax:
- Check for syntax errors in sendmail.mc: