1847584 Members
2734 Online
110265 Solutions
New Discussion

Re: sendmail ??

 
SOLVED
Go to solution
John McDen
Regular Advisor

sendmail ??

[wtsdb15:/] sendmail -v user@xyz.com
xyz.com: Name server timeout
user@xyx.com... Transient parse error -- message queued for future delivery
test
user@xyz.com... queued

Can't send email from unix...

HP-UX Ver 11.0
New to HP
9 REPLIES 9
Sanjay_6
Honored Contributor
Solution

Re: sendmail ??

Hi John,

Do you have sendmail configured on your system. If not first configure the sendmail,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/35-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/35-toc.html&searchterms=configure%20sendmail&queryid=20020513-133623

Then setup a mail relay if you have a mail relay to relay mails to the other servers.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=999868101823afac7d/screen=ckiDisplayDocument?docId=200000048726177

Do a search on the forum with keyword sendmail and then go deeper into the search to look into more suggestions.

Hope this helps.

Regds
Ricardo Bassoi
Regular Advisor

Re: sendmail ??

To force all email to another mail relay, set the smart host, relay for unqualified addresses (no @host part), relay for all local addresses (ie @localhost), and masquerade:

DSserver1
DR$S
DH$S
DM$m

Then restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

And test:

$ sendmail -bv junk
junk... deliverable: mailer relay, host server1, user junk@server1

$ sendmail -bv junk@localhost
junk@localhost... deliverable: mailer relay, host server1, user junk@server1

$ sendmail -bv junk@some.other.net
junk@some.other.net... deliverable: mailer relay, host server1, user junk@some.other.net

$ sendmail -bv root
root... deliverable: mailer relay, host server1, root@server1

You should also consider disabling the smtp port if you don't intend to allow sendmail to receive messages from the network. Find sendmail -bd in /sbin/init.d/sendmail and remove the -bd.


Try this:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x69a7ee3e323bd5118fef0090279cd0f9,00.html

If you never try, never will work
David Burgess
Esteemed Contributor

Re: sendmail ??

Hi John,

Take a look at this. It'll save me retyping it and keep it in context!

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa2817d4cf554d611abdb0090277a778c,00.html

HTH,

Dave.
S.K. Chan
Honored Contributor

Re: sendmail ??

Looks like hostname resolution problem. A few things to check ..
a) Make sure /etc/mail/service.switch has .. (if you're using DNS).

hosts dns files
aliases files

b) /etc/nsswitch.conf file, check the desire resolution.

c) /etc/mail/sendmail.cf, check if mail relay is setup correctly.
U.SivaKumar_2
Honored Contributor

Re: sendmail ??

hi,
give more details about your setup. are you
using DNS or /etc/hosts ?.

regards,
U.SivaKumar
Innovations are made when conventions are broken
John McDen
Regular Advisor

Re: sendmail ??

Sanjay,

Yes Sendmail is configured...

David

Tried the stuff in the link but no luck...

Chan

Checked .. seems to be fine.. the exact same config works fine..on the other server...

Sivakumar,

I am confused ... there is an entry in the /etc/hosts file and I am sure we are using DNS...

I am totally new to sendmail. and have no idea... it was already setup ..

Thanks in advance for your help
New to HP
John McDen
Regular Advisor

Re: sendmail ??

I just happend to see that we don't have resovl.conf but in the nsswitch.conf file we are using ..

hosts: files [NOTFOUND=continue] dns

I am not sure...please help me...
New to HP
Mark Ellzey
Valued Contributor

Re: sendmail ??

To use DNS, create the /etc/resolv.conf file with 2 lines, as such:
domain
nameserver

This will allow the nameserver to resolve a host that is now in your /etc/host file.

Regards,
Mark
Mark Ellzey
Valued Contributor

Re: sendmail ??

Last line should read:
This will allow your nameserver to resolve a host that is NOT in your /etc/hosts file.