![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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??? |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|
|||
|
|||
|
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. |
|||
| Google UNIX.COM |
| 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 |