Relaying SMTP mail?

t1rhinot1rhino Toronto
edited November 2003 in Science & Tech
Okay, here's the situation.
I have a domain with no internal DNS server and I cannot set one up: Don't ask.

I have a Unix box and a Win2k Server.
I want to relay emails from Unix to the SMTP running on Win2k.
I can send SMTP emails just fine from the Win2k box.

In the Unix hosts, I added the ip and name of the win2k server.
192.168.100.10 WinServer : just for example

When I try sending an email from Unix, it gets returned with "reason: 501 5.5.4 Invalid Address".
:scratch:

I get a Hello back from the Win2k box in the returned email so I know it is hitting the Win server.

Any advice would be greatly appreciated... tia

Comments

  • t1rhinot1rhino Toronto
    edited November 2003
    Oh, and I have the Win Server setup as the Smart Relay Host in Unix.

    # "Smart" relay host (may be null)
    # Relay host to forward outgoing mail not in the local domain to.
    # To forward ALL mail to this relay host, uncomment the appropriate
    # rule in ruleset 0, as indicated by the ruleset's comments.
    #DSmailer:relayhostname
    DSsmtp:WinServer
  • hypermoodhypermood Smyrna, GA New
    edited November 2003
    501 is the reply code for syntax error or incorrect parameter. It appears that the SMTP server is trying to verify the unix host in the HELO command but the verification is failing.
  • t1rhinot1rhino Toronto
    edited November 2003
    But I can telnet to the SMTP from unix and run the HELO command, and I get a "Hello" back from the SMTP server.
  • hypermoodhypermood Smyrna, GA New
    edited November 2003
    You need to see what is different about the HELO that you run from telnet and what the unix clients are sending.
  • t1rhinot1rhino Toronto
    edited November 2003
    hypermood had this to say
    You need to see what is different about the HELO that you run from telnet and what the unix clients are sending.

    How do I do that? Is there a way to capture what commands unix is sending?
  • hypermoodhypermood Smyrna, GA New
    edited November 2003
    You should be able to turn on logging of the SMTP sessions on the server side. If not just run some packet capture software on the server and tell it to log inbound SMTP sessions.

    I'm guessing that the unix clients are sending and incomplete domain string.
  • t1rhinot1rhino Toronto
    edited November 2003
    w00t!!! I got it working. :D
    Thanks for all your help hypermood. :) It was a simple mistake. :buck:
    The unix hosts file had WinServer.domain.com. instead of WinServer.domain.com
    I removed the last dot and voila!

    :cool:
Sign In or Register to comment.