I did recently mention in the thread about the debug thread I created, that despite set to ‘0’ debug logs are still being generated even with the newest code.
The only two errors I am seeing are:
ERROR - 2023-08-25 00:00:34 --> Severity: Notice --> Undefined index: billseconds /opt/ASTPP/web_interface/astpp/application/models/common_model.php 204
ERROR - 2023-08-25 00:00:34 --> Severity: Notice --> Trying to access array offset on value of type bool /opt/ASTPP/web_interface/astpp/application/libraries/Usertracking.php 224
In your jira bug report you said you got an error in the ASTPP log that says “Authentication not enabled”. Show us your SMTP setup in the ASTPP UI. Especially the host configuration and port #. If you are using a service like gmail it should be ssl://smtp.googlemail.com using port 465.
The password should be a one time device password obtained on the google end if you have 2FA set up on the google end. Google will only verify that password on the first try and then it doesn’t need it anymore.
Maybe have a look at the CodeIgnitor Email Class documentation and see if you can find any clues in there.
Thanks for that CodeIgniter link. While I can see better how they are using a lot of the code in the whole project now, there is no specifics on the correct format for the “smtp_host.” I suspect that could be my problem due to the STMP video they made for version 4 using Gmail.
After spending some time figuring out Gmail’s new method to connect to their mail system, I got it set up and clicked on one of the “Notify” buttons on the main page. The email did go out, but it sent a double email (correction: was emails stuck in the queue).
I also spent some time on that thread you suggested. It is completely outdated. And the output from the php command only returns some output which looks like a curl command was ran.
:/var/www/html/astpp/cron# php cron.php BroadcastEmail
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Since it is not functioning plain ol’ SMTP, either it is bugged, or I am doing some setting incorrectly.
Since the documentation is devoid of any setting help, I don’t know which.
I think the docs needs to be put on some place where others could contribute.
UPDATE: The notification systems seems to be spamming me at this point.
I have three different accounts set up, and it is sending each account a low balance notification every hour
Can the documentation be put on some sort of thing like a wiki where others can contribute? Issues like this is nowhere to be found in your documentation, and others cannot help with it.
No trying to hijack an apparently fixed issue and thread, but I’m experiencing similar issues with the SMTP config.
All parameters are set (port 465), tried ss://, ttl://, and without them plain SMTP Host. Logs do not show anything. I’m using POSTFIX.
I tried to edit the CodeIgniter file mentioned on this thread :
// var $mailpath = "/usr/sbin/sendmail"; // Sendmail path
var $mailpath = "/usr/sbin/postfix"; // POSTFIX path
var $smtp_crypto = "tls"; // SMTP Encryption. Can be null, tls or ssl.
Same results, all my messages status stay at “pending”.
I can mail from this server from other app, without an issue, using Postfix. so Postfix parameters connects properly with the SMTP host, and sends email correctly and without problem. It is just my ASTPP installation not sending messages, and no logs whatsoever (related to mailing).
Is there something else I need to tweak in order to make ASTPP send emails using POSTFIX ? (and log mailing activity properly ?)
There is an option to have ASTPP send locally sendmail/postfix, but it does not seem to function at all.
I put in a bug report on that issue, and it is not making much progress.
Since you stated
It seems like you have the Sendmail option selected in settings, rather than SMTP selected.
For your line
There is no need for that. When postfix is installed, it already places a symbolic link.
I can’t find where else in ASTPP settings I can set SMTP instead of Sendmail.
My Installation is ASTPP V6 Community version, and the notifications settings looks like this:
Also, I verified that there were no symlink created for postfix on my installation (for some reason), so I went ahead and just renamed the existing “sendmail” (usr/sbin) and created a Symlink “sendmail” pointing “postfix”. My php.ini has this line too: /usr/sbin/sendmail -t -i
I rebooted it, and still not able to send notifications. Also the logs, only “astpp.log” appears to be recording some info. The other log in ASTPP log directory (astpp_email.log) is still blank (0 bytes) since the installation of ASTPP.
When SMTP is enabled, trying to adjust postfix or sendmail is is not going to help. The system is then using a mail client from CodeIgniter. You will have to check the local logs, and the mail server logs on the mail server.
Only when SMTP is disabled, and notifications set to yes will it use sendmail or postfix.
I tried that too. Same results. I even hard removed (purge) both SENDMAIL and POSTFIX, and I re-installed POSTFIX only (from scratch). Then I configured the parameters in Postfix Master files, and mail service is working again perfectly fine, whenever I use it to send mail from any other application / program installed (even Fila2Ban is sending me alerts) using this postfix config.
It is just my ASTPP installation, it’s like it is doing nothing when I attempt to send notification from this program. SMTP is disabled in ASTPP settings, but with Email Notifications “enabled”, and nothing appears under any LOG (either, regular Mail logs, or /var/log/astpp/astpp_email.log (which is completely empty). By the way, regular Mail LOGS (/var/log/mail.log , /var/mail/mail.err, etc.) from my server are working as expected. They are being populated with info whenever I use any other application to send mails through this POSTFIX running service.
Not sure where else to look at to try to troubleshoot specifically ASTPP notifications. Maybe will work if I re-install Sendmail, I haven’t tried that yet, but it will require to reverse my hours of settings in Postfix. And at the end of the day, l won’t use Sendmail on this server anyway (I want to keep POSTFIX for production server).
Thanks guys for trying to help me with this.
I tried testing by using SMTP with Gmail too, didn’t work either, and no logs (related to ASTPP notifications and/or ASMTP using SMTP or Mail instruction) to troubleshoot at all.
I guess I am just giving up. I will keep this server without notifications from ASTPP for now (I will try to
use other mechanism for alerts, maybe a Cronjob)
KNERD, hope your bug report gets solved, keep us updated on this thread. Thanks.
We tried to understand your concern as well as we also checked in our set-up.
I would like to share configuration steps as well as result of our execution.
open this link to verify your configuration : Sign in to your account
Even after doing any further activity after watching this video and still your problem is same as earlier then let me know here.
Another way can be : We would like check and fix problem directly on your server and for this activity your need to provide server access to us if this is convenient to you.