- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Not receiving emails
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-20-2009 12:38 PM
тАО03-20-2009 12:38 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 12:53 PM
тАО03-20-2009 12:53 PM
SolutionIf the mail is not submitted to the local sendmail, check your script for errors. There could be a variable in your script that got set wrong or changed and it threw off the script syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 03:44 PM
тАО03-20-2009 03:44 PM
Re: Not receiving emails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 04:09 PM
тАО03-20-2009 04:09 PM
Re: Not receiving emails
And you are using the same "my_email" for both?
This info from your log doesn't tell you the reason it failed:
Final-Recipient: RFC822; email1
Action: failed
Status: 5.0.0
Last-Attempt-Date: Sat, 21 Mar 2009 02:17:37 +1100 (EDT)
I would expect that if my_email matched one of the email1 it would work the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 04:29 PM
тАО03-20-2009 04:29 PM
Re: Not receiving emails
Also i found something strange for me, i ps of sendmail and its not running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 05:51 PM
тАО03-20-2009 05:51 PM
Re: Not receiving emails
That is fine. E-mail CAN be sent without the sendmail process running.
The only reason for a sendmail process to run is if the server it is running on is supposed to **receive** e-mail messages from **other** servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 05:45 AM
тАО03-21-2009 05:45 AM
Re: Not receiving emails
What email address is the script using? What server is that email address ? Is it the same server or another server.
Your attachement is not the mail.log, it is probably the root's mailbox. You need to look in /var/adm/syslog/mail.log, at the bottom to see what happens to the emails.
Does your script give any errors? Post the part of the script that sends the email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 07:20 AM
тАО03-21-2009 07:20 AM
Re: Not receiving emails
here is the part of the script that sends mail
echo "\n# Full Backup of `/usr/bin/hostname` completed at `/usr/bin/date +'%d %b %Y - %H:%M:%S'`\n" >> $LOGFILE 2>&1
/usr/bin/grep "\#" $LOGFILE | mailx -s "`/usr/bin/hostname` Backup log for `/usr/bin/date +'%d %b %Y'`" $MAIL
exit $?
I also tried to send a test email using mailx
and i got this result:
server1[crontabs]# echo "TESTING" | mailx -s "TESTING" email1
server1[crontabs]# Who are you?: Not a typewriter
syslog failed: Resource temporarily unavailable, syslog output to stderr
Sendmail: CAA27433: SYSERR(UID0): Who are you?: Not a typewriter
cannot open /no/such/directory/dead.letter: No such file or directory
Looks like that it hangs it stays there forever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 11:31 AM
тАО03-21-2009 11:31 AM
Re: Not receiving emails
"...This error occurs due to the user ID associated with the user 'nobody'. Verify the UID is a non-negative value..."
Do you have a "nobody" user in /etc/passwd and does it have a negative value?
I do not have a "nobody" user in my server and even after I created the "nobody" user, I could not reproduce the error.
See if you can install any sendmail patches.
Also check if the user $MAIL that the script uses, exists as a user or an alias.
Check the aliases file if there is anything unusual in there and rebuild the aliases database by running "newaliases".
Check all the file permissions and ownership in /etc/mail
Is there anything else at the bottom of /var/adm/syslog/mail.log when you try to send a test email?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 08:35 AM
тАО03-23-2009 08:35 AM
Re: Not receiving emails
$ grep -i nobody /etc/passwd
nobody:*:-2:-2::/:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 09:07 AM
тАО03-23-2009 09:07 AM
Re: Not receiving emails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 10:21 AM
тАО03-23-2009 10:21 AM
Re: Not receiving emails
How do i check this:
"Also check if the user $MAIL that the script uses, exists as a user or an alias."
Here are the permission in /etc/mail:
-r--r--r-- 1 2 bin 947 Jul 4 2003 aliases
-rw-r--r-- 1 0 mail 24576 Dec 1 13:56 aliases.db
-r--r--r-- 1 2 bin 10222 Nov 14 2000 mailcap
-rw-r--r-- 1 0 sys 94316 Nov 7 2002 sendmail.cf
-r--r--r-- 1 2 bin 770 Dec 8 2004 sendmail.cw
-rw-r--r-- 1 0 sys 616 Mar 24 03:12 sendmail.st
-r--r--r-- 1 2 bin 1008 Nov 12 2001 service.switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 10:37 AM
тАО03-23-2009 10:37 AM
Re: Not receiving emails
Post the output of
ll -d / /etc /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 11:43 AM
тАО03-23-2009 11:43 AM
Re: Not receiving emails
# ll -d /etc/passwd
-r--r--r-- 1 0 sys 7732 Mar 16 04:31 /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 12:55 PM
тАО03-23-2009 12:55 PM
Re: Not receiving emails
I assume you ran the "ll -d /etc/passwd" as root based on the "#" prompt. It still does not show the user owner of the file. Instead of
-r--r--r-- 1 0 sys 7732 Mar 16 04:31 /etc/passwd
It should look like
-r--r--r-- 1 root sys 7732 Mar 16 04:31 /etc/passwd
Note that it should show "root" instead of "0" (zero). Check out the contents of /etc/password specifically the syntax about the root and other system user accounts such as bin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 01:03 PM
тАО03-23-2009 01:03 PM
Re: Not receiving emails
That should be /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 01:15 PM
тАО03-23-2009 01:15 PM
Re: Not receiving emails
$ ll -d / /etc /etc/passwd
drwxr-xr-x 26 0 root 1024 Dec 16 21:32 /
dr-xr-xr-x 32 2 bin 7168 Mar 16 04:31 /etc
-r--r--r-- 1 0 sys 7732 Mar 16 04:31 /etc/passwd
$ more /etc/passwd
root:vUm/wrr2KDgKg:0:3:Root Account:/root:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico
hpdb:*:27:1:ALLBASE:/:/sbin/sh
nobody:*:-2:-2::/:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 01:31 PM
тАО03-23-2009 01:31 PM
Re: Not receiving emails
> # ll -d /etc/passwd
> -r--r--r-- 1 0 sys 7732 Mar 16 04:31 /etc/passwd
Also are you running NIS on this server? (type ypwhich)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 02:08 PM
тАО03-23-2009 02:08 PM
Re: Not receiving emails
NIS is not configured in the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 06:54 PM
тАО03-23-2009 06:54 PM
Re: Not receiving emails
-2 is the proper value for nobody.
>Something is preventing the user owner from displaying in /etc/mail. It shows "2" and "0" instead of "bin" and "root"
The last time this happened, restarting pwgrd(1M) fixed it, not NIS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 07:56 PM
тАО03-23-2009 07:56 PM
Re: Not receiving emails
# /sbin/init.d/pwgr start