Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Sendmail question

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-09-2006   -   Original Discussion by Jake513
Jake513's Unix or Linux Image
Jake513 Jake513 is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 15 April 2008, 7:06 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sendmail question

I apologize for asking what I'm sure is a basic question, but I have an automated script that will send a file using sendmail to a list of e-mail accounts.

When one or more of those e-mail accounts is bad, it bounces the message back to the account that is executing the script.

How can I send the mail and NOT receive the bounced back message? If it isn't much harder, how can I send the ID of the failed e-mail address to a file?

thanks for your help
Sponsored Links
    #2  
Old Unix and Linux 02-11-2006   -   Original Discussion by Jake513
aniseed's Unix or Linux Image
aniseed aniseed is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 14 August 2008, 3:58 PM EDT
Location: Mumbai, India
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.computerhope.com/unix/usendmai.htm
Take a look at the -N option.
Sponsored Links
    #3  
Old Unix and Linux 02-13-2006   -   Original Discussion by Jake513
Jake513's Unix or Linux Image
Jake513 Jake513 is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 15 April 2008, 7:06 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
But wait, there's more...

Thanks Aniseed. I checked that option before and either I am doing it wrong, or it isn't what I am after. This is what I am using (I tried each of the 3 options because I wasn't sure how the parameter was passed):

cat header no_data.msg | /usr/lib/sendmail -t -N"NEVER"
cat header no_data.msg | /usr/lib/sendmail -t -NNEVER
cat header no_data.msg | /usr/lib/sendmail -t -Nnever

The header is created with the e-mail addresses within and then passed to the sendmail as shown.

I think I left some important information out, too. I don't have root or an administrator account. The e-mail accounts are not on the machine, they are external.

Thanks a lot!
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sendmail question Hugues Solaris 0 04-18-2007 03:59 PM
Sendmail Question KenLynch Solaris 1 01-17-2007 08:41 AM
Sendmail Question KenLynch Solaris 2 01-16-2007 08:07 AM
Sendmail question GLJ@USC UNIX for Dummies Questions & Answers 4 09-28-2006 09:13 AM
Sendmail question Dan Savarino UNIX for Dummies Questions & Answers 2 04-19-2002 12:08 PM



All times are GMT -4. The time now is 07:59 AM.