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? regards David Lagos S. Coquimbo Chile ISPConfig 2.2.38
Most likely one of your websites ahs been hacked and is used now to send spam. Please see here on how to check which php script is used to send the emails: http://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function-to-detect-form-spam
Till: 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 Regards
Line break can be added as follows: Code: 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);