SYSTEM INFORMATION | |
---|---|
OS type and version | Debian Linux 11 |
Virtualmin version | Version 7.7 |
As background, I run DNS, mail services and websites on different boxes. So I do not need incoming mail for domains I host on the box serving their websites.
It appears I’m unable to send form output from WordPress sites on my Virtualmin server. I seem to get all the typical notifications from the box, like when setting up virtual servers, when nightly backups are completed, etc. I am wondering if it is something really simple like a setting someplace. I thought about the firewall but then I don’t believe that would allow all the notifications from Virtualmin to be sent.
It’s like the PHP mail is going nowhere. I have checked the mail queue and nothing is in it waiting to be sent. There are no errors in either of the site’s php_log files.
Executing this addressed to myself works just fine from the command line:
echo "Subject: Test Mail" | /usr/sbin/sendmail -v your-email@example.com
Executing this shows nothing out of the ordinary numerous break-in attempts - but no errors I can see when trying to send anything out:
tail -f -n 50 /var/log/mail.log
Accessing this simply shows me that it failed - but does not give me any error indication at all:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$to = 'your-email@example.com';
$subject = 'Test Mail';
$message = 'Hello, this is a test email.';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers)) {
echo "Email sent successfully";
} else {
echo "Email sending failed";
}
?>
I’m exercising caution since these are live sites.
It’s as though the outgoing messages just go into a black hole.
Thanks for any ideas!
Charles