- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mailx working intermittence
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2007 01:15 PM
05-20-2007 01:15 PM
Mailx working intermittence
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2007 11:23 PM
05-20-2007 11:23 PM
Re: Mailx working intermittence
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 06:25 PM
05-22-2007 06:25 PM
Re: Mailx working intermittence
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 07:57 PM
05-22-2007 07:57 PM
Re: Mailx working intermittence
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 08:17 PM
06-04-2007 08:17 PM
Re: Mailx working intermittence
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 02:19 AM
06-05-2007 02:19 AM
Re: Mailx working intermittence
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.