Spam Experts Help

Exim Username based authentication (DirectAdmin)

  1. Ensure the outgoing authenticated user is added in the Spam Experts systems.

  2. Ensure the outgoing user has correct limits set matching your traffic volumes.
  3. Add the following in the routers section (after begin routers) directly in the /etc/exim.conf file:
  4. spamexperts_smarthost_router:
    driver = manualroute
    domains = ! +local_domains
    ignore_target_hosts = 127.0.0.0/8
    condition = "${perl{check_limits}}"
    # Exclude null sender messages from relaying via the smarthost
    condition = ${if or {{!eq{$sender_address}{}} {!eq{$sender_host_address}{}}}}
    headers_add = ${if !eq{$original_domain}{$domain}{X-Forwarded-For: $original_local_part@$original_domain}}\n\
    X-AuthUser: $authenticated_id
    headers_add = X-AuthUser: $authenticated_id
    transport = spamexperts_smarthost_transport
    route_list = $domain SMARTHOST::587
    no_more

  5. You MAY have to comment "lookuphost:" router depending on your configuration.
  6. Add the following in the transports section (after begin transports):
  7. spamexperts_smarthost_transport:
    driver = smtp
    # In-case your server continues to send outbound over port 25 please add the below line
    port = 587
    hosts_require_tls = SMARTHOST
    hosts_require_auth = *

  8. Add the following in the "begin authenticators" section:

    spamexperts_login:
    driver = plaintext
    public_name = LOGIN
    client_send = : username@example.com : yourUserPassword

  9. Finally restart Exim.
  10. If you are signing with DKIM on your Direct Admin server you may need to add the following line under hosts_require_tls
  11. .include_if_exists /etc/exim.dkim.conf