Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle the bounced/un-deliverable email in Sendmail HPUX.

Len Zheng
Occasional Contributor

how to handle the bounced/un-deliverable email in Sendmail HPUX.

Hi,

I am new to sendmail. I tried to send out the following email through the sendmail command line (sendmail -t -em -------------------
From: abc@abcd.com
To: xyz@hp.com
Reply-To: customer.support@hp.com
Errors-To: customer.support@hp.com
Subject: Test

Body.......
------------
Is the command option right? Or the "-t" option only check the "To: CC: Bcc:" fields only?

What I want to achieve is when the email is bounced if the receipt address is wrong, it will returned to another email account(customer.support@hp.com), not the fromer(sender): abc@abcd.com.

Thanks
Len
2 REPLIES
Steven E. Protter
Exalted Contributor

Re: how to handle the bounced/un-deliverable email in Sendmail HPUX.

Shalom,

sendmail is all sent by root and bounced by root if sent by cron.

You cat set up an alias for root so bounce messages go elsewhere

/etc/aliases or /etc/mail/aliases depending on your sendmail release.

username: mailaccount@yournet

You probably have to restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Len Zheng
Occasional Contributor

Re: how to handle the bounced/un-deliverable email in Sendmail HPUX.

Thanks.

That means all the bounced email which are from this server will go to the new account (customer.support@hp.com), but I am only interested some of them which send out by our application. Is the way I descibed previous workable?

Actually this is used by another application(not under root account), not the cron, which send all emails with the same/similiar template. Let's say customer order info, so it is kind important email, if the email is bounced, the customer support still can track or follow up with the user if the bounced/un-devliverable email re-direct to our customer support team. BTW, I can see the sender is app_user@xyz.hp.com from the mail's Intenet header, not the server/host name(app_user@hostname.