PHP Sendmail Problem

SYSTEM INFORMATION
OS type and version REQUIRED
Virtualmin version REQUIRED

Hi there,
Please help me with following:
I have installed Virtualmin GPL from the ground up on Debian.
I haven’t made any module stuff.
Just installed the linux package sendmail.
I have created a web service with a default! PHP Configuration.
On this server, I have uploaded a form which uses the php Mail() Function.
Via NMAP I know that Port 25 is open.
It shows the default success message
but it doesn’t sends any mails to me.
I have checked the spam folder as well.
Do you know how to fix it?
Kind regards

You probably shouldn’t have done that. If this is a Virtualmin system installed in the recommended/documented way, that would remove the Virtualmin mail stack, which uses Postfix (which includes a sendmail command line mail client, which probably isn’t needed for sending mail from PHP apps, but might be one of several options for sending mail from PHP).

You need to check the mail.log or journal for clues about where the mail is going (and whether it’s actually reaching the MTA).

remember the issue with jailkit & php mail ? I’m not saying this is the issue but it is worth finding out if the OP is using a jailed user

1 Like

First, if this is a new install and you did indeed install sendmail. Start over.

Second, after doing a quick check, my suspicion that the php mail function doesn’t use the system mailer seems correct. It seems to be its’ own mail capable script. Not sure if you can set it up to auth to the local server, but, that’s what I’m seeing on a cursory viewing. (OK. It can use the local mailer but bypass auth?)

So, the question is, did you run nmap from a location that is remote to the server? Just because mail is allowed in does not guarantee it is allowed out. Networking 101. :wink:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.