Success status of mailx command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Success status of mailx command
# 1  
Old 11-30-2005
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???
# 2  
Old 11-30-2005
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.)
# 3  
Old 11-30-2005
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.
# 4  
Old 12-01-2005
Can I get the exit status of finger username@host.com
as in if the username@host.com exists or not?
# 5  
Old 12-01-2005
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Python Conditional Statements Based on Success of Last Command

In shell scripting, I can create a conditional statement based on the success or failure (exit status)of a command such as: pinger() { ping -c 2 $remote_host >/dev/null 2>&1 ping_stat=$? } pinger if ]; then echo "blahblahblah" exit 0 fi how is this done using Python using... (3 Replies)
Discussion started by: metallica1973
3 Replies

2. UNIX for Dummies Questions & Answers

Check Success Status Of sed command

How do i check success status of a sed command execution i have the below script not sure if it is right approach to check status of execution using a function. Also it looks like in the below sed command even if the search string doesn't exist in the file it is returning status as success as i... (6 Replies)
Discussion started by: Ariean
6 Replies

3. Red Hat

Mailx command

Using RHEL 5.5 New to using 'mailx' Was trying to check if mailx is configured. mailx command gives a list of unread mails. Now I tried to send mail using this command to a local or on network machine using mailx -s "Test2" "root@<servername>" But did not receive any message. (6 Replies)
Discussion started by: ikn3
6 Replies

4. UNIX for Dummies Questions & Answers

Message success/faliure delivery notification - mailx

Guys, Is it possible to get a delivery status message like success/faliure notification after sending a mail using mailx. -v option can be used to get the message failure notification if any.. is there any option to get the message success notification? (0 Replies)
Discussion started by: manoharg
0 Replies

5. Shell Programming and Scripting

mailx command

( cat textfile.txt; ) | mailx -s "test mail " `cat mailids.lst` from :'server@example.com' to : for all contacts in text file mailids.lst above command is sending mails correctly for all contacts in text file mailids.lst, but 'from' address is showing as 'server@example.com' but i want... (5 Replies)
Discussion started by: only4satish
5 Replies

6. Shell Programming and Scripting

Success/failure status of telnet connection

Hi, I am running a shell script which will spawn the telnet and login. But sometimes, the telnet session itself is not getting spawned. My requirement is, if the telnet session is not spawned, the user must be notified that it failed. Is there any command to capture the status of telnet... (2 Replies)
Discussion started by: merin
2 Replies

7. UNIX for Advanced & Expert Users

Equivalents of tee command to find exit status of command

Hi, Want to log the output of command & check the exit status to find whether it succeeded or failed. > ls abc ls: abc: No such file or directory > echo $? 1 > ls abc 2>&1 | tee log ls: abc: No such file or directory > echo $? 0 Tee commands changes my exit status to be always... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

8. Solaris

mailx command

Dear all, Every time if i use mailx it is asking for entering the From Address. I want to set it in some place, So that it will take it by default whenever we send mails. Pl help on this. Regards JeganR (2 Replies)
Discussion started by: jegaraman
2 Replies

9. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

10. UNIX for Dummies Questions & Answers

EXIT STATUS on mailx/sendmail

Hi there I am using mailx command to send mails. I want to send some important files to team members and wud like to know if the team member has recd my email or not. How can I achieve this ? Currently my piece of code is uuencode ${FILE_NAME} ${FILE_NAME} >> mail_msg.txt mailx -s"test... (5 Replies)
Discussion started by: Amruta Pitkar
5 Replies
Login or Register to Ask a Question