Wednesday, January 31, 2018

[FIX] mail/exim rc script fix

Hi ports@

for the second time in history I got a failed exim start after upgrading an OpenBSD release. The cause: /etc/rc.d/exim checks, whether /etc/mailer.conf.exim is present and (silently) fails to start, if present. This also is pretty difficult to find.

As I understand the reason for this check, the other mta in ports do not do this. It even seems wrong, as mailer.conf contains the exim binaries, but mailer.conf.exim is brought back by port upgrade.

I attach two possible patches to address this issue:

exim.rc.nocheck.patch removes rc_pre to bring it in line with other mta
exim.rc.grep.patch replaces the check with a direct check, if mailer.conf has "exim" in it and does some logging to report the issue.

Please provide me with feedback for better solutions.

Kind Regards,
Christian

No comments:

Post a Comment