We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
How to configure Exim4 as smarthost
How to configure Exim4 as smarthost
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 :
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 ?
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'
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 ?
Last edited by Spheerys on Fri Mar 11, 2016 2:05 pm, edited 1 time in total.
Re: How to configure Exim4 as smarthost
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 :
But how to setup the MailJet config with this VestaCP 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
Re: How to configure Exim4 as smarthost
I have simply tried to edit the template like this :
After config regeneration and exim restarted, Exim is using the smarthost !
But I have identification error now :
My passwd.client file is correctly set with API keys
But maybe this file is not used by default ?
Code: Select all
smarthost:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * in.mailjet.com
no_more
no_verify
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
But maybe this file is not used by default ?
Last edited by Spheerys on Sat Mar 12, 2016 3:59 pm, edited 1 time in total.
Re: How to configure Exim4 as smarthost
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
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
Last edited by Sanity on Sat Mar 12, 2016 3:14 pm, edited 1 time in total.
Re: How to configure Exim4 as smarthost
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 ?
I have openned a ticket at MailJet support plateform.
The first which find the solution came here ?
Re: How to configure Exim4 as smarthost
yes! I have also put a ticket
Re: How to configure Exim4 as smarthost
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 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
I think Mailjet only serves to mailing lists, and so gives the error relay
Re: How to configure Exim4 as smarthost
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 :)
And they are clearly explaining they are proposing SMTP relay.
So I'm confident. We are sunday... I hope to have an answer tomorrow :)