Operating System - HP-UX
1834461 Members
3159 Online
110067 Solutions
New Discussion

One more Sendmail newbie problem...

 
Doug_3
Frequent Advisor

One more Sendmail newbie problem...

Hello, after spending 15 minutes a day for the past week hacking at this, I hope someone can resolve this simple issue.

We want to use the current Novell Groupwise email engine for paging and email relayed from our local HP Unix machine. Local mail works fine.

I have modified /etc/mail/sendmail.cf as follows:

# my official domain name
Dj$w.sd81.k12.wa.us

# "Smart" relay host (may be null)
DSmail.sd81.k12.wa.us

stop and start sendmail...

then from the command line:
mail dougf@sd81.k12.wa.us
blah blah
.

No luck! What idiot error am I committing or omitting?

tia
Doug
9 REPLIES 9
Steven Sim Kok Leong
Honored Contributor

Re: One more Sendmail newbie problem...

Hi,

Perhaps you may want to try some troubleshooting commands to identify the problem:
1) mailq -v
2) sendmail -dX where X is the debugging value or depth
3) Check your /var/log/maillog or any other log file customised for sendmail

Regards.

Steven Sim.
Dan Am
Frequent Advisor

Re: One more Sendmail newbie problem...

one idea:
if you are on the same machine and the
fq hostname is in sendmail.cw, mail gets handled locally.

check logfiles, as said before, maybe you can post a messages
do what you can. don't if you can't.
Berlene Herren
Honored Contributor

Re: One more Sendmail newbie problem...

To set a mail relay, find in the /etc/mail/sendmail.cf

# "Smart" relay host (may be null)
DS


and set to
DSyour.mailrelay.com << this is the name of your Exchange mail server.

Then stop and restart sendmail to re-read the sendmail.cf file

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


You can test by issuing
#sendmail -v bherren@www.atl.hp.com
test
.
It should connect to the exchange server and go out it's merry way to the internet.


NOTE: 8.8.6, sendmail automatically assumes that you are using DNS and be returning fully qualified hostnames. If you are not, you MUST do the following workaround to trick it.. At sendmail 8.8.6, service.switch IS NOT USED AT ALL, regardless of whether you've uncommented it in sendmail.cf..

