How to configure Exim4 as smarthost with Mailjet

 In IT_Consultant_Singapore

exim4 mailjet

We tested this on Ubuntu 16.04 / VestaCP / Exim4

  • 1. Goto your mailjet dashboard
  • 2. Take note of your Username (API Key) & Password (Secret Key)
  • 3. Goto Mailjet senders list > Add whole domain names to approve the [email protected]

What areas need to be touched on your server side ?

  • Only one File : /etc/exim4/exim4.conf.template

What options need to change ?

  • >> begin authenticators
  • >> begin routers
  • >> begin transports

Add the below additional entries into that file.

  • Under >> begin authenticators
  • mailjet_login:
  • driver = plaintext
  • public_name = LOGIN
  • client_send = : Username (API Key):Password (Secret Key)
  • Under >> begin routers
  • send_via_mailjet:
  • driver = manualroute
  • domains = ! +local_domains
  • transport = mailjet_smtp
  • route_list = * in.mailjet.com:587;
  • Under >> begin transports
  • mailjet_smtp:
  • driver = smtp
  • port = 587
  • hosts_require_auth = *
  • hosts_require_tls = *
Finally – Restart your exim4 / MTA
  • service exim4  restart
Recent Posts