Operating System - HP-UX
1833059 Members
2742 Online
110049 Solutions
New Discussion

Sendmail & ServiceGuard A.11.13

 
Juan Manuel Naranjo A.
Frequent Advisor

Sendmail & ServiceGuard A.11.13

I have configured Sendmail in two servers that are in a Cluster built with ServiceGuard A.11.13. My relay Server is a MS-Exchange 2000 Server. Both Servers act as MailServers.

I can send Mails From HP-UX servers to Windows but can`t reply them from windows to the HP--UX servers.

Output in Outlook:
-----------------------------------------------
the destination system is currently not accepting any messages. Please retry at a later time. If that fails, contact your system administrator.
< ppsappr1.propal.com #5.3.0>

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

I can`t even send mails between the two HP-UX servers.

If from HP-UX I run a routing check to a user in the MS-W200 Server:

# sendmail -v @company.com ( To the W-2000 Server )

everything seems OK
output:
---------------------------------------------
jn6426@propal.com.co... deliverable: mailer relay, host pro-m-yub-w-dan.propal.co
----------------------------------------------

If I run a routing check from one HP-UX server to the other one :

# sendmail -v root@.company.com

Everything seems ok.
Output:
-----------------------------------------------
root@ppsappr2.propal.com... deliverable: mailer smtp, host ppsappr2, user root@p
psappr2
-----------------------------------------------

nfslookup resolves their addresses between the two HP-UX systems & from the MS Windows-2000 Server to the HP-UX Servers and visceversa.

I'm able to do a telnet in port 25 between the two HP-UX servers & between the Servers and the MS-2000 Server and visceversa.

Does any one can help ?
12 REPLIES 12
Sridhar Bhaskarla
Honored Contributor

Re: Sendmail & ServiceGuard A.11.13

Hi,

Look at the file /etc/mail/sendmail.cw.

