The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Not able to send email as CC to a ID using Mailx command in HP UX rohit.shetty84 UNIX for Dummies Questions & Answers 1 05-14-2008 03:27 AM
Did not received any email for account activation bhush782003 Forum Support Area for Unregistered Users & Account Problems 0 06-05-2006 04:58 PM
mailx- can we change the from address in the email that is sent out. radhika UNIX for Dummies Questions & Answers 5 09-21-2005 07:37 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM
sending email from mailx legato UNIX for Dummies Questions & Answers 1 11-04-2004 10:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-10-2007
monkfan monkfan is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 22
Problem with mailx - Can execute but email not received

Hi,

I tried running mailx command like this:

Code:
sadm@bioinfo-z:~$ mailx foobar@gmail.com
Subject: testgmail
Some content.
.
EOT
As you can see although it is successfuly executed.
But still I can't receive email at my foobar@gmail.com
account.

What is the cause?
  #2 (permalink)  
Old 04-10-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
check the return status $?

it could be in your send queue and yet to be delivered.

If you are on solaris, you could check the status of the delivery in /var/adm/messages
  #3 (permalink)  
Old 04-10-2007
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by monkfan
Hi,

I tried running mailx command like this:

Code:
sadm@bioinfo-z:~$ mailx foobar@gmail.com
Subject: testgmail
Some content.
.
EOT
As you can see although it is successfuly executed.
But still I can't receive email at my foobar@gmail.com
account.

What is the cause?
Im pretty sure its a dns issue (again) and if you type mailq, i bet all the mail you sent is in deferred state ...
If so, fix the dns issue if your box is using a dns or just take it out on /etc/nsswitch.conf (remove dns on the hosts entry) and you would want to check also if your mail gateway is set correctly in mail.cf (DS macro on sendmail system)
  #4 (permalink)  
Old 04-10-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally Posted by matrixmadhan
If you are on solaris, you could check the status of the delivery in /var/adm/messages
A default Solaris syslog.conf configuration will log mail.debug (and above) to /var/log/syslog - not /var/adm/messages. Only mail.crit (and above) will be logged to /var/adm/messages.

Cheers
ZB
  #5 (permalink)  
Old 04-10-2007
Sowser Sowser is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 90
try this

try checking the mail queue.

'mailq' and see if the email left the system.

someone already recommended checking the mailq. my bad. but here is an example output.

servername:/root# mailq
/var/spool/mqueue is empty
Total requests: 0

-Sowser
  #6 (permalink)  
Old 04-10-2007
monkfan monkfan is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 22
After executing the mailx, I tried "mailq" it gives me this:

Code:
sadm@bioinfo-z:~$ mailq
Mail queue is empty
How can I fix this issue?

Last edited by monkfan; 04-10-2007 at 10:29 PM..
  #7 (permalink)  
Old 04-10-2007
monkfan monkfan is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 22
After running the mailx, looking at syslog shows this:
Code:
root@bioinfo-z:/# tail -f var/log/syslog
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/pickup[21761]: [ID 197553 mail.info] 6C8B8BA1E: uid=30 from=<sadm>
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/cleanup[21847]: [ID 197553 mail.info] 6C8B8BA1E: message-id=<20070411025353.6C8B8BA1E@bioinfo-z.comp.nus.edu.sg>
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/qmgr[20137]: [ID 197553 mail.info] 6C8B8BA1E: from=<sadm@bioinfo-z.comp.nus.edu.sg>, size=337, nrcpt=1 (queue active)
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/smtp[21849]: [ID 197553 mail.info] 6C8B8BA1E: to=<ewijaya@gmail.com>, relay=post.comp.nus.edu.sg[137.132.80.42]:25, delay=0.2, delays=0.1/0.04/0.01/0.05, dsn=5.7.1, status=bounced (host post.comp.nus.edu.sg[137.132.80.42] said: 554 5.7.1 <ewijaya@gmail.com>: Relay access denied (in reply to RCPT TO command))
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/cleanup[21847]: [ID 197553 mail.info] 916CCBA20: message-id=<20070411025353.916CCBA20@bioinfo-z.comp.nus.edu.sg>
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/bounce[21850]: [ID 197553 mail.info] 6C8B8BA1E: sender non-delivery notification: 916CCBA20
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/qmgr[20137]: [ID 197553 mail.info] 916CCBA20: from=<>, size=2298, nrcpt=1 (queue active)
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/qmgr[20137]: [ID 197553 mail.info] 6C8B8BA1E: removed
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/error[21851]: [ID 197553 mail.info] 916CCBA20: to=<sadm@bioinfo-z.comp.nus.edu.sg>, relay=none, delay=0.05, delays=0.01/0.04/0/0, dsn=5.0.0, status=bounced (local delivery is disabled)
Apr 11 10:53:53 bioinfo-z.comp.nus.edu.sg postfix/qmgr[20137]: [ID 197553 mail.info] 916CCBA20: removed
How can I solve the problem?
Sponsored Links
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0