postfix status=deferred (thousands!!!)

Discussion in 'Installation/Configuration' started by metaldrummer, Jun 13, 2011.

  1. metaldrummer

    metaldrummer New Member

    Hi All:
    About 2 weeks in log i see this messages:
    postfix/smtp status=deferred

    output for postconf -n is:
    relayhost now is empty, this field is ok?

    output for top:

    carry many load for cpu.

    mail log

    mailq output
    this issue make server to halt!!!

    postfix y closed how open relay. only accept authenticated users. Maybe any user sending mass mailing.

    how can know log with users connect?

    any can give me any idea or help?
    David Lagos S.
    Coquimbo Chile

    ISPConfig 2.2.38
    Last edited: Jun 15, 2011
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. metaldrummer

    metaldrummer New Member

    thanks. This script work fine, but how can put from domain using, ip, script are send mail?
    i try with this but not works:

    file_put_contents($logfile, date('Y-m-d H:i:s') . ' ' . $_ENV['PWD'] . '-' . $_SERVER['SERVER_NAME'] . '-' . $_SERVER['REMOTE_ADDR']. '-'. $_SERVER['REMOTE_HOST'] .'-'. $_SERVER['HTTP_REFERER']. '-'. $_SERVER['SCRIPT_FILENAME'] . '-' . $logline . '-', FILE_APPEND);

    and how put break line at end

  4. falko

    falko Super Moderator ISPConfig Developer

    Line break can be added as follows:

    file_put_contents($logfile, date('Y-m-d H:i:s') . ' ' . $_ENV['PWD'] . '-' . $_SERVER['SERVER_NAME'] . '-' . $_SERVER['REMOTE_ADDR']. '-'. $_SERVER['REMOTE_HOST'] .'-'. $_SERVER['HTTP_REFERER']. '-'. $_SERVER['SCRIPT_FILENAME'] . '-' . $logline . '-'[B][COLOR="Red"]."\n"[/COLOR][/B], FILE_APPEND);

Share This Page