Re-Re-Hello ^^)

Le 30/08/2021 à 17:02, Jean-François Bachelet a écrit :
Re-Hello ^^)


Le 30/08/2021 à 16:00, Jean-François Bachelet a écrit :
Hello ^^)


After I've installed spamassassin I get a run failure

when doing 'systemctl status' I can see that my server is running 'degraded' as one service failed to start.

then I ask 'systemctl;' and see that it's

postfix.service loaded active exited    Postfix Mail Transport Agent
● postfix@-.service loaded failed failed    Postfix Mail Transport Agent (instance -)

'postfix@-.service' that's the culprit.


I've hunted the problem till there :


Aug 28 15:08:36 discovery postmulti[30438]: /usr/sbin/postconf: fatal: file /etc/postfix/master.cf: line 13: bad field count
Aug 28 15:08:35 discovery systemd[1]: postfix.service: Succeeded.
Aug 28 15:08:36 discovery postfix/postfix-script[30495]: fatal: cannot execute /usr/sbin/postconf! Aug 28 15:08:37 discovery systemd[1]: postfix@-.service: Control process exited, code=exited, status=1/FAILURE
Aug 28 15:08:37 discovery postfix/master[1211]: terminating on signal 15
Aug 28 15:08:37 discovery systemd[1]: postfix@-.service: Failed with result 'exit-code'. Aug 28 15:08:37 discovery systemd[1]: postfix@-.service: Consumed 21.413s CPU time. Aug 28 15:08:37 discovery systemd[1]: Removed slice system-postfix.slice. Aug 28 15:08:37 discovery systemd[1]: system-postfix.slice: Consumed 21.413s CPU time.


here is the master.cf conf file :

--Big snip--



#

# Spam filtering using Spamassassin

#

spamassassin unix - n n - - pipe

user=spamd argv=/usr/bin/spamc -f -e /usr/bin/sendmail -oi -f ${sender} ${recipient}


When I look in there, line 13 is '-o content_filter=spamassassin'

but in fact that's the last line of master.vf that's at fault !


all was running well till spamassassin was added but

I don't see what is wrong, maybe I'm blind ? btw I need an advice there...

Webmin is sending that message to me :


Error while checking current Postfix configuration. Please manually fix Postfix configuration.

/usr/sbin/postconf: fatal: invalid type field "argv=/usr/bin/spamc" in "user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}"
postfix/postfix-script: fatal: cannot execute /usr/sbin/postconf!


Uh ? I can't call spamc like this ?

in fact that has nothing to do with the error ! too!

the error is there :


spamassassin unix - n n - - pipe

user=spamd argv=/usr/bin/spamc -f -e /usr/bin/sendmail -oi -f ${sender} ${recipient}

Î_ see ? there is NO space or tab before 'user' and just for this postfix conf parser fail to validate it.

grrr how can I haven't seen this at first ?


BTW, I added a tab there and now the fault is gone.


I love postfix more and more as I put my hands in its engine! I prefer a software that is verbose when it fail even in non-debug mode than some others well-known paid ones the fail silently without saying a word and let the user think all is working well.

and viva Linux too ^^)


Thanks.

Jeff

Reply via email to