i am setting up a mail service on my server with posrfix and dovecot.
It seems to work, but I can an odd error message. Can’t find much at all in google.
I don’t see anything odd in that message at all. All statuses are success, and the last one is restoring selinux contexts on the pid file which is also normal.
Because there is no /var/spool/postfix/pid/master.pid file while postfix is not running, running restorecon against the file before starting postfix.service returns a non-zero value of 255.
So it can be ignored. You will notice when you subsequently restart postfix it will not show this anymore because at this point a pid file exists.
You’ll also find this in /var/log/messages:
Jan 4 21:30:56 rocky8 restorecon[2338]: /usr/sbin/restorecon: lstat(/var/spool/postfix/pid/master.pid) failed: No such file or directory
thus backing that up, it tried to run restorecon against a PID that wasn’t yet created.