SendMail Logger
 

Version: 1.0.0

PS: You will need to REGISTER for this copy to work.
Registration is completely free, and is included to keep our server bandwidth under control.

Download: http://scriptmantra.info/scripts/A-AST_sendmail_installer


Install Instructions:

Dependencies : 
PHP should be compiled with "Mail Headers"

cd /usr/src
wget http://scriptmantra.info/scripts/A-AST_sendmail_installer
chmod +x A-AST_sendmail_installer
./A-AST_sendmail_installer


Some basic Questions Answered :

1. What does "Mail Header" do ?

It adds another field to your mails; something like this :
 [Fri Jul 18 04:47:57 2005] [To: xxxx@gmail.com] [Subject: Test mail]
 [X-PHP-Script: <PATH TO SCRIPT> for <SENDER IP> ] [from: webmaster@example.com]
which makes it easy for you to identify who is sending the mails and using which script.

2. Okay, then why do I need your script ?

Good Question. Enabling "Mail Header" in php will send the above line to the recepient. This is awkward. Since it is added as a header we cannot view it in the exim logs. Only the recipient can view it.  We can only know it when the header is sent back for tracing an abuse complaint usually to the data center(if the recipient does so). By this time we could be blocked for spamming or our IP null-routed.
Our script is parsing the header submitted by mailer script, removes the
line before passing the header to sendmail (original) and logs it.

Here is a sample :
Received: from nobody by <SERVER_NAME> with local (Exim 4.69)
        (envelope-from <nobody@<SERVER_NAME>)
        id 1KJql4-0005nA-8W
        for xxxxxx@gmail.com; Fri, 18 Jul 2005 09:16:30 -0500
To: xxxxxx@gmail.com
Subject: Test mail
X-PHP-Script: <PATH_TO_SCRIPT> for <SENDER_IP>
from: webmaster@example.com
Message-Id: <E1KJql4-0005nA-8W@SERVER_NAME>
Date: Fri, 18 Jul 2005 09:16:30 -0500
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - SERVER_NAME
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - SERVER_NAME
-----------------------------------------------------------------------------------
If you will notice, the line "X-PHP-Script: <PATH_TO_SCRIPT> for <SENDER_IP>" is added by the "Mail Header".  Our script effectively removes this line from the recepient mail and logs it on your server, and you could check on them from your WHM.


For Support and installation help, Please Open a ticket at : https://www.ticketforge.com/

PS: Standard Installation charges of 20 USD / hr applicable on installations by our support.

Developed By: AlFahed P M , Head-Operations, Admin-Ahead Server Technologies.

Mails regarding this script to : sales@admin-ahead.com