Hi, Having problems recieving quota warnings for mail en websites. After checking on hard errors i find this. Its from the ispconfig cron log. Its a bug in a script that's mailing info. Any tips were i can look to drill this down? Its just ones a day Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: fatal: usage: sendmail [options] Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: fatal: usage: sendmail [options] Mon Jan 4 00:14:02 CET 2021 finished server.php. Greetings, Ben
Do you have a conf-custom template in use? It probably needs updated if so, eg to include a From header.
No, i dont use custom templates. if you are talking about /usr/local/ispconfig/server/conf-custom How can i run manaly the nigtly cron job? or just the mail function for this?
They would be in /usr/local/ispconfig/server/conf-custom/mail/ Checking all the default templates, the only value used is "{admin_email}" or "{admin_name} <{admin_email}>" - what do you have set in System > Main Config > Mail > Administrator's email?
Okay, i dont use any conf-custom files. my admin mail is [email protected] name admin. This always worked. How can i check if there is someting wrong? i can send mail from the commandline, so it has to be in a script.
Not necessarily, it can be in your php.ini as well. ISPConfig uses the PHP mail() function by default and not the sendmail command, but it might be that you reconfigured php by using the php.ini in a way that this sendmail error happens.
That's strange. Could it be that the error message is generic bij postfix? Jan 4 00:13:31 server4 postfix / sendmail [27461]: fatal: usage: sendmail [options] Jan 4 00:13:31 server4 postfix / sendmail [27464]: fatal: usage: sendmail [options]
How did you run that script? The cli has a different php.ini, and your web could be using a different PHP version
i selected a webdomain with fast-cgi and the default php version. uploaded a script a run it. tel me how to use the php setting for ispconfig
well i am stuc. this report comes from the ispconfig cron.log .... Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: fatal: usage: sendmail [options] Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: option requires an argument -- 'f' Mon Jan 4 00:13:31 CET 2021 sendmail: fatal: usage: sendmail [options]