1847860 Members
3252 Online
104021 Solutions
New Discussion

Sendmail problem.

 
SOLVED
Go to solution
Gulam Mohiuddin
Regular Advisor

Sendmail problem.

We have four HP-UX servers with HP-UX 11 OS.
On two Servers if I issue the following command it works properly and I get E-mail message on my Outlook throgh our Exchange server.

$cat gulam.txt | sendmail gulam.mohiuddin@region.peel.on.ca

But on two other servers this commnad is not working. I have no idea what is the poeblem on those servers.

I need to figure out and resolve this problem so I can also send E-mails from them.

Please let me know what to check and what extra configuration is required.

Thanks.

Gulam.
Everyday Learning.
14 REPLIES 14
Lasse Knudsen
Esteemed Contributor

Re: Sendmail problem.

Hi there,

Any error messages (also from /var/adm/syslog/mail.log )
In a world without fences - who needs Gates ?
Gulam Mohiuddin
Regular Advisor

Re: Sendmail problem.

Here is the mail.log file from the Server where this command is not working.

Thanks,

Gulam.
Everyday Learning.
Rick Garland
Honored Contributor

Re: Sendmail problem.

Have you set up the Smart Host on the servers not working? If not, make the entry in the /etc/mail/sendmail.cf file:

DSmyexchange.mydomain.com

Search through the sendmail.cf file looking for Smart. The DS will be there. Just make your additions and then stop/restart sendmail.
Lasse Knudsen
Esteemed Contributor

Re: Sendmail problem.

What is your output from 'mailq' ?
In a world without fences - who needs Gates ?
Berlene Herren
Honored Contributor

Re: Sendmail problem.

Issue
#sendmail -v user@hostname.com
test
.

what is the output? I see where a couple message have stat as queued.

ps -ef | grep sendmail >> accepting connections??

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Gulam Mohiuddin
Regular Advisor

Re: Sendmail problem.

The output of $ps -ef|grep sendmail is as follows

sendmail: accepting connections on port 25

Thanks,

Gulam.
Everyday Learning.
Gulam Mohiuddin
Regular Advisor

Re: Sendmail problem.

Here is the output of $sendmail -v ...

[/etc]$> sendmail -v gulam.mohiuddin@region.peel.on.ca
gulam.mohiuddin@region.peel.on.ca... region.peel.on.ca: Name server timeout
gulam.mohiuddin@region.peel.on.ca... Transient parse error -- message queued for future delivery
Testing
.
gulam.mohiuddin@region.peel.on.ca... queued

----------------------------

[/etc]$> ps -ef|grep sendmail
root 1767 1 0 Jun 4 ? 0:40 sendmail: accepting connections on port 25
------------------------------------------

Thanks,

Gulam.
Everyday Learning.
Devbinder Singh Marway
Valued Contributor

Re: Sendmail problem.

you can test the mail server to see if it delivers any mail for example do the following :-

telnet 25
Trying...
Connected to Escape character is '^]'.
(Microsoft Exchange Internet Mail Service ) ready
(Then type in :- )
HELO dev
250 OK
MAIL from:< your machine e.g. hpserver
250 OK - mail from
RCPT TO:250 OK - Recipient
DATA
354 Send data. End with CRLF.CRLF
test message
.
250 OK

If you don't get the mail then it is most likely a problem on the mail server. If the above does not work try it on the server that works that is what you should get .

laters
Seek and you shall find
Lasse Knudsen
Esteemed Contributor

Re: Sendmail problem.

Ah, you have not got you DNS configured properly. I am not sure, but I think the default sendmail.cf configuration needs DNS in order to function. DNS is not vital in order to get sendmail working - but it makes life *a lot* easyer.

Check your /etc/resolv.conf file.
In a world without fences - who needs Gates ?
CHRIS_ANORUO
Honored Contributor
Solution

Re: Sendmail problem.

If you are not using DNS cp nsswitch.conf from /usr/newconfig/etc/mail/nsswitch.conf to /etc/nsswitch.conf . Update the lines to read e.g hosts: files
services: files
networks: files
aliases: files
protocols: files

Update your /etc/mail/sendmail.cf (DS(MX netservername)) and DW too.
Inculde in /etc/mail/aliases (root :your email address)
stop and start sendmail
/sbin/init.d/sendmail stop/start
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
CHRIS_ANORUO
Honored Contributor

Re: Sendmail problem.

If you are not using DNS cp nsswitch.conf from /usr/newconfig/etc/mail/nsswitch.conf to /etc/nsswitch.conf . Update the lines to read e.g hosts: files
services: files
networks: files
aliases: files
protocols: files

Update your /etc/mail/sendmail.cf (DS(MX netservername)) and DW too.
Inculde in /etc/mail/aliases (root :your email address)
stop and start sendmail
/sbin/init.d/sendmail stop/start
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Kevin Wright
Honored Contributor

Re: Sendmail problem.

yes, your DNS is either not cofigured or configured incorrectly. In you /etc/nsswitch.conf file, look for the host line and make sure the arguments are..
hosts files dns nis

then make sure the hosts are in your /etc/hosts file..fully qualified too.
Berlene Herren
Honored Contributor

Re: Sendmail problem.

I agree with Chris, Allen and Kevin. Transient parse error is consistent with DNS problems.

Berlene

Way to jump on this, guys!
http://www.mindspring.com/~bkherren/dobes/index.htm
Gulam Mohiuddin
Regular Advisor

Re: Sendmail problem.

Thanks everybody, this problem is over.

There was no /etc/nsswitch.conf file so when I created it, everything worked fine.

Thanks again.

Gulam.
Everyday Learning.