telnet mail.domain.com 25==>OK but mailx=>KO
- From: "M.H" <haed98@xxxxxxxxxx>
- Date: Fri, 07 Oct 2005 16:24:53 +0200
Hi,
I have a weired problem!
On a unix machine [oraclep] with Solaris 8 + sendmail-11.8.0, I want to 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.
1. Sending a mail thru telnet mail.domain.com 25: ================== # telnet mail.domain.com 25 helo 250 mail.domain.com Hello [172.20.20.21] mail from : toto@xxxxxxxxxx 250 2.1.0 toto@xxxxxxxxxxxxxxxxxxxx OK rcpt to: jhardyh@xxxxxxxxxxxxxxxxx 250 2.1.5 jhardyh@xxxxxxxxxxxxxxxxx data 354 Start mail input; end with <CRLF>.<CRLF> test .. =====I works=============
2. The sending thru mail: when I do: # echo "test mailx" |mailx -r toto@xxxxxxxxxx jhardyh@xxxxxxxxxxxxxxxxx
I get in the /var/log/syslog :
==========
Oct 7 16:13:16 oraclep sendmail[16768]: [ID 801593 mail.info] j97EDFf16768: from=toto@xxxxxxxxxx, size=71, class=0, nrcpts=1, msgid=<200510071413.j97EDFf16768@oraclep.>, relay=root@localhost
Oct 7 16:13:16 oraclep sendmail[16770]: [ID 801593 mail.info] j97EDFf16768: to=jhardyh@xxxxxxxxxxxxxxxxx, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=120071, relay=mail.domain.com. [10.253.1.25], dsn=5.0.0, stat=Service unavailable
Oct 7 16:13:16 oraclep sendmail[16770]: [ID 801593 mail.info] j97EDFf16768: to=toto@xxxxxxxxxx, delay=00:00:01, mailer=local, pri=120071, dsn=5.1.1, stat=User unknown
Oct 7 16:13:16 oraclep sendmail[16770]: [ID 801593 mail.info] j97EDFf16768: j97EDGe16770: postmaster notify: User unknown
Oct 7 16:13:16 oraclep sendmail[16770]: [ID 801593 mail.info] j97EDGe16770: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30128, dsn=2.0.0, stat=Sent
==========
The root receuves the following mail: ====================== bash-2.03# mail From MAILER-DAEMON Fri Oct 7 16:13:16 2005 Date: Fri, 7 Oct 2005 16:13:16 +0200 (MEST) From: Mail Delivery Subsystem <MAILER-DAEMON> Message-Id: <200510071413.j97EDGe16770@oraclep.> To: postmaster Subject: Postmaster notify: see transcript for details Content-Length: 1356
This is a MIME-encapsulated message
--j97EDGe16770.1128694396/oraclep.
The original message was received at Fri, 7 Oct 2005 16:13:15 +0200 (MEST) from root@localhost with id j97EDFf16768
----- The following addresses had permanent fatal errors -----
jhardyh@xxxxxxxxxxxxxxxxx
(reason: 501 5.5.4 Invalid Address)----- Transcript of session follows ----- .... while talking to mail.domain.com.: >>> HELO oraclep. <<< 501 5.5.4 Invalid Address 554 5.0.0 Service unavailable 550 5.1.1 toto@xxxxxxxxxxxxx User unknown
--j97EDGe16770.1128694396/oraclep. Content-Type: message/delivery-status
Reporting-MTA: dns; oraclep. Arrival-Date: Fri, 7 Oct 2005 16:13:15 +0200 (MEST)
Final-Recipient: RFC822; jhardyh@xxxxxxxxxxxxxxxxx Action: failed Status: 5.5.0 Diagnostic-Code: SMTP; 501 5.5.4 Invalid Address Last-Attempt-Date: Fri, 7 Oct 2005 16:13:16 +0200 (MEST)
--j97EDGe16770.1128694396/oraclep. Content-Type: message/rfc822
Return-Path: <toto@xxxxxxxxxx>
Received: (from root@localhost)
by oraclep. (8.11.7p1+Sun/8.11.7) id j97EDFf16768
for jhardyh@xxxxxxxxxxxxxxxxx; Fri, 7 Oct 2005 16:13:15 +0200 (MEST)
Date: Fri, 7 Oct 2005 16:13:15 +0200 (MEST)
From: toto@xxxxxxxxxx
Message-Id: <200510071413.j97EDFf16768@oraclep.>
To: jhardyh@xxxxxxxxxxxxxxxxx
MIME-Version: 1.0
test mailx
--j97EDGe16770.1128694396/oraclep.-- ======================
the content of my sendmail.mc: ============= bash-2.03# cat sendmail.mc divert(-1) # # Free form comments here, but the lines need a hash mark at the # beginning. Use this area to describe the configuration file. # divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.0 version 07/10/2005') OSTYPE(solaris2.ml)dnl DOMAIN(solaris-generic)dnl FEATURE(`remote_mode')dnl define(`SMART_HOST', `mail.domain.com') FEATURE(`masquerade_envelope')dnl FEATURE(`genericstable', `hash -o /etc/mail/genericstable.db')dnl FEATURE(`accept_unresolvable_domains')dnl FEATURE(`accept_unqualified_senders')dnl GENERICS_DOMAIN(`localhost domain.com')dnl MAILER(local)dnl MAILER(smtp)dnl LOCAL_CONFIG Cw localhost domain.com =============
Thanks for your reply.
haed.
.
- Follow-Ups:
- Re: telnet mail.domain.com 25==>OK but mailx=>KO
- From: Claus Aßmann
- Re: telnet mail.domain.com 25==>OK but mailx=>KO
- Prev by Date: Sendmail +SSL Certs Howto
- Next by Date: Re: telnet mail.domain.com 25==>OK but mailx=>KO
- Previous by thread: Sendmail +SSL Certs Howto
- Next by thread: Re: telnet mail.domain.com 25==>OK but mailx=>KO
- Index(es):