setting for xampp to work with hmailserver

Problems with the Windows version of XAMPP, questions, comments, and anything related.

setting for xampp to work with hmailserver

Postby siriusdave » 30. December 2009 20:42

Hi all,

Have one problem ..

I have a server and i setup xampp which works great
I also have simple dns plus for a domain setup and works great here
This give me a mail.mydomain.com for my email which i have installed hmailserver,set it up and that works fine for sending and receving email from my home pc in outlook..

The problem is when i run the mail() in php it does not send any email

Could i get some help setting xampp to talk to hmailserver and send my email

Thank you siriusdave
siriusdave
 
Posts: 4
Joined: 30. December 2009 20:29

Re: setting for xampp to work with hmailserver

Postby Wiedmann » 30. December 2009 22:09

The problem is when i run the mail() in php it does not send any email

error message from PHP?
log from your mail server?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: setting for xampp to work with hmailserver

Postby siriusdave » 31. December 2009 11:18

php error

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs ect...

hmail log

there is no log file

All logging is on


php.ini file


[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = admin@siriusbhd.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”

also tryed


[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.siriusbhd.com
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = admin@siriusbhd.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = “C:\xampp\sendmail\sendmail.exe -t”


which gives me this error

Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\ ect...

but give me a log file
"TCPIP" 3976 "2009-12-31 10:15:28.011" "TCPConnection - Posting AcceptEx on 0:1421484481"
"DEBUG" 3976 "2009-12-31 10:15:28.013" "Creating session 56"
"SMTPD" 3976 56 "2009-12-31 10:15:28.013" "193.33.186.84" "SENT: 220 siriusbhd ESMTP"
"SMTPD" 1648 56 "2009-12-31 10:15:28.014" "193.33.186.84" "RECEIVED: HELO Gaming-Solutions"
"SMTPD" 1648 56 "2009-12-31 10:15:28.014" "193.33.186.84" "SENT: 250 Hello."
"SMTPD" 1648 56 "2009-12-31 10:15:28.014" "193.33.186.84" "RECEIVED: MAIL FROM:<admin@siriusbhd.com>"
"DEBUG" 1648 "2009-12-31 10:15:28.014" "Total spam score: 0"
"SMTPD" 1648 56 "2009-12-31 10:15:28.017" "193.33.186.84" "SENT: 250 OK"
"SMTPD" 2860 56 "2009-12-31 10:15:28.017" "193.33.186.84" "RECEIVED: RCPT TO:<admin@arcadetraffictrade.com>"
"SMTPD" 2860 56 "2009-12-31 10:15:28.019" "193.33.186.84" "SENT: 530 SMTP authentication is required."
"DEBUG" 2860 "2009-12-31 10:15:28.019" "AWStats::LogDeliveryFailure"
"SMTPD" 1648 56 "2009-12-31 10:15:28.020" "193.33.186.84" "RECEIVED: QUIT"
"DEBUG" 1648 "2009-12-31 10:15:28.020" "Deleting message file"
"SMTPD" 1648 56 "2009-12-31 10:15:28.020" "193.33.186.84" "SENT: 221 goodbye"
"DEBUG" 3976 "2009-12-31 10:15:28.021" "Closing TCP/IP socket"
"DEBUG" 3976 "2009-12-31 10:15:28.021" "Ending session 56"
siriusdave
 
Posts: 4
Joined: 30. December 2009 20:29

Re: setting for xampp to work with hmailserver

Postby Wiedmann » 31. December 2009 14:49

i have installed hmailserver
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25

This hmailserver is not installed on the same pc then XAMPP?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: setting for xampp to work with hmailserver

Postby siriusdave » 31. December 2009 15:29

Yes it is .. its all running on a dedicated server
siriusdave
 
Posts: 4
Joined: 30. December 2009 20:29

Re: setting for xampp to work with hmailserver

Postby Wiedmann » 31. December 2009 15:33

Yes it is .

So this hmailserver is not listening on the loopback address 127.0.0.1 (or a firewall is blocking this access).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: setting for xampp to work with hmailserver

Postby siriusdave » 31. December 2009 17:55

right all the port are open in the firewall setting ect...


So this hmailserver is not listening on the loopback address 127.0.0.1


How do i check this ????

also i have done a diagnostics test and it had one error

Test: Collect server details
hMailServer version: hMailServer 5.3-B1617
Database type: MSSQL Compact

Test: Test IPv6
IPv6 support is available in operating system.

Test: Test outbound port
SMTP relayer is in use.
Trying to connect to host siriusbhd...
ERROR: The host name siriusbhd could not be resolved.

Test: Test MX records
Trying to resolve MX records for siriusbhd.com...
Host name found: mail.siriusbhd.com

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain siriusbhd.com...
Trying to connect to host mail.siriusbhd.com...
Trying to connect to TCP/IP address 193.33.186.84 on port 25.
Connected successfully.
siriusdave
 
Posts: 4
Joined: 30. December 2009 20:29

Re: setting for xampp to work with hmailserver

Postby Wiedmann » 31. December 2009 18:36

How do i check this ????

I don't know (don't know anything about hmailserver).

Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\ ect...

Additionally:
For the PHP mail() function hmailserver must allow connections without authentication. (but this should only allowed for localhost/127.0.0.1 connections, and not for others)

Another option might be to use sendmail (search the forum) instead of SMTP for the PHP mail() function.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests