Page 1 of 2
How to configure Exim4 as smarthost
Posted: Fri Mar 11, 2016 11:37 am
by Spheerys
Hi,
I want to use MailJet Services to send mails from my VestaCP server.
I have followed the MailJet doc
https://eu.mailjet.com/docs/code/exim
My /etc/exim4/update-exim4.conf.conf :
Code: Select all
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost='receiver'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='in.mailjet.com:587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
I have regenerate the exim conf with update-exim4.conf : the config.autogenerated is regenerated, but there is no trace of my smarthost config inside...
And after a Exim4 restart (with "service exim4 restart"), the modifications are not working.
The mails are sent from the server, and not from MailJet.
What did I forget ?
Re: How to configure Exim4 as smarthost
Posted: Fri Mar 11, 2016 1:57 pm
by Spheerys
On the VestaCP documentation, I see on Debian, the Exim4 conf file is /etc/exim4/exim4.conf.template
Inside, I have found this commented section :
Code: Select all
#smarthost:
# driver = manualroute
# domains = ! +local_domains
# transport = remote_smtp
# route_list = * smartrelay.vestacp.com
# no_more
# no_verify
But how to setup the MailJet config with this VestaCP template ?
Re: How to configure Exim4 as smarthost
Posted: Sat Mar 12, 2016 11:15 am
by Spheerys
I have simply tried to edit the template like this :
Code: Select all
smarthost:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * in.mailjet.com
no_more
no_verify
After config regeneration and exim restarted, Exim is using the smarthost !
But I have identification error now :
Code: Select all
2016-03-12 12:11:53 1aehSb-0003kv-Li SMTP error from remote mail server after RCPT TO:<[email protected]>: host in.mailjet.com [46.105.54.204]: 454 4.7.1 <[email protected]>: Relay access denied
2016-03-12 12:11:54 1aehSb-0003kv-Li SMTP error from remote mail server after RCPT TO:<[email protected]>: host in.mailjet.com [5.196.43.135]: 454 4.7.1 <[email protected]>: Relay access denied
2016-03-12 12:11:54 1aehSb-0003kv-Li SMTP error from remote mail server after RCPT TO:<[email protected]>: host in.mailjet.com [37.59.74.234]: 454 4.7.1 <[email protected]>: Relay access denied
2016-03-12 12:11:54 1aehSb-0003kv-Li SMTP error from remote mail server after RCPT TO:<[email protected]>: host in.mailjet.com [178.32.115.14]: 454 4.7.1 <[email protected]>: Relay access denied
2016-03-12 12:11:54 1aehSb-0003kv-Li == [email protected] R=smarthost T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:<[email protected]>: host in.mailjet.com [5.196.43.129]: 454 4.7.1 <[email protected]>: Relay access denied
My passwd.client file is correctly set with API keys
But maybe this file is not used by default ?
Re: How to configure Exim4 as smarthost
Posted: Sat Mar 12, 2016 2:57 pm
by Sanity
hello I've been testing this service but also have the same problem
03/12/2016 15:02:18 1aek7W-0002tB-6V ==
[email protected] R = T = remote_smtp defer smarthost (-44): SMTP Error from remote mail server after RCPT TO: <
[email protected] >: host in.mailjet.com [5.196.43.135]: 454 4.7.1 <
[email protected]>: Relay access denied
Re: How to configure Exim4 as smarthost
Posted: Sat Mar 12, 2016 3:09 pm
by Spheerys
Oh... I'm not alone in the dark !!
I have openned a ticket at MailJet support plateform.
The first which find the solution came here ?
Re: How to configure Exim4 as smarthost
Posted: Sat Mar 12, 2016 3:15 pm
by Sanity
yes! I have also put a ticket
Re: How to configure Exim4 as smarthost
Posted: Sat Mar 12, 2016 3:16 pm
by Spheerys
^^
Re: How to configure Exim4 as smarthost
Posted: Sun Mar 13, 2016 9:41 am
by Sanity
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
Re: How to configure Exim4 as smarthost
Posted: Sun Mar 13, 2016 10:28 am
by Sanity
I think Mailjet only serves to mailing lists, and so gives the error relay
Re: How to configure Exim4 as smarthost
Posted: Sun Mar 13, 2016 10:37 am
by Spheerys
I think not because I explain them my needs during my account activation.
And they are clearly explaining they are proposing SMTP relay.
So I'm confident. We are sunday... I hope to have an answer tomorrow :)