Page 1 of 1

Finding domains on which email scripts are running

Posted: Fri Nov 02, 2012 7:19 am
by coolemail
Dear Friends,
I saw http://kb.parallels.com/en/1711 today.
Would this be able to be done on Plesk 11? The original one is a very old article.
Many thanks for advice, as ever.
Christoph

Re: Finding domains on which email scripts are running

Posted: Tue Nov 27, 2012 3:09 pm
by prupert
I am not sure if I understand your question correctly, but the PHP 5.3 packages already add an "X-PHP-Originating-Script" header line for messages being sent via the PHP mail functions, which you can configure in php.ini, see http://php.net/manual/en/mail.configuration.php.

Re: Finding domains on which email scripts are running

Posted: Tue Nov 27, 2012 7:55 pm
by faris
The only problem is that it doesn't give the domain - only the name of the script. (At least that's all I've seen. Maybe there's a php.ini setting I don't know about?)

Re: Finding domains on which email scripts are running

Posted: Wed Dec 05, 2012 7:21 am
by prupert
faris wrote:The only problem is that it doesn't give the domain - only the name of the script. (At least that's all I've seen. Maybe there's a php.ini setting I don't know about?)
It gives the user id of the PHP file owner. You can easily get the domain name for that user id by grepping /etc/passwd.

Re: Finding domains on which email scripts are running

Posted: Wed Dec 05, 2012 8:09 am
by faris
Ah! Excellent. Thanks.

Re: Finding domains on which email scripts are running

Posted: Wed Dec 05, 2012 11:30 am
by scott
5 years incidentally.

Thats how long thats been there :P