Exim and smarthost relay with TLS, how to integrate that with DA exim conf ?

funken

New member
Joined
Mar 3, 2007
Messages
2
Hi,

I'm in need of some help here, and it would be great if someone could take their time to help me out.

I'm forced to use an relay with my server, and I was planning on using mailjet(if someone knows a better one, please advice) and I need to use ssl or tls to authenticate me.

I've found some guides for mainly Debian, but neither seem to apply for the customised Exim conf I have. My DA was installed by Directadmin, and is set up as the current default configuration.

I'm looking to get this configured with exim(no, only a guide for postfix on their site)

"
SMTP server:
in.mailjet.com

Username (API Key):
59746ce30930affe75173xxxxxxxx

Password (Secret Key):
f73e13fa4a53711c6a0d3xxxxxxxx

Port:
25 or 587 (some providers block port 25)

Use TLS:
optional

If TLS on port 587 doesn't work, try using port 465 and/or using SSL instead"


The instructions they provided for postfix are these;

"In main.cf, add :relayhost = in.mailjet.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd


In sasl_passwd, add :
in.mailjet.com 59746ce30930affe75xxxxxxx:f73e13fa4a53711c6a0xxxxxxxxx

Please make sure only root can read sasl_passwd :
chown root:root sasl_passwd ; chmod 600 sasl_passwd

Run postmap sasl_passwd and postfix reload to apply changes."


Would anyone be able to help me translate this for the DA exim conf. I have added a working smtp relay for port 587, but of course it's not authenticating!

I moved my server to a new provider without checking if they blocked port 25 or not, and now I have a growing queue of emails and I'm getting very stressed :/

Thanks in advance!
 
I know nothing about mailjet, but if you need to relay all outgoing emails from your directadmin powered server via a remote SMTP server securely, why don't you use smarthost router in exim then? For security sake you might want to set up a VPN between the servers.
 
@zEitEr:

I think funken is saying he needs to use a public service to relay his mail.

@funken:

I'm the guy who wrote the exim.conf file. I'm frankly not going to take the time to figure out how to set it up for a commercial relay service using password authentication, because there's never in almost ten years been any demand for it, and it would be a learning curve for me. I suggest that if you need help in using password authentication for mail relay with exim you ask on the exim-users mailing list; our configuration file is standard enough that they should be able to help you there.

The biggest issue I can see is that it appears your server is hosted with a provider who doesn't want you to send email. I'm not sure why any hosting provider would do that, but it would be a reason for me to not use them.

From my research, mailjet appears to be set up for sending mailing list mail; not for general relaying. Are you sure they'll do that for you? Or am I misunderstanding what you need?

I could set up a service to allow you to send mail through us (in fact most of us here could), but I'm not sure I want to get into the mail relay business. We're agressively anti-spam, and our penalties for sending it are huge. Could you guarantee that no one would spam through your server, and if they did, that you'd pay the penalties (with a deposit or credit card on file)?

Jeff
 
Back
Top