Finding domains on which email scripts are running

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Finding domains on which email scripts are running

Unread post 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
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Finding domains on which email scripts are running

Unread post 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.
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Finding domains on which email scripts are running

Unread post 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?)
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Finding domains on which email scripts are running

Unread post 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.
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Finding domains on which email scripts are running

Unread post by faris »

Ah! Excellent. Thanks.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Finding domains on which email scripts are running

Unread post by scott »

5 years incidentally.

Thats how long thats been there :P
Post Reply