Sendmail configuration in HP-unix 11.23......... (526 Views)
Reply
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 1 of 12 (526 Views)
Accepted Solution

Sendmail configuration in HP-unix 11.23.........


Dear friends,

I am new in sendmail configuration in hp unix.
1.I trying to send mail Unix Box to my domain id.. i am not getting mail from the server...

2.I am editing the file /etc/mail/sendmail.cf ans /etc/mail/sendmail.cw .

3.My box is Standalone that is with out domain.
the hostname is "test" and my domain name is xx.go.xx and ip is xx.xx.xx.1 and gw is xx.xx.xx.2 in this case how to i am configuring send mail.
4.mailx -s " test " test.hai@123.com < /file path. pls advice this syntax is correct or not.
----------------------------------------------
5.Error message [# ./sendmail start
WARNING: local host name (test) is not qualified; fix $j in config file
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail ]
----------------------------------------------
Pls any one help to me with steps.


Regards
Kannan
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,074
Registered: ‎02-23-2005
Message 2 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

> [...] in hp unix. [...]

Step one: Try asking in an HP-UX forum,
instead of in this Tru64 forum.

> 3.My box is Standalone

Around here, "Standalone" means not
networked. It's tough to send e-mail from a
standalone system.

> that is with out domain.

Which makes that "WARNING: local host name
(test) is not qualified" complaint pretty
easy to explain.

Whom do you expect to accept e-mail from a
system which does not have a domain name?

> [...] help to me with steps.

Step 2. Set the DNS domain on this system.
Please use plain text.
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 3 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hello Dear,

This is testing box with the network and running some application also.
where am i am setting the DNS in server. pls explain to me..

pls give the steps.

Regards
Kannan

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 4 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Shalom,

This script might work and save you time.

Report errors back and I will debug and post a 11.23 mod.

http://www.hpux.ws/?p=5

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Honored Contributor
Jeeshan
Posts: 2,084
Registered: ‎11-05-2007
Message 5 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hi Kannan

you can follow the below steps

1. configure /etc/resolv.conf with domain name, nameserver IP
2. /sbin/init.d/sendmail stop
3. configure macro DS to DSexchange_relay_name
- configure macro Dj$w. to Dj$w.
- put to /etc/hosts (don't forget the dot at the end)

4. - start end stop sendmail to take modifications in sendmail.cf active.
5. - configure exchage to accept relay this host.

6. Save and quit sendmail.cf
7./sbin/init.d/sendmail stop
8./sbin/init.d/sendmail start
9. echo test | sendmail -v
a warrior never quits
Please use plain text.
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 6 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hi Ahsan,

I am trying to configured ur steps completely. and finally i am error getting.i will send full details of our env..

mail server 10.xx.1.7 mailserv
mail server gw 10.xx.1.211
dns server 10.xx.1.2

mailserver xxx.gov.bh
---------------------
pls give advice to me.

regards
kanna





Please use plain text.
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 7 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hi Ahsan,

I am trying to configured ur steps completely. and finally i am error getting.i will send full details of our env..
--------------------------------------
Error:
# echo test | sendmail -v kannan.vellaisamy@xxx.gov.bh
xxx.gov.bh: Name server timeout

kannan.test@xxx.gov.bh... Transient parse error -- message queued for future delivery
kannan.test@xxx.gov.bh... queued
------------------------------------

mail server 10.xx.1.7 mailserv
mail server gw 10.xx.1.211
dns server 10.xx.1.2

mailserver xxx.gov.bh
---------------------
pls give advice to me.

regards
kanna





Please use plain text.
Honored Contributor
Jeeshan
Posts: 2,084
Registered: ‎11-05-2007
Message 8 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

what is your /etc/resolv.conf file contents

#cat /etc/resolv.conf
a warrior never quits
Please use plain text.
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 9 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hi Ahsan,

10.xx.x.7 mailserv mailserv.mew.gov.bh
[mail server ]
10.xx.x.2 hod_dc_server hod_dc_server.moew.gov.bh [dns server ]

regards
kanna
Please use plain text.
Honored Contributor
Jeeshan
Posts: 2,084
Registered: ‎11-05-2007
Message 10 of 12 (526 Views)

Re: Sendmail configuration in HP-unix 11.23.........

the syntax of /etc/resolv.conf file should be like below

domain xxx.gov.bh
nameserver
nameserver
a warrior never quits
Please use plain text.
Frequent Advisor
Kannandgl_1
Posts: 91
Registered: ‎02-17-2008
Message 11 of 12 (521 Views)

Re: Sendmail configuration in HP-unix 11.23.........

Hi Ahsan,

here my setup different.
DNS name is diffrent and mail domail different

ex.

domain name is : meow.gov.bh 10.xx.1.2
mail name is : mew.gov.bh 10.xx.1.7

and i am able to ping first one pining and
meow also ping
i can't ping mew.gov.bh.
Thanks lot

regards
kanna
Please use plain text.
Honored Contributor
Jeeshan
Posts: 2,084
Registered: ‎11-05-2007
Message 12 of 12 (521 Views)

Re: Sendmail configuration in HP-unix 11.23.........

>>and i am able to ping first one pining and
meow also ping
i can't ping mew.gov.bh

if you cannot ping, how can you resolve this issue.

tell your network team to do routing between this tow hosts.
a warrior never quits
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation