What is the error ?customer who experienced the same
if im not wrong, should be like this.remote_smtp:
driver = smtp
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}}
message_linelength_limit = 2048
.include_if_exists /etc/exim.dkim.conf
This is not a bug, but result of finally added built-in checking of SMTP standard compliance, that specifies maximum line length (998 characters excluding CRLF)."message has lines too long for transport"
This is not SMTP compliant solution, so I think it is not recommended to set it as 'default' + each user can adjust maximum length value.If Outlook doesn't count line lengths right, I think it would make sense for CustomBuild to increase the line length limit in Exim to something more than 998 during build. We're seeing customers having this issue as well now (with Reference: header).
2021-11-05 14:36:03 1mizNz-000Ly1-1G ** [email protected] F=<[email protected]> R=lookuphost T=remote_smtp: message has lines too long for transport
echo "exim:4.94.2:" >> /usr/local/directadmin/custombuild/custom_versions.txt
/usr/local/directadmin/custombuild/build update
/usr/local/directadmin/custombuild/build exim
This wasn't an issue in 4.94.2, because messages were not validated for maximum line length specified in RFC standard in that version, but for a long time some people used such a hack to enforce the same functionality:We are also getting the lines too long error with Exim 4.95, this was not an issue in Exim 4.94.2:
Code:2021-11-05 14:36:03 1mizNz-000Ly1-1G ** [email protected] F=<[email protected]> R=lookuphost T=remote_smtp: message has lines too long for transport
Workaround: downgrading to Exim 4.94.2:
Code:echo "exim:4.94.2:" >> /usr/local/directadmin/custombuild/custom_versions.txt /usr/local/directadmin/custombuild/build update /usr/local/directadmin/custombuild/build exim
remote_smtp:
...
message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
#COMMENT#61:
remote_smtp:
driver = smtp
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
remote_smtp_forward_transport:
driver = smtp
headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$original_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
#COMMENT#61:
remote_smtp:
driver = smtp
message_linelength_limit = 4096
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
remote_smtp_forward_transport:
driver = smtp
message_linelength_limit = 4096
headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$original_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
So, for those of us getting the "message has lines too long for transport" error - is the consensus that we downgrade to 4.94.2? I've just gotten a few complaints from one client who uses Outlook. Their parent organization uses Microsoft 365 and my client is now unable to send email them.
Are there any security implications to downgrading?