I just paused the auto update feature, because 102.0.2 will go back to Exim 4.95 and @abonoit said the problem is still there. I will resume the automatic update when there is a version that does not cause the issue.@Reado
I just did this "yum downgrade cpanel-exim-4.94.2-4.cp1198.x86_64.rpm" is it's great it works fine, thanks it's great.
I didn't need to put the chown because it's correct on both names, the test email works, I'll be able to reopen the registrations pages this evening.
Hopefully it doesn't break anything like for example the Exim 4.95 update coming back again soon or also imagine if exim doesn't want to auto-update at all in the future because of this manually installed rpm?!
wget http://httpupdate.cpanel.net/RPM/11.98/centos/7/x86_64/cpanel-exim-4.94.2-4.cp1198.x86_64.rpm
yum downgrade cpanel-exim-4.94.2-4.cp1198.x86_64.rpm
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
[01:10:39] root@ns [~]# exim --version
Exim version 4.95 #2 built 22-Nov-2021 18:04:21
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2020
Berkeley DB: Berkeley DB 5.3.21: (May 11, 2012)
Support for: crypteq iconv() IPv6 PAM Perl OpenSSL TLS_resume Content_Scanning DANE DKIM DNSSEC Event I18N OCSP PIPE_CONNECT PRDR Experimental_Queue_Ramp SPF Experimental_SRS
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch passwd sqlite
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply lmtp pipe smtp
Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
Configure owner: 0:0
Size of off_t: 8
2022-02-02 01:11:43 cwd=/root 2 args: exim --version
Configuration file is /etc/exim.conf
[01:11:43] root@ns [~]#
yum downgrade cpanel-exim-4.94.2-4.cp1198.x86_64.rpm
2022-02-02 01:21:47 cwd=/ 2 args: /usr/sbin/exim -bV
2022-02-02 01:21:47 Exim configuration error in line 2533 of /etc/exim.conf:
option "message_linelength_limit" unknown
Configuration file has an invalid syntax. Please try the edit again.
[01:22:29] root@ns [~]# service exim stop
Redirecting to /bin/systemctl stop exim.service
[01:22:35] root@ns [~]# service exim start
Redirecting to /bin/systemctl start exim.service
Job for exim.service failed. See "systemctl status exim.service" and "journalctl -xe" for details.
[01:22:37] root@ns [~]# systemctl status exim.service
● exim.service - Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another.
Loaded: loaded (/etc/systemd/system/exim.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since mer. 2022-02-02 01:22:37 CET; 9s ago
Process: 15783 ExecStart=/usr/libexec/exim.daemon start (code=exited, status=0/SUCCESS)
Main PID: 6883 (code=exited, status=0/SUCCESS)
févr. 02 01:22:37 ns.ServerName.com systemd[1]: Starting Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another....
févr. 02 01:22:37 ns.ServerName.com exim.daemon[15783]: 2022-02-02 01:22:37 Exim configuration error in line 2533 of /etc/exim.conf:
févr. 02 01:22:37 ns.ServerName.com exim.daemon[15783]: option "message_linelength_limit" unknown
févr. 02 01:22:37 ns.ServerName.com systemd[1]: Can't open PID file /var/spool/exim/exim-daemon.pid (yet?) after start: No such file or directory
févr. 02 01:22:37 ns.ServerName.com systemd[1]: Failed to start Exim is a Mail Transport Agent, which is the program that moves mail from one machine to another..
févr. 02 01:22:37 ns.ServerName.com systemd[1]: Unit exim.service entered failed state.
févr. 02 01:22:37 ns.ServerName.com systemd[1]: exim.service failed.
[01:22:46] root@ns [~]#
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
[01:23:34] root@ns [~]# service exim stop
Redirecting to /bin/systemctl stop exim.service
[01:23:38] root@ns [~]# service exim start
Redirecting to /bin/systemctl start exim.service
[01:23:41] root@ns [~]#
#message_linelength_limit = 2048
The problem is most likely not Exim. Without knowing the exact problem, I want to take a guess and say that Microsoft is at fault here.@DennisMidjord Yes in real the problem does not come from cpanel but from Exim 4.95, they all have problems with that since November 2021 : exim 4.95 message has lines too long for transport - Google Search
Exim 4.95 is broken
According to this, the Exim developers have known about it since November 2021.The problem is most likely not Exim. Without knowing the exact problem, I want to take a guess and say that Microsoft is at fault here.
message_linelength_limit = 2048
# exim -bP transport_list | while read list ; do echo "$list" ; exim -bP transport $list | grep line ; done
customsmarthosttransport
message_linelength_limit = 2048
remote_smtp
message_linelength_limit = 2048
dkim_remote_smtp
message_linelength_limit = 2048
remote_smtp:
driver = smtp
interface = <; ${if > {${extract{size}{${stat:/etc/mailips}}}}{0}{${lookup{${lc:${perl{get_message
_sender_domain}}}}lsearch{/etc/mailips}{$value}{${lookup{${if match_domain{$original_domain}{+relay_
domains}{${lc:$original_domain}}{}}}lsearch{/etc/mailips}{$value}{${lookup{${perl{get_sender_from_ui
d}}}lsearch*{/etc/mailips}{$value}{}}}}}}}}
helo_data = ${if > {${extract{size}{${stat:/etc/mailhelo}}}}{0}{${lookup{${lc:${perl{get_message_s
ender_domain}}}}lsearch{/etc/mailhelo}{$value}{${lookup{${if match_domain{$original_domain}{+relay_d
omains}{${lc:$original_domain}}{}}}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_ui
d}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}}
hosts_try_chunking = 198.51.100.1
message_linelength_limit = 2048
dkim_remote_smtp:
driver = smtp
interface = <; ${if > {${extract{size}{${stat:/etc/mailips}}}}{0}{${lookup{${lc:${perl{get_message
_sender_domain}}}}lsearch{/etc/mailips}{$value}{${lookup{${if match_domain{$original_domain}{+relay_
domains}{${lc:$original_domain}}{}}}lsearch{/etc/mailips}{$value}{${lookup{${perl{get_sender_from_ui
d}}}lsearch*{/etc/mailips}{$value}{}}}}}}}}
helo_data = ${if > {${extract{size}{${stat:/etc/mailhelo}}}}{0}{${lookup{${lc:${perl{get_message_s
ender_domain}}}}lsearch{/etc/mailhelo}{$value}{${lookup{${if match_domain{$original_domain}{+relay_d
omains}{${lc:$original_domain}}{}}}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_ui
d}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}}
dkim_domain = ${perl{get_dkim_domain}}
dkim_selector = default
dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}"
dkim_canon = relaxed
hosts_try_chunking = 198.51.100.1
message_linelength_limit = 2048
/usr/local/cpanel/scripts/check_cpanel_pkgs --fix
exim -bP transport_list | while read list ; do echo "$list" ; exim -bP transport $list | grep line ; done
:Is one missing or is that normal?remote_smtp
message_linelength_limit = 2048
dkim_remote_smtp
message_linelength_limit = 2048
address_directory
address_pipe
virtual_address_pipe
jailed_address_pipe
jailed_virtual_address_pipe
cagefs_address_pipe
cagefs_virtual_address_pipe
address_file
boxtrapper_autowhitelist
local_boxtrapper_delivery
virtual_boxtrapper_userdelivery
dovecot_delivery
dovecot_virtual_delivery
address_reply
mail()
function of php, and it doesn't work anymore (before with exim 4.94 it worked)/usr/local/cpanel/etc/exim/replacecf/dkim/remote_smtp
and /usr/local/cpanel/etc/exim/replacecf/remote_smtp
files (and then running /scripts/buildeximconf) to increase this beyond the 2048 value that cPanel sets in 100.0.2 (Exim's new default is 998). However these changes will possibly be overwritten during upcp. The replacecf method is more robust in this manner and generally the Exim configurations will not be changed unless there's update to them either via upcp or WHM.Since I put this it works well with@sgrzy01 I just tried it and it works!!
I put this for both:
message_linelength_limit = 2048000
On Exim version 4.95
So then on exim 4.94 and earlier versions we can consider that this parameter was on unlimited per default ?
mail()
fonction PHP!Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
H | SOLVED Problem sending mail between cPanel servers | 3 | ||
C | Problems receiving mail from a remote cPanel server | 2 | ||
L | Problems between Cpanel mail and microsoft mail (outlook, hotmail, office365) | 7 | ||
E | Outgoing email problem on Cpanel 92 | 3 | ||
M | problem Fix cPanel LMTP error after RCPT TO | 11 |