#1  
Old 30th April 2013, 03:10
Galopete Galopete is offline
Junior Member
 
Join Date: Apr 2013
Posts: 13
Thanks: 4
Thanked 1 Time in 1 Post
Default Trying to use this script....

Hello,

I'm trying to use the script: How To Log Emails Sent With PHP's mail() Function To Detect Form Spam

But i have this errors in my apache log:

Quote:
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
Im using Open Suse 12.3, Apache 2.2.22 and PHP 5

Any idea?

Thanks in advance.

Abraham
Reply With Quote
Sponsored Links
  #2  
Old 30th April 2013, 09:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Theseare notices and not errors, so the script works. If you dont want to see developer notices then you can change theberror reporting level in php.ini.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th April 2013, 11:36
Galopete Galopete is offline
Junior Member
 
Join Date: Apr 2013
Posts: 13
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
Theseare notices and not errors, so the script works. If you dont want to see developer notices then you can change theberror reporting level in php.ini.
Thank you Till, for your response.

This morning i have seen if the scripts works because i have my server took with a spammer, I think it's a php script in joomla. The cuestion is, there is no data on /var/log/mail.form..

Each time somebody is sending a spam, there is a report on apache's log appearing this info.
Quote:
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
PHP Notice: Undefined variable: mail in /usr/local/bin/phpsendmail on line 21
PHP Notice: Undefined index: PWD in /usr/local/bin/phpsendmail on line 33
One thing, I'm using postfix, not sendmail, but i've seen you are using the sendmail binary in the script, is this OK?

Many thanks again..
Reply With Quote
  #4  
Old 30th April 2013, 12:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

Quote:
One thing, I'm using postfix, not sendmail, but i've seen you are using the sendmail binary in the script, is this OK?
Thats ok,postfix has a sendmail binary as well.

Most likely the script can not log to the /var/log directory. Try to change the log file path in the script to e.g. /tmp/mailform.log
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in using : perfect-server-ubuntu-12.10-apache2-bind-dovecot-ispconfig-3, rezabagheri Installation/Configuration 7 30th October 2012 23:55
Cannot login to phpmyadmin penkku HOWTO-Related Questions 1 24th February 2011 10:26
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54


All times are GMT +2. The time now is 08:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.