I have an issue with running of the php-scripts. It runs via Cron (as it consumes a lot of memory), after aprox. 10 minutes after the start-time of the script the following error appears in the error-log file (path - /var/www/vhosts/system/subdomain.domain.tld/logs/error_log)
[Tue Feb 17 19:46:57.003326 2015] [fcgid:warn] [pid 28629] (104)Connection reset by peer: [client XX.XXX.XXX.XXX:48450] mod_fcgid: error reading data from FastCGI server [Tue Feb 17 19:46:57.003368 2015] [core:error] [pid 28629] [client XX.XXX.XXX.XXX:48450] End of script output before headers: Name_of_the_script.php
For a very strange reason another PHP-script, that has the same code, but just runs less arrays, and therefore consumes less memory and can be run via browser - works perfectly from both browser and the cron. The php.ini for this domain set up correctly (see the attachment)...
There seems to be confusion and documentation conflicts around whether we should be whitelisting localhost or not when using Mailing Lists.
In this documentation it suggests that localhost is no longer needed, and in fact needs to be removed from the whitelist if Outbound Spam protection is to function correctly: [URL] ....
But on the other hand, this documentation suggests to add localhost to the whitelists, even though the warning says otherwise, and that outgoing mailing list mail will still be processed by Outgoing Spam Control. [URL] ....
Through trial and error, i've found that my mailing lists were not able to send mail to external email accounts unless localhost is whitelisted.
If I want all mail scripts to be going through the Outbound Spam Control, and also having my mailing lists working, should I be adding localhost to my whitelist?
WARNING during statistics_collector execution: : statistics_collector: Unable to get dir size of /var/lib/mailman/lists/14 System error 2: No such file or directory statistics_collector: Unable to get dir size of /var/lib/mailman/archives/private/14.mbox System error 2: No such file or directory statistics_collector: Unable to get dir size of /var/lib/mailman/archives/private/14 System error 2: No such file or directoryClick to expand...
I maintain a server with a few domains. The server runs Plesk and Mailman. There are about 50 mailing lists with number of subscribers ranging from a couple people to a few hundred people. All work fine.
There is an additional list with around 2500 subscribers. Messages sent to this list are being received with nearly 500 identical "Received-SPF: pass" lines. Besides seeming odd, it's particularly problematic as some domains are bouncing the emails because the header is too large.
This behavior started after I upgraded from Plesk 11.x to 12.x.
The SPF lines look like this:
Received-SPF: pass (SERVER-HOSTNAME-HERE: localhost is always allowed.) client-ip=127.0.0.1; envelope-from=BOUNCE-LIST-ADDRESS-HERE; helo=SERVER-HOSTNAME-HERE;
Where SERVER-HOSTNAME-HERE is our hostname and BOUNCE-LIST-ADDRESS-HERE is the list's bounce address.
For what it's worth the server hostname and the domain of the list do not match.
This issue seems to be tied to the number of subscribers. We made a new list with a few subscribers and messages looked fine. We added the 2500 subscribers to the new list and then we saw the plentiful Received-SPF: pass entries.
apparently Envelope-From, Sender and Errors-To headers are set to a wrong address for messages from mailman to the list-owner. This is particularly true for mails like 'message requires approval'.
It seems like the plesk<->mailman magic results in all list-domains being written to the end of /var/lib/mailman/Mailman/mm_cfg.py in the following format: add_virtualhost('list.DOMAIN').This in return results in mail headers Envelope-From, Sender and Errors-To of mailman system mails like described above being set to mailman-bounces@DOMAIN, where DOMAIN is the one from the last add_virtualhost entry.
In my opinion, this obviously is a bug. Maintainance mails from mailinglists have wrong headers set, often with a domain that belongs to a completely different customer than the mailinglist.
I found the following discussion on mailman-users mailinglist from 2008 which discusses the same issue - also a plesk setup: URL....
OS: CentOS 6.5 (Final) Plesk version: 12.0.18 Update #16, last updated at Sept 11, 2014 04:07 AM PHP: 5.4.32
we created a new mailing list email@example.com and we tried to send a message, as administrator, to the list and to the temporary users subscribed.But Mailman dones't send anything ! And we receive this error:
I run a server and have ONLY problems if i am sending mails to domains hosted by google ...
OSUbuntu 12.04.5 LTS Plesk version12.0.18 Update #24, last updated at Nov 20, 2014 06:32 AM
Here a little bit about my configuration:
a) I have set a Reverse DNS (xyz.mydomain1.com) - My hostname! b) i run 4 domains on this server (mydomain1, mydomain2, mydomain3, mydomain4) c) my DNS settings are made by myself in my Domain Provider account d) i also set SPF records and i use Domain Keys
Everything works like a charm but following now the outputs with my problems:
When I set up spamassassin to store spam in the spam folder of my mailbox, it doesn't add any X-Sapm headers nor tags the subject. All I found so far was an old thread where a plesk employee stated that it will be fixed in 'a' future version.
We are facing this problem on a Plesk (serverpsa v8.6.0_build86080910.19 os_CentOS 5) The scenario is that on this server we have around 5 domains, one of them is the main domain that is also in the hostname.
On the main domain some custom social networking PHP script is running that sends out mails using SMTP authentication, now when welcome mail or invites or notification mails or any such mail are sent through the script, it includes other domains in the headers randomly:
Received: (qmail 15896 invoked from network); 24 Nov 2008 18:45:05 -0500 Received: from somedomain.com (HELO server.maindomain.com) (xyz.xyz.xyz.xyz).....
Have a new VPS, changed DNS and all is resolving fine. Check MX recods and again all is well. I can SEND email fine, and it is delivered, but ALL email sent to my VPS with LiquidWed is being rejected.
I checked the mail statistics page in WHM and sure enough there are nearly 300 rejected messages including benign stuff like gmail and monster.com (I had to do an arin lookup to see whom the IP's belonged to)
Any suggestions on how I can fix? I searched before starting the thread and found:
But the OP in that thread said the advice didn't work.
I was checking my emails today, and have had several that have bounced back. They all returned a message like this:
Hi. This is the qmail-send program at web1.daniel15.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out.
<email address removed>: 220.127.116.11 does not like recipient. Remote host said: 550 5.7.1 Your mail from IP 18.104.22.168 was rejected. We can't currently accept your message. : <email address removed> Giving up on 22.214.171.124.