//
Lists all the possible names that this host might by known as, to allow sendmail to determine mail that is destined to be delivered to this machine (ie, it's intended for the local mailer).//

More information is there in the file itself.

Add the DNS names of your floating IP into it and restart sendmail.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Hmmm, sending back from the Windows server back to the HP server:


Here is something to try:

1. Login to your HPUX server, run vi on /etc/mail/sendmail.cf, depending on your version of sendmail on the HP server and uncomment the line that reads:

#Kaccess dbm -o /etc/mail/access

2. On the HPUX server, go to the /etc/mail directory, use vi to setup a file called 'access' with an entry that indicates the account that you are sending from with Outlook:

you@yourcompany.com OK

3. Save this file and execute this command:

makemap -v dbm /etc/mail/access < /etc/mail/access

4. Stop and restart sendmail and retry your operation.

Let me know how it goes.

Mike-


Knowledge Is Power
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Forgot to mention

Confirm that the user you are sending to exists on the HP server (i.e. root, doej, etc.)

Mike
Knowledge Is Power
Juan Manuel Naranjo A.
Frequent Advisor

Re: Sendmail & ServiceGuard A.11.13

I have done what you say, I check the file
/var/adm/syslog/mail.log and found these lines at the end:

Jun 23 11:35:18 ppsappr1 sendmail[21250]: LAB21250: LAC21250: return to sender:
Can't create output
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Add the FQDN (Fully Qualified Domain Name) of your Exchange server into the Access file, and then rerun the makemap command as I stated earlier, then stop and restart sendmail..

If you are able, can you attach a screen print of the last 20 lines of your mail.log file?

Thanx.

Mike-
Knowledge Is Power
Juan Manuel Naranjo A.
Frequent Advisor

Re: Sendmail & ServiceGuard A.11.13

I have thes 2 lines in /etc/mail/access file:
propal.com OK
propal.com.co OK

Last 10 Lines of /var/adm/syslog/mail.log

Jun 23 12:37:56 ppsappr1 sendmail[6338]: MAA06338: to=root, delay=00:03:19, xdel
ay=00:03:19, mailer=local, stat=Can't create output
Jun 23 12:37:56 ppsappr1 sendmail[6338]: MAA06338: MAB06338: return to sender: C
an't create output
Jun 23 12:41:16 ppsappr1 sendmail[6338]: MAB06338: to=root, delay=00:03:20, xdel
ay=00:03:20, mailer=local, stat=Can't create output
Jun 23 12:41:16 ppsappr1 sendmail[6338]: MAA06338: Saved message in /var/tmp/dea
d.letter
Jun 23 12:41:16 ppsappr1 sendmail[6338]: MAA06337: MAC06338: postmaster notify:
Can't create output
Jun 23 12:44:35 ppsappr1 sendmail[6338]: MAC06338: to=root, delay=00:03:19, xdel
ay=00:03:19, mailer=local, stat=Can't create output
Jun 23 12:44:35 ppsappr1 sendmail[6338]: MAC06338: MAD06338: return to sender: C
an't create output
Jun 23 12:47:54 ppsappr1 sendmail[6338]: MAD06338: to=root, delay=00:03:19, xdel
ay=00:03:19, mailer=local, stat=Can't create output
Jun 23 12:47:54 ppsappr1 sendmail[6338]: MAC06338: Saved message in /var/tmp/dea
d.letter
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Ok, here are some things we need to check:

1. Check the permissions on /var/tmp. For now, change the permissions to 777 (i.e. chmod 777 /var/tmp

2. Execute the sendmail -q command, this should flush out the files in /var/spool/mqueue.

3. Check permissions of /tmp. For now, change to 777 (i.e. chmod 777 /tmp).

Stop and restart sendmail and try your operation once more.

Mike-
Knowledge Is Power
Juan Manuel Naranjo A.
Frequent Advisor

Re: Sendmail & ServiceGuard A.11.13

I have checked directory permisions &
there is no any improvement.

I have two other machines withou Service Guard and they work OK !

IS there any restriction in Service Guard for Sendmail ?
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Juan-

Yours is a peculiar issue.

I have 3 SG clusters and Sendmail works with no problem. I do not know of any issues of Sendmail with SG Version A.11.13.

The only other thing I can ask you to do is to fire an email from Outlook, review the mail log and let me know what 'host' the HP server states the mail is coming from.

Thanx.

Mike E.
Knowledge Is Power
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

More questions, as I decided to re-read your original post:

1. When you address an email in Outlook, who is the 'recipient'?

2. When you send mail between the HPUX servers, what is the command that you are using to send the mail?

3. Can I see the output that you received on the bounceback when you initially tried to send email from the Windows server.

Mike-
Knowledge Is Power
Juan Manuel Naranjo A.
Frequent Advisor

Re: Sendmail & ServiceGuard A.11.13

Mike:

I have activated the DeadLetter parameter & forun that Sendmail couldn`t create the ouput files in /var/tmp.

Now something is worng because the sendmail permissions & owner are:

-r-sr-sr-t 1 root mail

And permisions in /var/mail where

drwxrwxr-x 2 bin mail

But files are created in /var/mail by the user daemon .
Michael Elleby III_1
Trusted Contributor

Re: Sendmail & ServiceGuard A.11.13

Juan-

Before we move on, what version of sendmail are you using (execute the command 'what /usr/sbin/sendmail')

Then, here is what I would do:

1. Rename these files in /etc/mail directory with a .orig extension:

sendmail.cf
sendmail.cw
service.switch
access
aliases

2. copy a 'skeleton' sendmail.cf, sendmail.cw, and service.switch and from /usr/newconfig/etc/mail.

3. Modify your sendmail.cf file so that your server can resume sending mail (i.e. modify the DS macro to read 'DSexchangeserverrelayname.com')

4. Stop and restart sendmail.

5. Send a test email from Outlook, check your mail log and tell me what host the HP server states that the message is coming from.

Mike

At this point, you should be able to also send mail to the other HP box and vice versa.
Knowledge Is Power