For Developers By Developers

You can integrate Mailazy in minutes with your platform. Build and monitor your email solution on a trusted foundation with technical and strategic support when you need it the most.

Configure Forgot password emails with SMTP for Exim 4

Forgot password emails is an important component of any email communication strategy. In order to ensure delivery of Forgot password emails to your customers, reply on a trusted cloud-based email provider like Mailazy as a partner in your growth journey.


You need to complete these given prerequisites, you can skip the step if you have already completed.

  1. Sign up for a Mailazy account.

  2. Complete Domain Authentication.

  3. Generate the Mailazy Access Key

Integrate Mailazy with Exim 4

The following configuration file, which can be found at /etc/exim4/update-exim4.conf.conf, was pulled from Ubuntu Server 10.4 and is for example purposes only:




Enable TLS support in /etc/exim4/exim4.conf.localmacros.

If this file does not exist, you will need to create it:


Enter credentials that will allow Exim to access Mailazy in /etc/exim4/passwd.client:

Note that you must use an API key to authenticate. Do this by setting your username to 'apikey' and your password to your API key's actual value (the string provided by Twilio Mailazy when you created the key).


Once you have completed and saved all changes to Exim's configuration files, you will need to restart it to activate those changes:

$ /etc/init.d/exim4 restart


If you are using cPanel with Exim and want to relay your email through Mailazy, go to Main > Service Configuration > Exim Configuration Editor, click on the Advanced Editor button, and enter the following in the AUTH Box:

begin authenticators

driver = plaintext
public_name = LOGIN
client_send = : mailazy_apikey : mailazy_secret

Only include "begin authenticators" if it's not already in the configuration.

Add a route in the Router Configuration Box:

driver = manualroute
domains =  ! +local_domains
transport = mailazy_smtp
route_list = "* byname"
host_find_failed = defer

Add a transport to the Transport Configuration Box:

driver = smtp
hosts =
hosts_require_auth =  <; $host_address
hosts_require_tls =  <; $host_address

Once you have completed and saved all changes to Exim's configuration files, you will need to restart it to activate those changes:

$ /etc/init.d/exim4 restart

Exim Documentation

If your version of Exim does not match the version above or you are not finding the answer you need, please check out the Official Exim Documentation for more information.

Send Emails with Mailazy

Mailazy is a simple email service to use, yet it provides so many benefits. Mailazy is the only simple transactional email service you’ll need. And the forever free plan lets you test drive it., Mailazy's team is well-equipped to help you quickly resolve your queries and issues. Try us for free today!

Signup for Free Developer Documentation

Ready to get started?

For High-Volume custom requirements send us an email and we will come up with a detailed quote within 24 hours.

Contact Us