Vannkorn

Full Stack Web Developer

Close

Hestia CP Email: Message has lines too long for transportHestia CP Email:

By default, Hestia CP will not have this fixed since it is against the RFC5322 section 2.1.1.

Ads: Register now via this link to receive $300 credit from Vultr

This occurs when our email clients have failed to wrap the conversations into new lines. By default, Hestia CP will not have this fixed since it is against the RFC5322 section 2.1.1.

If you feel not comfortable to fix every email client your people are using rather than fixing at one place and work all solution, then you have come to the right place.

To fix this, go to /etc/exim4/exim4.conf.template and at the following configurations:

IGNORE_SMTP_LINE_LENGTH_LIMIT=1
begin transports

smtp_relay_smtp:
driver = smtp
hosts_require_auth = $host_address
hosts_require_tls = $host_address

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 the exim4 and you’re all set.

systemctl restart exim4

Leave a Reply

Your email address will not be published. Required fields are marked *