HolyDiver
Verified User
- Joined
- Feb 21, 2016
- Messages
- 51
Conflict between DA's Exim and mailutils/bsd_mailx breaks cronjob mail & mail command
Hi,
I noticed my DA cronjobs weren't sending out e-mails anymore for a while. The mail command in command line stated mail command was not found. According to syslog there is no MTA installed (Exim is installed which apparently doesn't count?)
I installed the Debian "mailutils" package and it works again. But for some reason the Exim installation of DA gets downgraded to 4.89 and prompts me to update to 4.92.3. Doing so apparently damages the mailutils package
The cronjob mails and mail command in command line produce these errors now
I noticed bsd-mailx is mentioned on DA's pre installation guide for Debian, but that will also prompt that DA's exim is downgraded and needs to be updated which will break bsd-mailx
I'm stuck in a loop :/
Hi,
I noticed my DA cronjobs weren't sending out e-mails anymore for a while. The mail command in command line stated mail command was not found. According to syslog there is no MTA installed (Exim is installed which apparently doesn't count?)
root@server1:~# mail -V
bash: /usr/bin/mail: No such file or directory
root@server1:~# tail /var/log/syslog
Oct 26 19:10:02 server1 CRON[8659]: (CRON) info (No MTA installed, discarding output)
I installed the Debian "mailutils" package and it works again. But for some reason the Exim installation of DA gets downgraded to 4.89 and prompts me to update to 4.92.3. Doing so apparently damages the mailutils package
root@server1:~# apt install mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
exim4-base exim4-config exim4-daemon-light guile-2.0-libs libgc1c2 libgsasl7 libkyotocabinet16v5 libmailutils5 libntlm0
Suggested packages:
eximon4 exim4-doc-html | exim4-doc-info spf-tools-perl swaks mailutils-mh mailutils-doc
The following NEW packages will be installed:
exim4-base exim4-config exim4-daemon-light guile-2.0-libs libgc1c2 libgsasl7 libkyotocabinet16v5 libmailutils5 libntlm0 mailutils
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,369 kB of archives.
root@server1:~# usr/local/directadmin/custombuild/build exim
[...]
(Reading database ... 86515 files and directories currently installed.)
Removing exim4-daemon-light (4.89-2+deb9u6) ...
Removing exim4-base (4.89-2+deb9u6) ...
Removing exim4-config (4.89-2+deb9u6) ...
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... 86381 files and directories currently installed.)
Purging configuration files for exim4-base (4.89-2+deb9u6) ...
Purging configuration files for exim4-config (4.89-2+deb9u6) ...
The cronjob mails and mail command in command line produce these errors now
root@server1:~# echo "Test" | mail -s "Test Title" ********************@gmail.com
mail: Cannot open mailer: No such file or directory
mail: cannot send message: No such file or directory
I noticed bsd-mailx is mentioned on DA's pre installation guide for Debian, but that will also prompt that DA's exim is downgraded and needs to be updated which will break bsd-mailx
root@server1:~# apt install bsd-mailx -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
exim4-base exim4-config exim4-daemon-light liblockfile-bin liblockfile1
Suggested packages:
eximon4 exim4-doc-html | exim4-doc-info spf-tools-perl swaks
The following NEW packages will be installed:
bsd-mailx exim4-base exim4-config exim4-daemon-light liblockfile-bin liblockfile1
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
I'm stuck in a loop :/