Page 2 of 2

Re: How to configure Exim4 as smarthost

Posted: Sun Mar 13, 2016 9:40 pm
by Spheerys
Sanity wrote:Good service by Mailjet , not answer !!

I found this configuration.
http://c.vestacp.com/0.9.8/rhel/exim-smarthost.conf
I'll try to see if this file works

I have got inspiration of this configuration file and I did this in my exim template file :

In routers conf :

Code: Select all

smarthost:
  driver = manualroute
  domains = ! +local_domains
  transport = remote_smtp_auth
  route_list = * in-v3.mailjet.com::587
#  no_more
#  no_verify
In transport conf :

Code: Select all

remote_smtp:
  driver = smtp
  #helo_data = $sender_address_domain
  dkim_domain = DKIM_DOMAIN
  dkim_selector = mail
  dkim_private_key = DKIM_PRIVATE_KEY
  dkim_canon = relaxed
  dkim_strict = 0
#  hosts_require_tls = *

remote_smtp_auth:
  driver = smtp
  hosts = in-v3.mailjet.com
  hosts_require_auth =  in-v3.mailjet.com
And now, after exim regeneration/restart, I have a new error :
2016-03-13 22:37:42 1afDhm-00043f-3K <= [email protected] H=rfg.1-23-213-432-65.fbx.proxad.net ([192.168.0.3]) [xxx.xxx.xxx.xxx] P=esmtpsa X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 A=dovecot_plain:[email protected] S=688 id=[email protected]
2016-03-13 22:37:42 1afDhm-00043f-3K == [email protected] R=smarthost T=remote_smtp_auth defer (-53): retry time not reached for any host

Re: How to configure Exim4 as smarthost

Posted: Sun Mar 13, 2016 10:00 pm
by Sanity
fuck!!! tomorrow we'll see if answered ... good luck!

Re: How to configure Exim4 as smarthost

Posted: Mon Mar 14, 2016 1:53 pm
by Spheerys
I had a "basic" answer this morning, but finally I'm waiting for a "technical" answer...

Re: How to configure Exim4 as smarthost

Posted: Mon Mar 14, 2016 7:29 pm
by Spheerys
I'm still waiting...
For information, today, a friend make it works on a server debian but without VestaCP and Postfix instead of Exim4

Re: How to configure Exim4 as smarthost

Posted: Wed Apr 13, 2016 12:27 pm
by Spheerys
@sanity : I give up for now, but do you finally make it works ?

Re: How to configure Exim4 as smarthost

Posted: Thu Apr 14, 2016 7:49 am
by Sanity
at the end, buy a vps, and installed a smarthost there. haraka called the smarthost. It works perfect

Re: How to configure Exim4 as smarthost

Posted: Thu May 12, 2016 9:21 am
by yoyobg
I had a similar problem and was advised to follow a step by step for getting Mailjet to work with cPanel, WHM, and Exim.

1) From Exim Configuration, click Advanced Editor (into the AUTH section). Place the following in:

begin authenticators mailjet_login: driver = plaintext public_name = LOGIN client_send = : APIKey : APISecret

Only include the begin authenticators if it does not exist already, if it does just paste the rest below it.
2) Add a route in the Router Configuration (into ROUTERSTART): send_via_mailjet: driver = manualroute domains = ! +local_domains transport = mailjet_smtp route_list = “* in.mailjet.com::587 byname” host_find_failed = defer no_more

3) Add a transport to the Transport Configuration (into TRANSPORTSTART): mailjet_smtp: driver = smtp hosts = in.mailjet.com hosts_require_auth = in.mailjet.com hosts_require_tls = in.mailjet.com

Save all your changes, and restart exim with /etc/init.d/exim4 restart.

Re: How to configure Exim4 as smarthost

Posted: Wed Nov 15, 2017 11:49 am
by MAN5
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 any-emials@your-domains

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
>>send_via_mailjet
>>mailjet_smtp

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

post ref : https://vvcares.com/w/configure-exim4-s ... t-mailjet/