Home Man
Today's Posts

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

Sendmail question



Thread Tools Search this Thread
# 1  
Old 02-09-2006
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
# 2  
Old 02-11-2006
Take a look at the -N option.
# 3  
Old 02-13-2006
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!

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HPUx sendmail Question makaveli HP-UX 7 05-21-2009 03:36 AM
Question about Sendmail Options hcliff UNIX for Dummies Questions & Answers 1 01-27-2009 10:44 AM
Question regarding sendmail and exchange 5.5 John Racela UNIX for Dummies Questions & Answers 2 04-25-2008 10:03 PM
sendmail question Hugues Solaris 0 04-18-2007 02:59 PM
Sendmail Question KenLynch Solaris 1 01-17-2007 07:41 AM
Sendmail Question KenLynch Solaris 2 01-16-2007 07:07 AM
Sendmail question GLJ@USC UNIX for Dummies Questions & Answers 4 09-28-2006 08:13 AM
Sendmail Config Question callingrohit Solaris 5 08-29-2006 08:01 AM
Sendmail question Malbeuf UNIX for Advanced & Expert Users 5 09-05-2002 11:52 AM
Sendmail question Dan Savarino UNIX for Dummies Questions & Answers 2 04-19-2002 11:08 AM

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

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password