External SMTP relay

Question

We're running Crossbox standalone and we want to use Amazon SES to send emails?

Answer

If you want to use services like Amazon SES, Postmark, or some other SMTP relay, you need to do the following (stand-alone version only):

Create /home/crossbox/app/config/exim/overrides/exim.authenticators.conf

ses_login:
driver = plaintext
public_name = LOGIN
client_send = : 6HSF5K7TX2RU17SMU4SE : "53H4EL704P3PVXPZQWFG14IBEHIQ9NLV873Z9LG6HDIL"

Replace the hashes in client_send with your own SMTP credentials:

Create /home/crossbox/app/config/exim/overrides/exim.routers.conf

send_via_ses:
driver = manualroute
domains = ! +local_domains
transport = ses_smtp
route_list = * email-smtp.eu-west-1.amazonaws.com;
condition = ${if match_domain{$sender_address_domain}{+local_domains}}

Change the hostname in route_list with the SMTP hostname that the provider assigned to you.

Create /home/crossbox/app/config/exim/overrides/exim.transports.conf

ses_smtp:
driver = smtp
port = 587
hosts_require_auth = *
hosts_require_tls = *

Run command via SSH (as root):

crossbox config reload && crossbox restart exim
Page Navigation