The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx Command shahnazurs UNIX for Advanced & Expert Users 3 11-15-2007 09:31 PM
EXIT STATUS on mailx/sendmail Amruta Pitkar UNIX for Dummies Questions & Answers 5 08-13-2006 11:18 PM
Verifying remote command status ravikiran HP-UX 0 06-08-2006 07:36 AM
Status of the second to last command goswell Shell Programming and Scripting 5 04-13-2006 12:19 PM
mailx command sveera Shell Programming and Scripting 5 04-28-2005 07:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Jun 2005
Posts: 26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Success status of mailx command

Hi
I want to know if the email address in the mailx exists or not
Eg:
Mailx -s "Subj" hello@ab.com
How do I know if the email address is a valid one???
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-30-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Sorry, there is no way to do that. If everyone followed the rfc's exactly, the mail would be delivered or returned. That might take days or even weeks. But lots of sites just silently discard undeliverable mail. If your servers are not configured correctly, the mail can arrive at a destination host without a vaild return address. Spammers do this intentionally. (A spammer once sued AOL for returning undeliverable mail as per the rfc's.)
Reply With Quote
  #3 (permalink)  
Old 11-30-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,289
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
ping will tell you if a site is up or whois will tell you about a valid domain name.

finger username@host.com (which is frequently turned off) will tell you if the username is valid for the domain name.

Like Perderabo says, mailx and sendmail don't know about username at the time email is sent.
Reply With Quote
  #4 (permalink)  
Old 12-01-2005
Registered User
 

Join Date: Jun 2005
Posts: 26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Can I get the exit status of finger username@host.com
as in if the username@host.com exists or not?
Reply With Quote
  #5 (permalink)  
Old 12-01-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,289
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
finger does return a status but if you read my earlier post, it is turned off on a lot of servers. So, the status you get is essentially meaningless.

If you described what your problem is, there may be another solution rather than checking usernames on every email.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash exec bash for loop close_wait command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix dead.letter find grep find null character in a unix file grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device ksh if logrotate.conf lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute vi+substitute+end+of+line+character while loop within while loop shell script


All times are GMT -7. The time now is 07:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101