Operating System - HP-UX
1834584 Members
3597 Online
110069 Solutions
New Discussion

Re: Mailx working intermittence

 
hapmbaan
New Member

Mailx working intermittence

Below is sample of my mailx. On Monday, working ok which have 3 emails. 1 for Baanstop, 2 for orastop and 3 for backup.
Please advice why sometimes not working for other days including other Monday. Also refer to our crontab. Please advice.


# mailx
mailx Revision: 1.179.214.2 Date: 98/12/01 01:29:55 Type ? for help.
"/var/mail/root": 5 messages 5 new
>N 1 root@baansvr Fri May 18 01:05 27/711 cron
N 2 root@baansvr Fri May 18 02:11 114064/7151492 cron
N 3 root@baansvr Mon May 21 01:05 27/711 cron
N 4 root@baansvr Mon May 21 01:20 23/621 cron
N 5 root@baansvr Mon May 21 02:11 114285/7164121 cron
?


# crontab -l
03 01 * * * /u01/baanstop.sh
20 01 * * * /u01/oracle/orastop.sh
30 01 * * * /usr/sbin/fbackup -vf /dev/rmt/3m -i /u01/baan/dict -i /u01/baan/bse
/application -i /u01/oracle/oradata/baan -i /u03/oracle/oradata/baan -i /u04
5 REPLIES 5
Rasheed Tamton
Honored Contributor

Re: Mailx working intermittence

Do you see any error on /var/adm/syslog/mail.log

As I understand from your question, you can try adding a cronjob for root and as
/usr/sbin/sendmail -q for every 5 minutes or 10 minutes. It will process the queue according to that.

Manually you can run sendmail -qv also to process the queue.

Otherwise, please give more details about your problem.
hapmbaan
New Member

Re: Mailx working intermittence

Thank 4 ur reply. I have checked the mail.log and below is our log :

May 21 01:05:17 baansvr sendmail[6856]: unable to qualify my own domain name (ba
ansvr) -- using short name
May 21 01:05:17 baansvr sendmail[6856]: be sure to set domain name in Dj macro
in sendmail.cf
May 21 01:05:17 baansvr sendmail[6856]: gethostbyaddr(x.x.x.x) failed: 1
May 21 01:05:17 baansvr sendmail[6856]: BAA06856: from=root, size=424, class=0,
pri=30424, nrcpts=1, msgid=<200705201705.BAA06856@baansvr>, relay=root@localhost
May 21 01:05:17 baansvr sendmail[6858]: BAA06856: to=root, ctladdr=root (0/3), d
elay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent

The problem is, we received the same error log every time when emails sent but sometimes we received the emails but sometimes we do not received the emails. We are expecting an emails after each backup sessions to know whether backup sucessfull or not. Below are the latest email received :

N 1 root@baansvr Fri May 18 01:05 27/711 cron
N 2 root@baansvr Fri May 18 02:11 114064/7151492 cron
N 3 root@baansvr Mon May 21 01:05 27/711 cron
N 4 root@baansvr Mon May 21 01:20 23/621 cron
N 5 root@baansvr Mon May 21 02:11 114285/7164121 cron
N 6 root@baansvr Tue May 22 01:20 23/621 cron
N 7 root@baansvr Wed May 23 01:20 23/621 cron


Then, we have run sendmail -q and we received nothing.

Please advice. And we are confius when the system prompt : (May 21 01:05:17 baansvr sendmail[6856]: gethostbyaddr(x.old ip.x) failed: 1)

Actually system display our old ip address and where to change it to new ip. We have check our hosts and sendmail.cw file and do not find the old address to change.

TQ.

Rasheed Tamton
Honored Contributor

Re: Mailx working intermittence

Hi,


First put the FQDN of your box on the /etc/hosts

IP baansvr.yourdomain.com baansvr

You said the IP is old. Verify it on the /etc/hosts.

If you use DNS, update the entries on DNS.
/etc/mail is the dir for the mail.

-Edit the hosts line in /etc/mail/service.switch and remove the dns keyword
- Edit the sendmail.cf file and uncomment the "O ServiceSwitchFile= " line
-grep ^DS /etc/mail/sendmail.cf (check what is the DS macro, if any or upate with the correct one)
-Restart the sendmail daemon using the "/sbin/init.d/ sendmail stop" and "/sbin/init.d/sendmail start"
hapmbaan
New Member

Re: Mailx working intermittence

Hi,

Sorry, actually i'm a beginner in this area. Can you please assits me if i'm wrong.

I already done all the steps as per mentions and found below errors on my mail.log.

Jun 5 16:00:08 baansvr sendmail[15638]: unable to qualify my own domain name (b
aansvr) -- using short name
Jun 5 16:00:08 baansvr sendmail[15638]: be sure to set domain name in Dj macro
in sendmail.cf
Jun 5 16:00:08 baansvr sendmail[15638]: gethostbyaddr(x.old IP.x.x) failed: 1

I cannot find the old setup IP in the hosts file because already new IP.


I do - grep ^DS /etc/mail/sendmail.cf and received this DS
Question : is DS is the correct one or if i need to update, what should i change.

TQ.
Keith Johnson
Valued Contributor

Re: Mailx working intermittence

To clear the "unable to qualify my own domain name (baansvr) -- using short name" message: Set the Dj macro in the /etc/mail/sendmail.cf file to your domain name.

The DS macro is only used if you are using a mail relay. If you are using a relay, set it to either the IP address or the FQDN of the mail relay.
No matter where you go...there you are.