Szerző: Jeremy Harris
Dátum:
Címzett: exim-users
Tárgy: Re: [exim] socket bind() to port 25 for address (any IPv4) failed
(#76)
On 04/04/2020 10:08, Ian Zimmerman via Exim-users wrote:
> AFAIK running exim under systemd (as the OP clearly does) requires -f in
> any case.
I don't think so. Here's a unit file I'm using
(though I have no idea if it is optimal) :-
=================%cut here%================
# /usr/lib/systemd/system/exim.service
[Unit]
Description=Exim Mail Transport Agent
After=network.target
Conflicts=sendmail.service postfix.service
[Service]
PIDFile=/var/spool/exim/exim.pid
Environment=QUEUE=5m
Environment=PIDFILE=/var/spool/exim/exim.pid
EnvironmentFile=-/etc/sysconfig/exim
ExecStartPre=-/usr/libexec/exim-gen-cert
ExecStart=/usr/sbin/exim -bd -oP ${PIDFILE} -q${QUEUE}
ExecReload=/bin/sh -c 'kill -s HUP `cat ${PIDFILE}`'
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/exim.service.d/execpre.conf
[Service]
ExecStartPre=-/usr/libexec/exim/ensure_exim_sqlite
TimeoutStartSec = 120
=================%cut here%================
--
Cheers,
Jeremy