mail.php not working with simplest unsecure SMTP configuration
-
Hi, I have a local exchange which will accept my domain emails w/o authentication. It's also plain text SMTP on port 25... I have zero issues sending a test via pfSense web UI. However, when trying to run it from the shell, no email comes through. Below is an example of a command that does not work. Any clues? Should I start using authentication just to test? Although I don't see much reason considering that from pfSense the test worked. Is there any way to snoop/spy on PHP and find out what was called via pfSense UI when I hit the SMTP test button?
echo test | mail.php -s="Blah"
-
@JZng said in mail.php not working with simplest unsecure SMTP configuration:
will accept my domain emails w/o authentication. It's also plain text SMTP on port 25...
Yeah, that can happen.
There are still places left where 'users' can inject mail using port 25.
Don't ask me why ...Mail clients (pfSense is not a mail server, it behaves like a mail client) should not use port 25 - even if the ISP, or who ever is your mail server supplier, offer that possibility. Port "25" is used for inter-mail-server communication.
Go for submission = port 587 or better smtps = port 465.Btw :
echo test | mail.php -s="Blah"
works for me - pfSense drops the mails on my mail server for delivery, using port 465. -
Sadly it's my fault. I hit TEST on the Advanced>Notification screen but I never hit save... definitely works now when mail.php is called from the shell.
I did start using Node RED as my email middleman with curl being called from pfSense... that also worked well. However, generic mail.php is obviously much simpler.
This is the piece I'm trying to automate notifications for: https://forum.netgate.com/topic/118401/openvpn-server-notification-on-connect
Thanks for the input, thread can be closed...