All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
138 views

Mail is not sent via php mail() on CentOS7 DirecAdmin Exim php fcgi

I spent the whole day trying to fix this problem, so I decided to share. Maybe it will save someone time) Problem: Mail is not sent via php mail(); The Exim log shows nothing. System: CentOS7 ...
White Crown's user avatar
0 votes
1 answer
489 views

PHP mail() returning FALSE but whole rainloop works - Postfix, Dovecot, PHP 7.3

I had this problem earlier but somehow managed to repair it. One month after I had to reinstall Dovecot and Postfix and the same error appeared. In my php.ini which is located at /etc/php/7.3/apache2/ ...
Junek's user avatar
  • 3
0 votes
1 answer
152 views

Multipart text/html email from Invision Community not parsing correctly [closed]

First of all, yes I have contacted Invision Community support. Yes, I am a paying user with an active license. We went back and forth for several hours and all they have to say is there's nothing ...
Krydos's user avatar
  • 11
1 vote
1 answer
7k views

Certificate problems when sending mail via smtp (tream_socket_enable_crypto(): SSL operation failed with code 1)

I am new on this board. I also posted the issue in the CraftCMS-board, but I think it is more related to this one. I hope it fits in here. I found some similar posts here, but unfortunately, but none ...
Luke's user avatar
  • 111
1 vote
0 answers
122 views

How to find malicious PHP script that sends emails from my domain?

My organization mail has been blocked by a malicious PHP script for several days. I learned that spam messages are sent via the mail() function. How can I find and delete this script on my server? I ...
carn fex's user avatar
0 votes
1 answer
2k views

Laravel Mailtrap SMTP Crack

I have an older Laravel 5.7 project handed to me. Laravel's current version is 8. I don't know if these details are relevant to my problem, but I'm adding them anyway. I have a test server running off ...
Daemonleak's user avatar
0 votes
1 answer
1k views

AWS SES emails going to spam

I have a domain on name.com and the website is hosted on AWS Lightsail. I have set up SES service for the emails. I am doing a curl request to my domain to send an email from the email server which is ...
Pushprajsinh Chudasama's user avatar
-1 votes
1 answer
331 views

I am getting following error while configuring office365 mail on contact us form in laravel 7. please anyone can

Swift_TransportException (554) Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process ...
Bikash's user avatar
  • 1
0 votes
1 answer
118 views

Does Gmail require TLS for receiving mail?

I am currently working on sending e-mail in PHP directly with stream_socket_client(). This is working pretty well so far. I am able to send HTML e-mail with a DKIM signature that passes all the tests ...
Kline's user avatar
  • 247
1 vote
1 answer
7k views

PHP mail() function working from command line but not working with apache

My problem is that php script which has to send mail doesn't send it if I run it in browser, but works in cli. This doesn't help PHP's mail() function working in CLI but not in Apache In both /...
Pavlo Kovalov's user avatar
0 votes
1 answer
1k views

Postfix sends plain text emails from PHP but rejects html

