Trying to use this script....

Discussion in 'HOWTO-Related Questions' started by Galopete, Apr 30, 2013.

  1. Galopete

    Galopete Member

    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:

    I´m using Open Suse 12.3, Apache 2.2.22 and PHP 5

    Any idea?

    Thanks in advance.

    Abraham
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. Galopete

    Galopete Member

    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.
    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..
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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
     
  5. Galopete

    Galopete Member

    Thanks Till,

    Seems to be an error in your Howto, because in the script you tell:
    Then you tell:
    And i have in my tmp directory the mail_php.log with data inside, so the script is working well.

    And now i show you part of the inside data in mail_php.log:

    I have a lot of this inside the file, but i have not more information, is this normal?

    Thanks for your time.

    Abraham
     
    Last edited by a moderator: Jan 10, 2015
  6. nachwaal3ab

    nachwaal3ab New Member

    Thank you Till
     

Share This Page