1834798 Members
2509 Online
110070 Solutions
New Discussion

sendmail UNIX to NT

 
Richard Darling
Trusted Contributor

sendmail UNIX to NT

just saw Veronica's posting and made the following entries on my L1000:

# vi sendmail.cf
# "Smart" relay host (may be null)
DS server1

# vi hosts
192.nnn.nnn.nnn server1

# ping server1


root:L1000>:mailx -s "test" rdarling@southwickclothing.com
test email
EOT

#

No email received...what am I missing? Thanks...
32 REPLIES 32
Carlos Fernandez Riera
Honored Contributor

Re: sendmail UNIX to NT

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Try now.
unsupported
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Carlos,
Thanks for the information...I forgot about that. Tested it again, but, unfortunately, it still isn't working...
Richard
Kevin Wright
Honored Contributor

Re: sendmail UNIX to NT

try sendmail -v and see what is happenning..is the DS or smart server being recognized, is it accepting emails?
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

This is the message I receive when I use the -v flag:
# sendmail -v "test" rdarling@southwickclothing.com
test... User unknown
rdarling@southwickclothing.com... southwickclothing.com: Name server timeout
rdarling@southwickclothing.com... Transient parse error -- message queued for fu
ture delivery
test
rdarling@southwickclothing.com... queued
/dead.letter... cannot open: Permission denied
root... Connecting to local...
root... Sent

???? Thanks...Richard
Kevin Wright
Honored Contributor

Re: sendmail UNIX to NT

try it like this
login as root
#sendmail -v rdarling@southwick.com #hit return
type..testing # hit return
. #enter a period and hit return
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

tried it:

# sendmail -v rdarling@southwickclothing.com
rdarling@southwickclothing.com... southwickclothing.com: Name server timeout
rdarling@southwickclothing.com... Transient parse error -- message queued for fu
ture delivery
...testing
.
rdarling@southwickclothing.com... queued

# mailx
No mail for root

didn't get any mail, but no error messages to root...
Thierry Poels_1
Honored Contributor

Re: sendmail UNIX to NT

hi,
if use the NT as relay server then I think the NT will have to give "permission" to the unix box for this.

you could try to mail to the IP address: mailx user@11.11.111.11, and see if this is handled OK

Another thing to check is the mail log : /var/adm/syslog/mail.log, and check if the mail is sent OK.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Kevin Wright
Honored Contributor

Re: sendmail UNIX to NT

do you have a resolv.conf file? if so, rename it, and restart sendmail. check your /etc/nsswitch file for the line with hosts, put files first. There have been a few interesting discussions here lately about how sendmail operates depending on whether you are using DNS or not. I would guess since you are trying to use the DS macro, you are not using DNS right. It seems like your server cannot find the MX record to use..try
nslookup
>set type=mx
>southwickclothing.com
and see what you get..
there are several rules you can define in sendmail.cf to use MX records..setting this one could help
O FallbackMXhost=fall.back.host.net
also you could try these to see if your hostname and all is ok.
sendmail -d0.1
sendmail -d0.15
Andreas Garbe
Advisor

Re: sendmail UNIX to NT

Hi Richard,

attach a sendmail.cf (sendmail.cf.Z) unix compress file.

i think this sendmail.cf is perfekt for you, pleas change the entry for Dj and DS.

rgds
Andreas
Tracey
Trusted Contributor

Re: sendmail UNIX to NT

I agree with Thierry, I had to get my Exchange server admin to add my servers fully qualified domain to their "aprroved" list before it would deliver.
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Thanks for the suggestions...haven't had to work with sendmail. Attached is the sendmail file. Any ideas appreciated...
Richard
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Here is the message I received...
From MAILER-DAEMON Thu May 10 19:47:39 EDT 2001
Received: from localhost (localhost)
by L1000. (8.8.6 (PHNE_17190)/8.8.6) with internal id TAA29219;
Thu, 10 May 2001 19:47:39 -0400 (EDT)
Date: Thu, 10 May 2001 19:47:39 -0400 (EDT)
From: Mail Delivery Subsystem
Message-Id: <200105102347.TAA29219@L1000.>
To: root
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="TAA29219.989538459/L1000."
Subject: Warning: could not send message for past 4 hours
Auto-Submitted: auto-generated (warning-timeout)
Status: RO


