Operating System - HP-UX
1748179 Members
4173 Online
108758 Solutions
New Discussion юеВ

Re: 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 2
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.