Jump to content


Photo

SMTP Fails within domain, works outside domain


  • Please log in to reply
5 replies to this topic

#1 cgroothius

cgroothius

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 05 May 2010 - 11:06 AM

When creating monitors and assigning the action send mail, the mail fails with the error "cannot connect to 0.0.0.0:25" but only if the mail sent to the same domain it is addressed from

eg. tnm@domain.com to user@domain.com fails but tnm@domain.com to user@externaldomain.com works.

Please advise.
Colin,

#2 Zak

Zak

    Administrator

  • Root Admin
  • PipPipPip
  • 747 posts
  • Gender:Male

Posted 05 May 2010 - 12:50 PM

The problem is not in whether the sender's and recipient's domains are same or not, but because the program cannot resolve the domain you've substituted with "domain.com" (recipient domain). However it can resolve "externaldomain.com", that's why this works. This happens when you specify an unreachable domain and leave the SMTP default sending option "Detect automatically" (in the action properties). In this case the program tries to resolve the domain part of the recipient's email and get MX records for it (if there are no MX, it uses A or NS records). If your default DNS server cannot provide such information, the domain name resolves to invalid IP - 0.0.0.0, which you see as a result. Solution: make sure this domain is resolved by your DNS server correctly or add it to your "hosts" file. Another solution: change the SMTP sending option to "Use from Options" and specify the server's IP address in "File - Options - Email - SMTP server".
Softinventive Lab support

#3 cgroothius

cgroothius

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 May 2010 - 05:31 AM

Thanks.

"Use from options" solved the issue.

C.

#4 cgroothius

cgroothius

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 May 2010 - 05:40 AM

Actually, now I cant send to outsidedomain.com. Get unable to relay.

#5 cgroothius

cgroothius

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 May 2010 - 05:42 AM

never mind I got it.

thanks
C.

#6 Zak

Zak

    Administrator

  • Root Admin
  • PipPipPip
  • 747 posts
  • Gender:Male

Posted 06 May 2010 - 08:33 AM

For outsidedomain.com you should continue using the option "Detect automatically". If you select "Use from options", you are sending emails designated for "outsidedomain.com" to "domain.com", and of course that mail server can be configured to deny emails for other domains, unless it's an open relay.
Softinventive Lab support




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users