MaiScanner No loaded

L.P.H. van Belle belle at bazuin.nl
Wed Mar 6 12:48:36 UTC 2019


Hai, 

Try these systemd service files. 
Please note, i have optimized these to my mailscanner server ( debian 9).

dpkg -l | grep mailscanner
ii  mailscanner                           5.1.3-2                        all          Open Source Email Gateway


# /lib/systemd/system/mailscanner.service
[Unit]
Description=LSB: MailScanner daemon
Documentation=man:systemd-sysv-generator(8)
SourcePath=/usr/lib/MailScanner/init/ms-init
After=network-online.target remote-fs.target rsyslog.service mariadb.service mysql.service postfix.service exim4.service ms-sendmail.service clamav-daemon.service clamd at scan.service
Wants=network-online.target mariadb.service

[Service]
Type=forking
Restart=no
TimeoutSec=1min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/usr/lib/MailScanner/init/ms-init start
ExecStop=/usr/lib/MailScanner/init/ms-init stop
EnvironmentFile=-/etc/MailScanner/defaults
PIDFile=/var/run/MailScanner.pid

[Install]
WantedBy=multi-user.target

# my override. 
# /etc/systemd/system/mailscanner.service.d/override.conf
[Unit]
After=network-online.target remote-fs.target rsyslog.service mariadb.service postfix.service clamav-daemon.service
Wants=network-online.target mariadb.service postfix.service clamav-daemon.service

# ( dont know if this is still needed, but should be in apache2.service. ) 
#PrivateTmp=false



Greetz, 

Louis
 

> -----Oorspronkelijk bericht-----
> Van: MailScanner 
> [mailto:mailscanner-bounces+belle=bazuin.nl at lists.mailscanner.
> info] Namens Koby Peleg Hen
> Verzonden: woensdag 6 maart 2019 13:40
> Aan: mailscanner at lists.mailscanner.info
> Onderwerp: Re: MaiScanner No loaded
> 
> Hello Mark ,
> You ware right abut the trailing '/'
> It is been fixed but the story remain the same..
> 
> My system is debian 9.8 (VM)
> 
> Here is the error :
> 
> root at lab:/home/koby# service mailscanner status
> ??? mailscanner.service - LSB: MailScanner daemon
>     Loaded: loaded (/usr/lib/MailScanner/init/ms-init; 
> enabled; vendor 
> preset: enabled)
>     Active: failed (Result: timeout) since Wed 2019-03-06 
> 14:33:15 IST; 
> 32s ago
>       Docs: man:systemd-sysv-generator(8)
>    Process: 3391 ExecStart=/usr/lib/MailScanner/init/ms-init start 
> (code=killed, signal=TERM)
>      Tasks: 0 (limit: 4915)
>     CGroup: /system.slice/mailscanner.service
> 
> Mar 06 14:32:15 lab systemd[1]: Starting LSB: MailScanner daemon...
> Mar 06 14:33:15 lab systemd[1]: mailscanner.service: Start operation 
> timed out. Terminating.
> Mar 06 14:33:15 lab systemd[1]: Failed to start LSB: 
> MailScanner daemon.
> Mar 06 14:33:15 lab systemd[1]: mailscanner.service: Unit 
> entered failed 
> state.
> Mar 06 14:33:15 lab systemd[1]: mailscanner.service: Failed 
> with result 
> 'timeout'.
> 
> Any More suggestion
> 
> Koby Peleg Hen
> 
> ???????? ???? ?????? Mark Sapiro, ????5.3.2019 ???????? 21:49:
> > Koby Peleg Hen wrote:
> > 
> >>        Mar  5 18:19:50 lab MailScanner: Cannot write pid file
> >>        /var/run/MailScanner.pid/, Is a directory<br>
> > 
> > It appears that somewhere in your MailScanner configuration 
> you may have set
> > 
> > PID file = /var/run/MailScanner.pid/
> > 
> > with a trailing '/'. It should be
> > 
> > PID file = /var/run/MailScanner.pid
> > 
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> 



More information about the MailScanner mailing list