Re: telnet mail.domain.com 25==>OK but mailx=>KO



M.H wrote:

> On a unix machine [oraclep] with Solaris 8 + sendmail-11.8.0, I want to

There is no 11.8, do you mean 8.11.0? If so, upgrade!

> send mails thru a smart host [mail.domain.com].

> If I send a mail thru "telnet mail.domain.com 25" , It works but if use
> the mailx command on the oraclep, It failed.

> # telnet mail.domain.com 25
> helo

That's missing a domain name.
Where's the server reply?

> 250 mail.domain.com Hello [172.20.20.21]
> mail from : toto@xxxxxxxxxx

That's syntactically wrong, see RFC 2821.
MAIL From:<toto@xxxxxxxxxx>

> 250 2.1.0 toto@xxxxxxxxxxxxxxxxxxxx OK
> rcpt to: jhardyh@xxxxxxxxxxxxxxxxx

Same.

> # echo "test mailx" |mailx -r toto@xxxxxxxxxx jhardyh@xxxxxxxxxxxxxxxxx

> ... while talking to mail.domain.com.:
> >>> HELO oraclep.

Another syntax error and this time the server complains:

> <<< 501 5.5.4 Invalid Address

Fix the hostname of your machine so it doesn't end in a dot.

See cf/README for "WHO AM I" if you can't fix the hostname.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
.



Relevant Pages

  • Re: Having trouble successfully deploying WCF service to public web site
    ... I have no clue how to fix it and i'm struggling for two ... The generated WSDL/XSDs will contain the hostname with which it ... app in VS 2008 and then add a service reference to this service (using ... header name via the UI, so IIRC you need to use adsutil.vbs for that. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: X apps initially slow to start
    ... fix your "time-out" problem. ... name isn't found relates to not having that hostname in the /etc/hosts ... Don't ask me why Linux can know the puter hostname when it boots, ... or some variation to one of multiple config files. ...
    (comp.os.linux.x)
  • Re: X apps initially slow to start
    ... fix your "time-out" problem. ... name isn't found relates to not having that hostname in the /etc/hosts ... Don't ask me why Linux can know the puter hostname when it boots, ... or some variation to one of multiple config files. ...
    (comp.os.linux.setup)
  • Re: IP address variable
    ... >can I fix that so that command gives me the address I actually want? ... >man hostname doesn't help me. ... That's simply listing the contents of /etc/hosts in a stripped down IP ...
    (Fedora)