Does anyone have any tips for general troubleshooting of mail()? The standard *nix "mail" command works fine from the command line, but php scripts that use php's mail() run very slowly -- then the mail ends up not getting send. I assume I have something misconfigured for sendmail but am not sure where to begin looking.
I am running php 4.3.1 on RH 8.0. output of phpinfo() follows. Thanks -- Dan ------------------- DOCUMENT_ROOT is /var/www/html DOCUMENT_ROOT is /var/www/html PHP Version 4.3.1 System Linux nikto 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586 Build Date Jun 17 2003 01:28:09 Configure Command './configure' '--with-mysql' '--with-apxs2' Server API Apache 2.0 Filter Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety disabled Registered PHP Streams php, http, ftp This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies -------------------------------------------------------------------------------- PHP Credits -------------------------------------------------------------------------------- Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen On On always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root http://www.php.net/ http://www.php.net/ enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting no value no value expose_php On On extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20020429 /usr/local/lib/php/extensions/no-debug-non-zts-20020429 file_uploads On On gpc_order GPC GPC highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/local/lib/php .:/usr/local/lib/php log_errors Off Off log_errors_max_len 1024 1024 magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off max_execution_time 30 30 max_input_time -1 -1 open_basedir no value no value output_buffering 0 0 output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals Off Off report_memleaks On On safe_mode Off Off safe_mode_exec_dir 1 1 safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order no value no value xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On Apache 2.0 ctype ctype functions enabled mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.49 MYSQL_MODULE_TYPE builtin MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE no value MYSQL_LIBS no value Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout -1 -1 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket no value no value mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off overload User-Space Object Overloading Support enabled pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 3.92 11-Sep-2002 posix Revision $Revision: 1.51 $ session Session Support enabled Registered save handlers files user Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 On On session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_dividend 100 100 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /tmp /tmp session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid Off Off standard Regex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 safe_mode_allowed_env_vars PHP_ PHP_ safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset= user_agent no value no value tokenizer Tokenizer Support enabled xml XML Support active XML Namespace Support active EXPAT Version 1.95.2 Additional Modules Module Name Environment Variable Value PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin PWD / LANG en_US SHLVL 1 _ /sbin/initlog PHP Variables Variable Value _SERVER["UNIQUE_ID"] [EMAIL PROTECTED] _SERVER["HTTP_ACCEPT"] */* _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) _SERVER["HTTP_HOST"] 192.168.1.1 _SERVER["HTTP_CONNECTION"] Keep-Alive _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.40 Server at 192.168.1.1 Port 80</address> _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) _SERVER["SERVER_NAME"] 192.168.1.1 _SERVER["SERVER_ADDR"] 192.168.1.1 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 192.168.1.2 _SERVER["DOCUMENT_ROOT"] /var/www/html _SERVER["SERVER_ADMIN"] [EMAIL PROTECTED] _SERVER["SCRIPT_FILENAME"] /var/www/html/wildwis/core/phpscratch/phpinfo.php3 _SERVER["REMOTE_PORT"] 1747 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["SCRIPT_NAME"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["PHP_SELF"] /wildwis/core/phpscratch/phpinfo.php3 _SERVER["argv"] Array ( ) _SERVER["argc"] 0 _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _ENV["PWD"] / _ENV["LANG"] en_US _ENV["SHLVL"] 1 _ENV["_"] /sbin/initlog