On Wed, Jul 28, 2021 at 01:53:15PM +0200, Jean-François Bachelet <jfbache...@free.fr> wrote:
> I've tested with 'sendmail' in place of 'postfix' in line 650 and now I get > a 'fatal error' when sending mails... excert from mail logs sent by > 'pflogsumm' : > > Fatal Errors > ------------ > sendmail (total: 1) > 1 usage: sendmail [options] > > > there is no such error if sendmail_path = /usr/sbin/postfix... I didn't suggest changing it. I suggested removing it, to restore the default value. For each parameter in main.cf, you can see what its default value is with "postconf -d". e.g. > postconf -d sendmail_path sendmail_path = /usr/sbin/sendmail Where you have explicitly set it to what was already the default, you can remove it from main.cf. The setting of a parameter to its default isn't harmful, but removing noise from main.cf can be helpful. The fewer parameters you put in main.cf, the less there is to go wrong. :-) I don't know what the error is that you're seeing. You'd have to look in /var/log/mail.log to see the context, rather than looking at pflogsumm output. How did you test it? What appeared in /var/log/mail.log (and/or /var/log/mail.err) when you tested it. It seems odd that there was no such error when you had it set to the non-existent /usr/bin/postfix. I doubt that postfix itself even uses the sendmail binary. It's for other software to invoke to send mail into postfix. Having it as a parameter might just be a convenience for looking it up. As far as I can see, the only way to get sendmail to produce that error is to invoke it with illegal command line option usage. e.g.: > sendmail -h sendmail: option requires an argument -- 'h' sendmail: option requires an argument -- 'h' sendmail: fatal: usage: sendmail [options] And if postfix did invoke sendmail, it wouldn't get the command line wrong. Did you perhaps test it by invoking sendmail manually on the command line? If so, the error message might just be due to invoking it incorrectly. It probably has nothing to do with the sendmail_path parameter setting in main.cf. cheers, raf