Email not sending

Dear all Pros,

I wonder, I set email use SMTP Host not sending email I do disable SMTP Host also same not sending.

I do check my sendmail it’s running.

Btway I’m using ASTPP V4.0

Please help me if anyone have any idea about it.

Appreciate your assistance.

Logs. Guessing does not help.

Hello @shah8417

Willing to assist you.

Can you please share screenshots of configuration page without your SMTP details(For security purpose)? And also share SMTP host and SMTP port number.

You also need to check the status of cron “Broadcast email”. Is this cron running properly or not?

Hi All I am running ASTPP version 4.0 and have similar issues.
snmp not working error Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method, I have been using Amazon SES to send out an email notification. this works fine on fusionpbx and does not work on ASTPP.
can someone advise?
Regards,

mail logs help. Guessing does not

This is the error message we are getting /var/log/astpp/astpp_email.log
Email details —

–B_ALT_62335a4d3eb35–
The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
root@gw:/var/log/aroot

“mail log”

Some how it was still holding the old config of googlemail. i have reloadxml, relaodacl and reload mod_sofia.
now it is showing this info inroot@gw:/var/log/astpp# tail -f /var/log/mail.log
Mar 17 19:41:31 gw sm-mta[10683]: 22HJfVVq010683: Saved message in /var/lib/sendmail/dead.letter
Mar 17 19:43:15 gw sm-mta[7908]: 22G1O1IG011132: to=info@unidaysconsultants.com, delay=1+18:19:14, xdelay=00:17:28, mailer=esmtp, pri=8581610, relay=mx1.pub.mailpod10-cph3.one.com. [104.37.34.70], dsn=4.0.0, stat=Deferred: Connection timed out with mx1.pub.mailpod10-cph3.one.com.
Mar 17 19:43:15 gw sm-mta[7908]: 22H0g6e9013319: to=info@mydomain.com, delay=18:17:29, xdelay=00:00:00, mailer=esmtp, pri=9390000, relay=mydomain.com., dsn=4.0.0, stat=Deferred: Connection timed out with mydomain.com.
Mar 17 19:43:15 gw sm-mta[7908]: 22H0g6eA013319: to=info@mydomain.com, delay=18:17:29, xdelay=00:00:00, mailer=esmtp, pri=9390000, relay=mydomain.com., dsn=4.0.0, stat=Deferred: Connection timed out with mydomain.com.
Mar 17 19:43:15 gw sm-mta[7908]: 22GNKw75016220: to=test@mydomain.com, delay=20:22:16, xdelay=00:00:00, mailer=esmtp, pri=10650499, relay=mail.agileops.co.uk., dsn=4.0.0, stat=Deferred: Connection timed out with mail.agileops.co.uk.
Mar 17 19:43:15 gw sm-mta[7908]: 22GNO7tE005383: to=test@mydomain.com, delay=20:19:08, xdelay=00:00:00, mailer=esmtp, pri=10650501, relay=mail.agileops.co.uk., dsn=4.0.0, stat=Deferred: Connection timed out with mail.agileops.co.uk.
Mar 17 19:43:15 gw sm-mta[7908]: 22GNJ1rc016028: to=info@mydomain.com, delay=20:24:14, xdelay=00:00:00, mailer=esmtp, pri=10651572, relay=mydomain.com., dsn=4.0.0, stat=Deferred: Connection timed out with mydomain.com.
Mar 17 19:45:12 gw sm-mta[10196]: 22H8s1i1009608: to=irfan@accounting.com, delay=10:51:11, xdelay=00:08:44, mailer=esmtp, pri=4081560, relay=accounting-com.mai…ction.outlook.com. [104.47.57.110], dsn=4.0.0, stat=Deferred: Connection timed out with accounting-com.mail.protection.outlook.com.
Mar 17 19:45:12 gw sm-mta[10196]: 22H5M6cB028893: to=info@mydomain.com, delay=14:01:17, xdelay=00:00:00, mailer=esmtp, pri=6600000, relay=mydomain.com., dsn=4.0.0, stat=Deferred: Connection timed out with mydomain.com.
Mar 17 19:45:12 gw sm-mta[10196]: 22H5C6cB028478: to=info@mydomain.com, delay=14:11:17, xdelay=00:00:00, mailer=esmtp, pri=6690000, relay=mydomain.com., dsn=4.0.0, stat=Deferred: Connection timed out with mydomain.com.

May want to check the mail queue to see if it is still trying to send old emails out with those incorrect domains.

Hi @KNERD I have installed a new astpp 5. server and configured the smtp details. still get the same error for emails and they are not been send. I will appreciate if you can help.
Note I am using STARTTLS Port , 587 error n the astpp_email.log shows authentication required and I have the correct credentials on the server.

root@ip-10-20-1-5:/home/admin# tail -10 /var/log/astpp/astpp_email.log
Failed to send AUTH LOGIN command. Error: 530 Must issue a STARTTLS command first

from: 530 Authentication required
The following SMTP error was encountered: 530 Authentication required

to: 503 Error: need MAIL command
The following SMTP error was encountered: 503 Error: need MAIL command

data: 503 Error: need MAIL command
The following SMTP error was encountered: 503 Error: need MAIL command

500 Error: command not implemented

The following SMTP error was encountered: 500 Error: command not implemented

Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
root@ip-10-20-1-5:/home/admin#

Please advice.
Thanks

Looks like it wants you to set up an SMTP account in the configuration. Have you done that with correct credentials?

Another suggestion is to remove sendmail and install postfix. They are basically the same thing, but postfix has much better log explanations of what is going on.

yes the i have attached it for your reference. on the smtp host should we give SSL:// or tls:// I tried both ?

Good idea i have configured postfix on my nagios server will install it and let you know.

Did you get it resolved?