Hello,
I have 3 dedicated server and all 3 server have the same configuration, but in 1 if I use the mail() of php hotmail not receive the email :S any idea?
Hello,
I have 3 dedicated server and all 3 server have the same configuration, but in 1 if I use the mail() of php hotmail not receive the email :S any idea?
What do you see in mail server log file? Do you see mail message sent to hotmail user?
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Hi,
in the log I view this
PHP Code:Apr 3 12:49:48 web qmail-queue-handlers[3054]: Handlers Filter before-queue for qmail started ...
Apr 3 12:49:48 web qmail-queue-handlers[3054]: from=root@web.XXX.XXX.com
Apr 3 12:49:48 web qmail-queue-handlers[3054]: to=XXXXX@hotmail.com
Apr 3 12:49:48 web qmail-queue-handlers[3054]: hook_dir = '/usr/local/psa/handlers/before-queue'
Apr 3 12:49:48 web qmail-queue-handlers[3054]: recipient[3] = 'XXXXX@hotmail.com'
Apr 3 12:49:48 web qmail-queue-handlers[3054]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/XXXXXX@hotmail.com'
Apr 3 12:49:48 web qmail-queue-handlers[3054]: starter: submitter[3055] exited normally
Apr 3 12:49:48 web qmail: 1270291788.912904 new msg 50856746
Apr 3 12:49:48 web qmail: 1270291788.912970 info msg 50856746: bytes 258 from <root@web.XXx.XXX.com> qp 3055 uid 0
Apr 3 12:49:48 web qmail: 1270291788.919872 starting delivery 15317: msg 50856746 to remote ilmeglio40@hotmail.com
Apr 3 12:49:48 web qmail: 1270291788.919906 status: local 0/10 remote 1/250
Apr 3 12:49:50 web qmail: 1270291790.680754 delivery 15317: success: 65.55.92.184_accepted_message./Remote_host_said:_250__<20100403104948.3053.qmail@web.XXX.XXX.com>_Queued_mail_for_delivery
Apr 3 12:49:50 web qmail: 1270291790.680862 status: local 0/10 remote 0/250
Apr 3 12:49:50 web qmail: 1270291790.680901 end msg 50856746
Check to make sure the server has correct Reverse DNS setup. Main stream mail providers e.g. HOTMAL , GMAIL etc...
Will only except mail from a correctly setup mail server with RDNS.
HTH,Code:shine:~ root# dig -x 67.72.16.xxx ; <<>> DiG 9.6.0-APPLE-P2 <<>> -x 67.72.16.xxx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5868 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;xxx.16.72.67.in-addr.arpa. IN PTR ;; ANSWER SECTION: xxx.16.72.67.in-addr.arpa. 3600 IN CNAME xxx.128-255.16.72.67.in-addr.arpa. xxx.128-255.16.72.67.in-addr.arpa. 10800 IN PTR mailhost01.domain.com. ;; Query time: 68 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Sat Apr 3 09:49:46 2010 ;; MSG SIZE rcvd: 106 shine:~ root#
Jaysunn
Hi,
the RDNS i think is ok but when I use the SMTP or ATMAIL the email delivery into my mail box correctly, when I use mail function of php no -.-' other ideas?
I use the same php.ini into all my server this is the mail section
PHP Code:[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = /usr/sbin/sendmail -t -i
sendmail_path = /var/qmail/bin/qmail-inject
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
Hmm.
It could be that your sendmail process isn't configured to allow mail relaying, as Nixcraft said check maillog for details.
Also check the php.ini file for differences on the working servers versus the not working system.
From PHP.ini
Answered to Quickly, you posted php.ini LOLCode:; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path =
HTH,
jaysunn
Last edited by jaysunn; 3rd April 2010 at 07:34 PM. Reason: posted to soon,
php-ini is the same I have type copy and paste the kernel is the same too qmail :S i don't find an solution :@ only with account hotmail, gmail and other account it's ok
Let's try this:
See what if any error messages are returned by adding the following two lines of code immediately after your first opening <?php tag -
Try sending again, check the logs again.Code:ini_set("display_errors", "1"); error_reporting(E_ALL);
jaysunn
Done, no error![]()
Really,
No log information. You can try adding this to your php mail script so you can set a log point.
Make sure permissions are ok. Try sending again and hopefully you can snag a error message.Code:$eLog="/tmp/mailError.log";
Good Luck,
Reference link:
http://help.yahoo.com/l/us/yahoo/sma...hp/php-03.html
jaysunn
Last edited by jaysunn; 3rd April 2010 at 07:57 PM. Reason: Added Link for reference
There are currently 1 users browsing this thread. (0 members and 1 guests)