If you are not using dns (you do not have a fully-qualified domain name), you MUST:
a) Set the Dj$w macro in sendmail.cf to Dj$w. (as opposed to Dj$w without a dot at the end) AND (and here's where if differs from previous versions)
b) Add an alias to /etc/hosts that ends with a "." (for example, a pre- 8.8.6 host file line might look like this:

1.1.1.1 hello

to make things work at 8.8.6, change it to
1.1.1.1 hello hello.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
CHRIS_ANORUO
Honored Contributor

Re: One more Sendmail newbie problem...

Hello,

sendmail 8.9.3 uses /etc/nsswitch.conf, uou can copy this from /usr/newconfig/etc and modify the line to read host: files
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Doug_3
Frequent Advisor

Re: One more Sendmail newbie problem...

nada nada nada,
sorry folks, i either am executing GOR (gross op error) or ???

Q: not being a sendmail type of guy, how do i determine the version of sendmail?

local host name is sd81hp9k
domain name is sd81.k12.wa.us
FQDN is: sd81hp9k.sd81.k12.wa.us

the only msgs relevant are:
using "sendmail -v dougf@sd81.k12.wa.us"
dougf@sd81.k12.wa.us... sd81.k12.wa.us: Name server timeout
dougf@sd81.k12.wa.us... Transient parse error -- message queued for future deliv
ery

using "mail dougf@sd81.k12.wa.us" and the results from mail.log:
Jun 16 13:19:25 sd81hp9k sendmail[23247]: NAA23247: to=dougf@sd81.k12.wa.us, delay=00:00:00, mailer=relay, stat=queued

my sendmail.cf looks like this:
Dj$w.sd81.k12.wa.us
DSmail.sd81.k12.wa.us
where sd81.k12.wa.us is the fully qualified domain name, the hp is not running dns. I tried it with the dot (w.sd81) and without (wsd81). I even tried it with the IP instead of the short and long name.

sendmail.cw does not have the fqhn or fqdn (sd81hp9k.sd81.k12.wa.us) but instead has the local host name of sd81hp9k.

I tried adding this to etc/hosts per berlene's recommendations:
10.1.0.16 sd81hp9k.sd81.k12.wa.us sd81hp9k.
10.1.0.16 sd81hp9k.sd81.k12.wa.us sd81hp9k sd81hp9k.
as well as the standard IP FQDN

I stop and start the service, run newalias just for kicks, etc.

OK, what am I missing, this is so simple and stupid...one last plea for help before I log the dreaded hp tech support call (not that i dread calling them or that they don't help, i just hate calling on such a minor and probably obviously simple quick fix).

Thanks for everyone who has responded. It is nice to have all of your assistance.
pre P.S. hope everyone had a good friday and a better weekend.
Doug
Doug_3
Frequent Advisor

Re: One more Sendmail newbie problem...

Sorry about the re-post, hit the wrong button erroneously. Hope it is not an indicator of why I can't get send mail to work.

I meant to re-post these comments to all the helpful folks from the original 6-15 post!

I either am executing GOR (gross op error) or ???

Q: not being a sendmail type of guy, how do i determine the version of sendmail?

local host name is sd81hp9k
domain name is sd81.k12.wa.us
FQDN is: sd81hp9k.sd81.k12.wa.us

the only msgs relevant are:
using "sendmail -v dougf@sd81.k12.wa.us"
dougf@sd81.k12.wa.us... sd81.k12.wa.us: Name server timeout
dougf@sd81.k12.wa.us... Transient parse error -- message queued for future deliv
ery

using "mail dougf@sd81.k12.wa.us" and the results from mail.log:
Jun 16 13:19:25 sd81hp9k sendmail[23247]: NAA23247: to=dougf@sd81.k12.wa.us, delay=00:00:00, mailer=relay, stat=queued

my sendmail.cf looks like this:
Dj$w.sd81.k12.wa.us
DSmail.sd81.k12.wa.us
where sd81.k12.wa.us is the fully qualified domain name, the hp is not running dns. I tried it with the dot (w.sd81) and without (wsd81). I even tried it with the IP instead of the short and long name.

sendmail.cw does not have the fqhn or fqdn (sd81hp9k.sd81.k12.wa.us) but instead has the local host name of sd81hp9k.

I tried adding this to etc/hosts per berlene's recommendations:
10.1.0.16 sd81hp9k.sd81.k12.wa.us sd81hp9k.
10.1.0.16 sd81hp9k.sd81.k12.wa.us sd81hp9k sd81hp9k.
as well as the standard IP FQDN

I stop and start the service, run newalias just for kicks, etc.

OK, what am I missing, this is so simple and stupid...one last plea for help before I log the dreaded hp tech support call (not that i dread calling them or that they don't help, i just hate calling on such a minor and probably obviously simple quick fix).

Thanks for everyone who has responded. It is nice to have all of your assistance.
pre P.S. hope everyone had a good friday and a better weekend.
Doug
Berlene Herren
Honored Contributor

Re: One more Sendmail newbie problem...

Doug, looks like you might be having the same problem as Scott Allen. Take a look at his sendmail/proxy call and check to see if you need a root name server defined.

sendmail -bs will tell you the version of the binary and the configuration version you are running. They should be the same.

Berlene

http://www.mindspring.com/~bkherren/dobes/index.htm
Scott D. Allen
Regular Advisor

Re: One more Sendmail newbie problem...

Doug,

Check out the solution I found in sendmail/proxy.

--Scott
"Sometimes the devil you know is better than the devil you don't know."

Re: One more Sendmail newbie problem...

Doug:

You should be able to leave your Smart relay (DS) setting null if mail.sd81.k12.wa.us is configured with an MX record on your DNS. If this is not the case, set the option TryNullMXList in your sendmail.cf file. Also, make sure your sendmail.cw is configured to recognize the possible names your host might be known as (i.e. hostname, hostname.sd81, hostname.sd81.k12.wa.us, etc.). The comments in sendmail.cw provide a good description of what to do.

I hope this helps.