Hello @GabrielPL,
Keep the line IGNORE_SMTP_LINE_LENGTH_LIMIT=1
in exim4 conf and in that config file /etc/exim4/exim4.conf.template
, find remote_smtp:
section inside TRANSPORTS
.
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
begin transports
smtp_relay_smtp:
driver = smtp
hosts_require_auth = $host_address
hosts_require_tls = $host_address
remote_smtp: <<--- this is the section we will modify
driver = smtp
helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
dkim_domain = DKIM_DOMAIN
dkim_selector = mail
dkim_private_key = DKIM_PRIVATE_KEY
dkim_canon = relaxed
dkim_strict = 0
hosts_try_fastopen = !*.l.google.com
interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
And add this to the remote_smtp:
section:
.ifdef IGNORE_SMTP_LINE_LENGTH_LIMIT
message_linelength_limit = 1G
.endif
So remote_smtp:
section will look like this:
remote_smtp:
driver = smtp
helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
dkim_domain = DKIM_DOMAIN
dkim_selector = mail
dkim_private_key = DKIM_PRIVATE_KEY
dkim_canon = relaxed
dkim_strict = 0
hosts_try_fastopen = !*.l.google.com
interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
.ifdef IGNORE_SMTP_LINE_LENGTH_LIMIT
message_linelength_limit = 1G
.endif
Restart exim4 and try again.
systemctl restart exim4
Cheers,
sahsanu