Configuring Exim to Use Mail Relay

Follow the steps below to configure Exim to use the Mail Relay service for sending emails.

Step 1: Update the Exim Configuration File

  1. Open the Exim configuration file exim.conf in a text editor.
  2. Locate the routes section and add the following content:
# Add this to the routes section
mailrelay:
    driver = manualroute
    domains = ! +local_domains
    transport = mailrelay_transport
    route_list = * relay.dnsexit.com byname
    

Step 2: Add Your SMTP Credentials

  1. Edit the file /etc/exim/passwd.client.
  2. Add the following line, replacing the placeholders with your actual credentials:
smtp1.s.ipzmarketing.com:MAILRELAY_SMTP_USERNAME:MAILRELAY_SMTP_PASSWORD
    

Replace MAILRELAY_SMTP_USERNAME with your Mail Relay username and MAILRELAY_SMTP_PASSWORD with your password.

Step 3: Restart Exim

  1. Restart the Exim service to apply the changes:
sudo systemctl restart exim
    

Final Note

After completing these steps, your emails should be sent using the Mail Relay SMTP server. If you encounter any issues, double-check your configuration and credentials.