1834695 Members
2402 Online
110069 Solutions
New Discussion

Sendmail

 
SOLVED
Go to solution
Rahul Pednekar
Frequent Advisor

Sendmail

Hi Guys,

Can anybody tell me how do i check wether sendmail is configured on my OS. I'm using HP-UX 11.23 and its an Oracle apps server

Thanks in advance.

Rahul.....
4 REPLIES 4
inventsekar_1
Respected Contributor
Solution

Re: Sendmail

HI Rahul,

write the command "sendmail" in command prompt. it will ask like "Recipient names must be specified"
--------------------
root@abcd [ /sekar/new ] # sendmail
Recipient names must be specified
root@abcd [ /sekar/new ] #
--------------------

Verifying Your sendmail:

You can verify that sendmail has been installed properly and is working properly by doing the things described in the following sections:

1. "Mailing to a Local User"

2. "Mailing to a Remote User with UUCP Addressing" (if you are using it).

3. "Mailing to a Remote User with the SMTP Transport" (if you are using it).

1.)Mailing to a Local User

To check your local mailer or user agent, mail a message to a local user (for example, joe) on your system:

date | mailx -s "Local sendmail Test" joe

This should result in a message similar to the following being sent to user joe:


From joe Wed Aug 6 09:18 MDT 1986Received: by node2; Wed, 6 Aug 86 09:18:53 mdtDate: Wed, 6 Aug 86 09:18:53 mdtFrom: Joe User Return-Path: To: joeSubject: Local sendmail Test Wed Aug 6 09:18:49 MDT 1986

An entry in your /var/adm/syslog/mail.log file should have been logged for the local message transaction. See "Configuring and Reading the sendmail Log" for more information.

2.)Mailing to a Remote User with UUCP Addressing

For this test, mail a message to a remote user with the UUCP transport by using a host !user address, where host is a system to which your local host has a direct UUCP connection. (The uuname command lists the UUCP names of known systems. Type man 1 uuname at the HP-UX prompt for more information.)

To verify both inbound and outbound UUCP connections, mail the message in a loop, using the syntax remote_host !my_host !user. For example, if you try

date | mailx -s "UUCP Test" node1!node2!joe

and node2 is your local host, you should receive a message similar to this:

From node1!node2!joe Wed Aug 6 09:48 MDT 1986Received: by node2; Wed, 6 Aug 86 09:48:09 mdtReturn-Path: Received: from node1.UUCP; Wed, 6 Aug 86 09:30:16Received: by node1; Wed, 6 Aug 86 09:30:16 mdtReceived: from node2.UUCP; Wed, 6 Aug 86 09:26:18Received: by node2; Wed, 6 Aug 86 09:26:18 mdtDate: Wed, 6 Aug 86 09:26:18 mdtFrom: Joe User To: node1!node2!joeSubject: UUCP Test Wed Aug 6 09:26:15 MDT 1986

An entry in your /var/adm/syslog/mail.log file should have been logged for the UUCP mail transaction. See "Configuring and Reading the sendmail Log" for more information.

3.)Mailing to a Remote User with the SMTP Transport

For this test, mail a message to a remote user with the SMTP transport using a user @host address, where host is a system that provides an SMTP server (for example, the sendmail daemon).

To verify both inbound and outbound SMTP connections, mail the message in a loop, using the syntax user %my_host @remote_host. For example, if you try

date | mailx -s "Round Robin SMTP" joe%node2@node1

you should receive a message similar to the following:

From joe@node2 Wed Aug 6 14:22 MDT 1986Received: from node1 by node2; Wed, 6 Aug 86 14:22:56 mdtReturn-Path: Received: from node2 by node1; Wed, 6 Aug 86 14:25:04 mdtReceived: by node2; Wed, 6 Aug 86 14:22:31 mdtDate: Wed, 6 Aug 86 14:22:31 mdtFrom: Joe User To: joe%node2@node1Subject: Round Robin SMTP Wed Aug 6 14:22:28 MDT 1986

An entry in your /var/adm/syslog/mail.log file should have been logged for the SMTP mail transaction. See "Configuring and Reading the sendmail Log" for more information.

find the attached document page number 57.
Be Tomorrow, Today.
Prashanth.D.S
Honored Contributor

Re: Sendmail

Hi Rahul,

I guess the below attached link should give you more details on sendmail configuration...

http://docs.hp.com/en/B3921-90010/sendmail.1M.html

Best Regards,
Prashanth
Steven E. Protter
Exalted Contributor

Re: Sendmail

Shalom Rahul,

sendmail is installed by default.

If the machine can resolve the hostname of the intended addressee it will deliver but not receive mail by default.

Most corporate environments require some additonal configuration to actually make sure the mail gets some place.

The normal course of action is to set the DS directive in sendmail.cf to a permitted relay server that delivers the servers email.

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
Rahul Pednekar
Frequent Advisor

Re: Sendmail

Thanks all...