--TAA29219.989538459/L1000.
**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Thu, 10 May 2001 15:28:44 -0400 (EDT)
from root@localhost

----- The following addresses had transient non-fatal errors -----
rdarling@southwickclothing.com

----- Transcript of session follows -----
451 rdarling@southwickclothing.com... southwickclothing.com: Name server timeout
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

--TAA29219.989538459/L1000.
Content-Type: message/delivery-status

Reporting-MTA: dns; L1000.
Arrival-Date: Thu, 10 May 2001 15:28:44 -0400 (EDT)

Final-Recipient: RFC822; rdarling@southwickclothing.com
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Thu, 10 May 2001 19:47:39 -0400 (EDT)
Will-Retry-Until: Tue, 15 May 2001 15:28:44 -0400 (EDT)
Last-Attempt-Date: Thu, 10 May 2001 19:47:39 -0400 (EDT)
Will-Retry-Until: Tue, 15 May 2001 15:28:44 -0400 (EDT)

--TAA29219.989538459/L1000.
Content-Type: message/rfc822

Return-Path:
Received: (from root@localhost)
by L1000. (8.8.6 (PHNE_17190)/8.8.6) id PAA26605;
Thu, 10 May 2001 15:28:44 -0400 (EDT)
Date: Thu, 10 May 2001 15:28:44 -0400 (EDT)
From: root
Message-Id: <200105101928.PAA26605@L1000.>

test

--TAA29219.989538459/L1000.--

Can anyone recommend a GOD book on sendmail? Thanks...RD
Pedro Sousa
Honored Contributor

Re: sendmail UNIX to NT

Hi Richard,
I cannot open your file!
But, in your first post, you wrote: "DS server1"
You need to change it to: "DSserver1"
If you have the space you wont get your emails delivered.
good luck.
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Thanks Pedro, there was a space...fixed it...still not working.
I have attached the file again
Mark Vollmers
Esteemed Contributor

Re: sendmail UNIX to NT

Richard-

the attachment still does not want to open. Says the link is bad. Can you paste it into a message?

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

that file I just put out still won't open...here it is uncompressed...
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

That was can anyone recommend a "GOOD" book, not a GOD book on sendmail?...haven't go to the point of invoking him on this issue... yet...


RD
Kevin Wright
Honored Contributor

Re: sendmail UNIX to NT

the bat book by O'reily is the probably the best book out there.
Is nslookup returning your mx record? If not, you'll never get sendmail to work. Name server TO seems like you got DNS problems on this host.
Do you have a resolv.conf file??

John Love_3
Regular Advisor

Re: sendmail UNIX to NT

You may want to make sure your /etc/nsswitch.conf file is using DNS and FILES.
Check the file it should have something like this:

hosts: dns [NOTFOUND=continue] files [NOTFOUND=return]

You could have files first then DNS, but make sure it doesn't [NOTFOUND=return] before DNS.

I had this problem onece. Took me a long time to find it.
Hope this does it.

John
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

John, I don't have an nsswitch.conf file - don't use DNS
Thanks anyways...
Richard
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Pedro, thanks...Richard
someone_4
Honored Contributor

Re: sendmail UNIX to NT

what ver. of sendmail are you using?
Paul T. Green
Advisor

Re: sendmail UNIX to NT

Richard, I had the same event happen to me when I first configured my HP-UX boxes to e-mail my desktop. In this case the mail gateway had to allow e-mails comming from my boxes 'through' the gateway to the internet and then back through the gateway back into our internal mail server. This was done by adding my *DM* line in the sendmail.cf file. Next, the DS macro- has to point to your mail-gateway or mail proxy server. If this doesn't happen, ***you will never get mail out***.

by the way the sendmail book is /-way too complicated-\ to try and figure out. Open a software call, and the ITRC will walk you though the process once your mail gateway is configured. I could also be wrong...
We'd like to know a little bit about you for our files.... Paul Simon