DigitalOcean - Centos Stream 9 - Directadmin Installation

That looks like a typo error in the exim configuration

 
I have made only the changes you have mentioned.
How may i understand where the typo is ?
 
So the message you are getting is this:

failed to expand helo_data: $ not followed by letter, digit, or {

Keying in on this part:
$ not followed by letter, digit, or {

Your pre transports file:

exim.transports.pre.conf

Should look like this:

Code:
auth_relay:
    driver = smtp
    port = 25
    hosts_require_auth = $host_address
    hosts_require_tls = $host_address
    headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
    interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
    helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value$
    hosts_try_chunking =
    hosts_try_fastopen =
.include_if_exists /etc/exim.dkim.conf
 
This is my current content :

GNU nano 2.9.8 /etc/exim.transports.pre.conf

auth_relay:
driver = smtp
port = 25
hosts_require_auth = $host_address
hosts_require_tls = $host_address
headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value$
hosts_try_chunking =
hosts_try_fastopen =
.include_if_exists /etc/exim.dkim.conf
 
Fixed below
Code:
auth_relay:
    driver = smtp
    port = 25
    hosts_require_auth = $host_address
    hosts_require_tls = $host_address
    headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
    interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
    helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value}{$primary_hostname}}}{$primary_hostname}}
    hosts_try_chunking =
    hosts_try_fastopen =
.include_if_exists /etc/exim.dkim.conf
 
Now it worked.
All the email queue has been sent.
I have tried to send several new emails and they are sent,too.
BUT, i havent received those emails.Might there be a problem on sendgrid side ?
 
So the server is showing them as being sent but you have not received them, is that it?
 
I have not done this since I got this working myself, sounds like you need to look in Sendgrid, yes.
 
I just looked myself, you can take a look at the Activity Feed section, that should tell you if they are being sent. Actually, they should say Processed and Delivered.
 
Back
Top