Hi there good people
these are my system properties:
Osticket version 1.15.8
Apache: 12.4.29 (Ubuntu)
Mysql : 7.2.24
Ubuntu: 18.04.13

At Email/diagnostic, while trying testing the system,it delivers this over-talked error: Unable to email via php mail function:mail() returned failure

I've looked it up for the solution on other threads, and like it s been guided to do, i'v changed the Default MTA options back and forth but it hasn't worked out for me.

My #tail -f /var/logs/apache2/error.log delivers:

sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found


and tail -f /var/logs/apache2/osticket_error.log.1 is saying that:

[Tue Sep 06 19:27:06.609944 2022] [php7:warn] [pid 16149] [client 192.168.x.x:5394] PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions) in /var/www/html/osticket/upload/include/class.ostsession.php on line 87, referer: http://172.x0.x.x0/scp/login.php

[Tue Sep 06 19:36:22.817604 2022] [php7:error] [pid 1490] [client 192.168.x.x:5471] PHP Fatal error: Uncaught Error: Call to undefined function _S() in /var/www/html/osticket/upload/include/class.mailer.php:612\nStack trace:\n#0 /var/www/html/osticket/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)\n#1 /var/www/html/osticket/upload/bootstrap.php(316): Mailer::sendmail('leonardo@cricket...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')\n#2 /var/www/html/osticket/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')\n#3 /var/www/html/osticket/upload/main.inc.php(28): Bootstrap::connect()\n#4 /var/www/html/osticket/upload/scp/login.php(16): require_once('/var/www/html/o...')\n#5 {main}\n thrown in /var/www/html/osticket/upload/include/class.mailer.php on line 612, referer: http://172.x0.x.x0/scp/login.php

[Tue Sep 06 19:36:32.730458 2022] [php7:error] [pid 1489] [client 192.168.x.x:5479] PHP Fatal error: Uncaught Error: Call to undefined function _S() in /var/www/html/osticket/upload/include/class.mailer.php:612\nStack trace:\n#0 /var/www/html/osticket/upload/include/class.mailer.php(632): Mailer->send(Array, 'osTicket Fatal ...', 'Unable to conne...', Array)\n#1 /var/www/html/osticket/upload/bootstrap.php(316): Mailer::sendmail('leonardo@cricket...', 'osTicket Fatal ...', 'Unable to conne...', '"osTicket Alert...')\n#2 /var/www/html/osticket/upload/bootstrap.php(201): Bootstrap::croak('Unable to conne...')\n#3 /var/www/html/osticket/upload/main.inc.php(28): Bootstrap::connect()\n#4 /var/www/html/osticket/upload/scp/staff.inc.php(20): require_once('/var/www/html/o...')\n#5 /var/www/html/osticket/upload/scp/tickets.php(17): require('/var/www/html/o...')\n#6 /var/www/html/osticket/upload/scp/index.php(17): require('/var/www/html/o...')\n#7 {main}\n thrown in /var/www/html/osticket/upload/include/class.mailer.php on line 612

Thanks

    leonardo07746

    Your system cannot connect to the database for some reason. Fix those issues and you should be able to continue.

    Cheers.

    Help. it was Fixed, but still the same problem.

    Unable to email via SMTP:192.168.xx.xx:25 [reportes@cricket.cu] Failed to set sender: reportes@cricket.cu [SMTP: Invalid response code received from server (code: 530, response: Authentication required to send mail from 172...30)]

    I overlooked this error, thought it wasn't that important, my bad
    It happens when no authentication is required for smtp and system default address is set as DEFAULT MTA. ok, I change to authentication Yes, port:25, the username and pass are already set above, while saving the all config the smtp delivers:

    authentication failure [SMTP: STARTTLS failed (code: 220, response: Begin TLS negotiation)]

      leonardo07746

      Port 25 is a relay port and doesn’t accept authentication. You need to use port 587 or 465.

      Cheers.

      7 months later
      Write a Reply...