-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milter service MSMilter does not start correctly with Ubuntu + Postfix #530
Comments
Are you saying you see the same issue after reboot over multiple reboots, or just the first time? If it's just once, I suspect the error occurs because the file doesn't exist, but the daemon starts anyway and then creates the file. |
Multiple reboots. |
Do you really need to restart MSMilter. It appears from your report that it is actually running despite the For what it's worth, here's what I see after a reboot
and here's my systemd service which I think is unchanged from what MailScanner installed.
|
Thanks for that information @msapiro I edited the systemd service so that
I haven't looked into the code but I assume that warning message was included for a reason. If |
The warning message is coming from reading in the MailScanner configuration when it isn't running, definitely benign since the milter doesn't use it but having it start after mailscanner is a good idea. |
I can submit a PR but I'm not sure what the correct solution is? 1. |
When Shawn said "doesn't use it", he was referring to the Locks directory. msmilter definitely needs to read the configuration as there are items there specifically for it. |
Issue:
Milter service MSMilter does not start correctly.
Error in configuration file ... directory /var/spool/MailScanner/incoming/Locks for lockfiledir does not exist ...
Software:
Ubuntu 20.04.2 LTS
Postfix 3.4.13
MailScanner-5.3.4-3.noarch.deb
More details:
I installed MailScanner and MSMilter by following the guide:
https://github.com/MailScanner/v5/blob/master/doc/MailScanner%20Milter%20Guide.pdf
I set the milter to start automatically:
systemctl enable msmilter.service
Reboot the server.
The MailScanner service starts correctly.
The MSMilter service does not (it's active but with a warning message).
The permissions on the directories after boot are:
If I simply restart MSMilter, the warning/error message is gone:
service msmilter restart
Question:
Is this a race condition or something wrong with my install?
The text was updated successfully, but these errors were encountered: