Sendmail config in HPUX server (9858 Views)
Reply
Frequent Advisor
jeevanandham
Posts: 69
Registered: ‎03-11-2009
Message 1 of 16 (9,858 Views)
Accepted Solution

Sendmail config in HPUX server

Dear All,

can anyone help me to understand about sendmail config, as i have a case to work on the same...

for : eg i have two Production servers and lotous server,

here my requirement is i need to configure sendmail in two HP ux servers,

can anyone explain about how to go with this ?
Honored Contributor
Jeeshan
Posts: 2,084
Registered: ‎11-05-2007
Message 2 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

See the following documents

http://docs.hp.com/en/B2355-90685/ch04.html
a warrior never quits
Trusted Contributor
Sunny Jaisinghani
Posts: 360
Registered: ‎01-03-2007
Message 3 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

Hi,

Set the sendmail parameter in /etc/rc.config.d to 1
and
start the sendmail service

/sbin/init.d/sendmail start

Sendmail will start with default settings.


Regards
Sunny
Honored Contributor
P Muralidhar Kini
Posts: 897
Registered: ‎03-14-2010
Message 4 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

Hi jeevanandham,

* Configuring Sendmail
http://docs.hp.com/en/5991-6611/ch02s01.html

* Chapter 2 Configuring and Administering Sendmail
http://docs.hp.com/en/5991-6611/ch02.html

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
Respected Contributor
AnthonySN
Posts: 511
Registered: ‎09-30-2006
Message 5 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

Before starting the sendmail deamon
edit the DS line in the /etc/mail/sendmail.cf file to specify the host name of the mail gateway:

DSmailgw.xyz.com
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 6 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

Hi jeevanandham

If the only think you trying is to do relay of your mails to a mail server.

The setup is very simple.

Edit the sendmail.cf and put you mails server in the DS line ex:

DSmy_mail_server.domain

Best Regards
Frequent Advisor
jeevanandham
Posts: 69
Registered: ‎03-11-2009
Message 7 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

Dear all,

i have done the changes as suggested

i have excuted a test mail, cmd executed successfully, but there i sno mail sent to the give email id.

can any one help he to trouble shoot this
Respected Contributor
AnthonySN
Posts: 511
Registered: ‎09-30-2006
Message 8 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

attach your sendmail.conf file
Honored Contributor
Elmar P. Kolkman
Posts: 1,179
Registered: ‎10-16-2003
Message 9 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

On HP-UX, sendmail needs to be able to resolve the hostname you are sending the mail to, even if you have a smart-relay. The resolving might be bogus, as long as it gives a response. We, for instance, have hosts files containing lines like:
1.1.1.1 logistic.com
1.1.1.2 provider.com

As long as the IP addresses are not in use by anything you really need to contact, this works fine. (You might even use the real-world addresses to be sure it works fine)

Also, check out /var/adm/syslog/mail.log for messages regarding your message.

Every problem has at least one solution. Only some solutions are harder to find.
Frequent Advisor
jeevanandham
Posts: 69
Registered: ‎03-11-2009
Message 10 of 16 (9,858 Views)

Re: Sendmail config in HPUX server

i have seen the error log in
/var/adm/syslog/mail.log
Jun 30 13:17:13 tcidb03 sendmail[17512]: o5U7lD917512: from=root, size=149, class=0, nrcpts=0, msgid=<201006300747.o5U7lD917512@tcidb03.telcon.co.in>, relay=root@localhost
Jun 30 13:17:13 tcidb03 sendmail[17512]: o5U7lD917512: to=username@domain.com, delay=00:00:00, mailer=relay, pri=149, dsn=4.4.3, stat=queued
hereby i am attaching the sendmail.cf file also.
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 11 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Hi jeevanandham


post the output of the following commands


nslookup crop_notes_s01.telcon.co.in

ping crop_notes_s01.telcon.co.in


mailq


Restart sendmail after any configuration.

Regards.
Frequent Advisor
jeevanandham
Posts: 69
Registered: ‎03-11-2009
Message 12 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Hi Please find the output
# ping crop_notes_s01.telcon.co.in
PING crop_notes_s01.telcon.co.in: 64 byte packets
64 bytes from IP Address: icmp_seq=0. time=6. ms
64 bytes from IP Address: icmp_seq=1. time=5. ms
64 bytes from IP Address: icmp_seq=2. time=6. ms
64 bytes from IP Address: icmp_seq=3. time=6. ms

----crop_notes_s01.telcon.co.in PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 5/6/6
# nslookup crop_notes_s01.telcon.co.in
Using /etc/hosts on: tcidb03

looking up FILES
Name: crop_notes_s01.telcon.co.in
Address: IP Address

#


i belive that works fine
i have restarted the sendmail service. once i have done the changes in sendmail.cf file


Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 13 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Hi Jeevanandham


Maybe your mail server is refusing connection by your client.

You have any more machine working with this mail server.


Check the mail server to see what happens to email by your client.

Regards.
Frequent Advisor
jeevanandham
Posts: 69
Registered: ‎03-11-2009
Message 14 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Hi Please find the mailq command out as below
# mailq
/var/spool/mqueue (3 requests)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
o5U7lD917512 15 Wed Jun 30 13:17 root
(host map: lookup (hp.com): deferred)
username@domain.com
o5U7NY412769 12 Wed Jun 30 12:53 osmoni
(host map: lookup (hp.com): deferred)
username@domain.com
o5U777n09433 13 Wed Jun 30 12:37 osmoni
(host map: lookup (hp.com): deferred)
username@domain.com
#
can you please suggest to resolve the same
Honored Contributor
Elmar P. Kolkman
Posts: 1,179
Registered: ‎10-16-2003
Message 15 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Add a line to your /etc/hosts file:
10.11.12.13 hp.com

Then the lookup works and it should work.
(Like I mentioned above)
Every problem has at least one solution. Only some solutions are harder to find.
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 16 of 16 (9,851 Views)

Re: Sendmail config in HPUX server

Hi


I think the problem is not in the resolution of the names.

Because you resolve correct the name of your mail server.

So I think you need check the logs of your mail server and see what is happening.

From your mail server or from any other machine connect to your mail server ( relay host ) you can send mail to your address (username@domain.com) ??.

Regards.

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.