After moving to another host my site stopped sending E-mails (UTF-8 HTML). But I'm still able to send text emails like these: echo test | mail -t [email protected] -s test php -r 'mail("[email protected]",...
oxfn's user avatar
  • 121
0 votes
0 answers
819 views

Sending mail with sendmail - not sending

I have apache2.4 web server with PHP on Debian server. I noticed that my PHP mail() function doesn't send any mail. Looked at the spam folder as well. I cleared all the mail logs on my server and ...
TheUnreal's user avatar
  • 119
0 votes
0 answers
27 views

Python "alternate malfunction"

I have a web application that runs over a Centos Server. It was written in php and python. Suddenly without modification something starts to works in alternate and randomly way (one time fileB.php is ...
user31929's user avatar
  • 101
0 votes
1 answer
432 views

Forward mail using qmail to multiple recipients dynamically

I am trying to forward an incoming mail to multiple recipients. The recipient's addresses are stored inside a mysql database, so I need to call a script to get the addresses before forwarding the mail....
JoJota's user avatar
  • 3
0 votes
1 answer
1k views

Send mail via cronjob/php, RHEL

I am trying to send an e-mail by a cronjob using a php script. The script itself works fine when executed in a shell. When it is run by cron, the attachment is missing. OS is RHEL 7 Cron entry : 30 ...
Wayne's user avatar
  • 1
1 vote
0 answers
88 views

Why is my domain's email forwarding working really strangely?

This is a maddening problem that makes absolutely no sense to me, so I'm going to see if I can spell it out step by step and at least figure out WHERE the problem is. I have a PHP form that sends an ...
ShinySlowqueen's user avatar
0 votes
1 answer
391 views

pipe email hosted at Amazon SES to ec2 hosted php script

I have a website hosted on an amazon ec2 and I have the websites email address hosted at amazon SES, we also use amazon workmail to access the emails and send out emails. However now what we would ...
Jayreis's user avatar
  • 145
3 votes
1 answer
754 views

Hosting multiple websites (Apache Virtual Hosts), Postfix settings for sending mail FROM those domains?

I am not sure that this was the right solution in the first place but I have Postfix up and running on my Ubuntu VPS with G-Suite using relayhost = [smtp.gmail.com]:587 Mail is delivering fine, ...
Jesse's user avatar
  • 31
3 votes
3 answers
4k views

PHP's mail() function working in CLI but not in Apache

I'm using msmtp as a relay and trying to send an email with the mail() function. It works perfectly in CLI, but does nothing in Apache. My PHP configs for cli and apache are identical, there are no ...
Jake S.'s user avatar
  • 161
1 vote
2 answers
3k views

imapsync or PHP to migrate email

I'm writing a simple web app with which people can migrate their email from one server to another. I've read about imapsync and tried it out. So far it works very good and seems to be a good solution. ...
SomeCode's user avatar
0 votes
1 answer
155 views

Send emails to multiple domains via wordpress

I have a small Digital Ocean VPS that at the moment is configured with 2 small and WordPress websites. I want both WordPress instalations to be able to send emails via zoho.com. (DNS is configured ...
wadge's user avatar
  • 161
0 votes
1 answer
597 views

What is the simplest possible sendmail-compatible MTA that doesn't run as a daemon and can do local delivery?

In order to test mail sending while developing websites in PHP, I want to just save all sent mail locally in mbox format. In order to do that, I was going to set sendmail_path in php.ini to something ...
jojman's user avatar
  • 125
0 votes
1 answer
593 views

%CPU at 99% when cronjob runs php script every minute

I am using a debian server and for some reason when I run this php script using crontab every minute it says that I am using 99% of the %CPU with the php command (in the cronjob the command is php) ...
Michael's user avatar
  • 141
0 votes
1 answer
2k views

Amazon SES not sending to multiple recipients (AWS SDK for PHP)

I've set up Amazon SES on my server. I'm using AWS SDK for PHP. It's version one. Here's the documentation. Here is the code I'm using to send: $to = $_POST['mailto']; $response = $email->...
Tania Rascia's user avatar
0 votes
1 answer
1k views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
Nick Borisenko's user avatar
1 vote
0 answers
232 views

Handling errors with php on nginx reverse proxy, and mail response to admins

Is there a way to access the server response from php once Nginx detects an error, and mail the server response to the admins while at the same time show a custom error page to the visitor? Currently ...
jacmkno's user avatar
  • 115
0 votes
2 answers
428 views

How do I send (legitimate) email on a dedicated server as appearing from different domains?

We need to send email using PHP's mail() function (Actually CakePHP, which wraps that function) directly from our dedicated server (app.ourserver.com). We would like to send mail from app.ourserver....
MKUltra's user avatar
0 votes
1 answer
2k views

Configure Linux and PHP to send email via script instead of SMTP

I have a server with a static IP and also a domain pointing to it. Because it is behind a firewall that blocks SMTP (ingoing and outgoing), I am not able to send any EMail from it. To be able to send ...
paolo's user avatar
  • 387
0 votes
1 answer
2k views

Mercury not sending emails

I have a Mercury SMTP server running on localhost (announcing as 127.0.0.1) right now. Unfortunately, I am unable to send emails from it to GMail. I tested sending an email to myself using ...
rassa45's user avatar
  • 99
0 votes
1 answer
89 views

PHP mail with domain in body

Running the following code snippet does not work. The email is never received. Note that I am using dummy values for email and domain. $to = "[email protected]"; $subject = 'Mail Test'; $headers = ''...
anterys's user avatar
1 vote
2 answers
5k views

How to remove Received: (from apache@localhost) and sendmail version from headers

How can I remove Received headers from message? I want to hide apache user name, and sendmail version. Message (send from PHP script): Delivered-To: p[email protected] Received: by 10.182.138.73 ...
Peter's user avatar
  • 167
-4 votes
1 answer
675 views

How to detect which PHP script is sending SPAM [duplicate]

A php script is sending tons of emails. I want to detect what is the source. All emails are sent by the use www-data which the user used by apache. When I check process, I have this result : www-data ...
Dougui's user avatar
  • 167
-1 votes
1 answer
776 views

Exim4 server setup and configuration with remote SMTP

I am trying to setup exim4 server with remote SMTP server. Here is my configuration for Exim4. dc_eximconfig_configtype='smarthost' dc_other_hostnames='test.com' dc_local_interfaces='127.0.0.1;' ...
Ahsan Mohyuddin's user avatar
1 vote
1 answer
825 views

Force PHP mail to avoid using postfix root@myorigin; use /etc/mailname instead?

I recently posted an issue setting up a mail server with postfix and virtual aliases. I solved the problem here: Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts To sum it up, I set ...
Mookman288's user avatar
3 votes
1 answer
325 views

Server "shows signs of being infected" - how to resolve email blacklisting

I help manage 178.32.51.182 and noticed we were getting bounced emails because of several blacklists those are: CBL FABELSOURCES Spamhaus ZEN so I checked the first blacklist here: http://cbl....
arcanine's user avatar
  • 133
-1 votes
1 answer
160 views

Ubuntu Server; Email from PHP stopped working

I currently have a VPS server running Ubuntu. I have used this server for a while and have was using the built in mail function for PHP. Now for reason, emails are no longer sent. According to PHP, ...
Stephen Cioffi's user avatar
1 vote
1 answer
988 views

Postfix on CentOS 6.6 is overwriting my return-path header?

I'm dealing with this problem on my CentOS 6.6 server: when I send a mail with PHP/phpBB (mail() function), Postfix overwrites the return path with apache@servername. The issue is also expained in ...
Dr. Gianluigi Zane Zanettini's user avatar
0 votes
2 answers
5k views

New CentOS 7 server - Sending mail from a PHP application

Apologies for the newbie question but i'm hoping someone can provide me with some help/steps. I am in the process of migrating a website from a managed shared hosting account online to a new CentOS 7 ...
rosey85uk's user avatar
0 votes
1 answer
729 views

SMTP-Mailing with PHP works - but not with PHP-Cli

I mentioned a strange behavior on my webpage: If I try to use Joomla to send Mails via SMTP it works fine; no problem at all. But: If I try to use a PHP-CLI-Script the action fails (same source code)....
MyFault's user avatar
  • 913
-1 votes
1 answer
148 views

Configure postfix to run filter only with selected mail else all other mail pass without being filtered

I am running postfix and I'm using ubuntu 14.04. I created php script and i injected it into postfix to filter incoming mail. All run as I wish. But Now I want my postfix to run filter only with ...
xtensa1408's user avatar
3 votes
2 answers
2k views

Fail to trigger my php script when mail received by my Postfix

I am running Postfix mail on ubuntu 14.04.1. I want to "trigger a PHP script when Postfix server receives a mail" After investigation and the help of many tuto, . I have configured "postfix" & "...
xtensa1408's user avatar
1 vote
2 answers
2k views

PHP Mail Delayed Shared Hosting [closed]

I'm developing a Drupal site on very generic shared LAMP hosting. My client insists on using the shared hosting company for some reason. (Is it OK to mention the hosting company?) E-mails are sent ...
jchwebdev's user avatar
  • 107
-1 votes
1 answer
4k views

Sending email from PHP through exchange [closed]

I figured serverfault might be a better fit for this question. I'm trying to send emails with PHP mail() function. PHP returns no errors and says the email has been accepted whether it sends or not. ...
Shadymilkman01's user avatar
2 votes
2 answers
855 views

PHP emails, Postfix and Message Queue

I've been running a web platform that needs to send a considerable amount of emails daily. At the implementation date I and my partner decided to setup Postfix on the server and use Swift Mailer class ...
TCB13's user avatar
  • 1,206
0 votes
1 answer
2k views

mail.log for PHP mails [closed]

I got a new server. When I get a new server I always activate mail.log in php.ini. I did again too. Path is /var/log/phpmaillog I restart httpd and I also created the file with touch /var/log/...
borayeris's user avatar
  • 213
1 vote
0 answers
596 views

PHP mail() function - "from" name overwritten by Exchange Server

I originally posted this on stack overflow but was told it might be better placed here on Serverfault. I am trying to send a very simple email from a php script mail($to,$subject,$message,$headers);...
TomKDev's user avatar
  • 11
1 vote
1 answer
260 views

Dont allow to override php.ini values for certain headers as a root

We are having this issues in shared hosting environment. FYI: Under shared hosting environment each user can have a php.ini in their folder to override the global settings. There will be many users ...
Mani's user avatar
  • 215
1 vote
1 answer
6k views

How to configure SPF and DKIM to prevent mail going to spam folder

When creating a mail with PHPMailer my emails are getting sent to the spam folder of my recipients mailbox I have been told I need to configure my SPF and DKIM correctly, I think I have done this ...
neeko's user avatar
  • 123
1 vote
2 answers
1k views

How to pass PHP mail.log output to a script

I'm logging all php mail output using the mail.log setting in php.ini. Rather than log to a file I want to have the log data sent to a script for parsing in real-time to raise alerts. I have tried: ...
Peter's user avatar
  • 113
8 votes
4 answers
5k views

cron job sending emails in a wrong charset

I have following command in a cronjob: */5 * * * * php /var/www/domain/yii rss/parse It outputs email in a wrong charset: Content-Type: text/plain; charset=ANSI_X3.4-1968 But when i launch that ...
Alexander Kim's user avatar

1
2 3 4 5