Page 1 of 1

problem between jmail & Hmailserver

Posted: 2008-02-27 21:05
by Thomas Parvais
Hello,

I'm using last stable release of HMS. I also use Jmail componants (V4.5) to send mail from my website on a contact-form. HMS , jmail, web on the same machine.

When I want to send a mail to an email not declared in Hmailserver, it is refused.

The sender of the email in ASP script is of course a valid local email address existing in Hmailserver.

I've not activted SMTP authentication.

Here is the Jmail log:

Can you help ?

Code: Select all

The message was undeliverable. All servers failed to receive the message
Number of attachments: 1
  attachments: 
  {
    Encoding "C:\Inetpub\wwwroot\dt-4\www\html\img\logo3.gif"
  }
.execute()
{
  Trying server mail:mail.droit-technologie.org
  <- 220 serveur.maxetzoe.com
  -> EHLO serveur.maxetzoe.com
  <- 250-hmailserver
250-SIZE
250 AUTH LOGIN
  -> MAIL FROM:
  <- 250 OK
  -> RCPT TO:tparvais@gmail.com
 <- 530 SMTP authentication is required.
  -> DATA
 <- 503 Must have sender and recipient first.
Error: 503 Must have sender and recipient first.
Number of attachments: 1
  attachments: 
  {
    Encoding "C:\Inetpub\wwwroot\dt-4\www\html\img\logo3.gif"
  }
.execute()
{
  Trying server mail:mail.droit-technologie.org
  <- 220 serveur.maxetzoe.com
  -> EHLO serveur.maxetzoe.com
  <- 250-hmailserver
250-SIZE
250 AUTH LOGIN
  -> MAIL FROM:
  <- 250 OK
  -> RCPT TO:tparvais@gmail.com
 <- 530 SMTP authentication is required.
  -> DATA
 <- 503 Must have sender and recipient first.
Error: 503 Must have sender and recipient first.

  1 of 1 servers failed
Hmail log:

Code: Select all

"SMTPD"	2696	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 220 serveur.maxetzoe.com"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"RECEIVED: EHLO serveur.maxetzoe.com"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 250-hmailserver[nl]250-SIZE[nl]250 AUTH LOGIN"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"RECEIVED: MAIL FROM:<info@droit-technologie.org>"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 250 OK"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"RECEIVED: RCPT TO:<tparvais@gmail.com>"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 530 SMTP authentication is required."
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"RECEIVED: DATA"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 503 Must have sender and recipient first."
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"RECEIVED: RSET"
"SMTPD"	2680	26958	"2008-02-27 20:00:48.162"	"217.112.181.130"	"SENT: 250 OK"

Posted: 2008-02-27 21:11
by martin
As it says in the log, SMTP authenticaiton is required. You should configure JMail to use SMTP authentication (don't know how to do that).

Posted: 2008-02-27 22:34
by Thomas Parvais
martin wrote:As it says in the log, SMTP authenticaiton is required. You should configure JMail to use SMTP authentication (don't know how to do that).
Strange as I don't configure Hmailserver to ask authentication

BTW I change my code to do it and it works

Thank you

Posted: 2008-02-28 00:15
by martin
So you have disabled authentication in the IP ranges in hMailServer? This is enabled by default in hMailServer, because not requiring SMTP authentication would open up the servers for spammers.