LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Email change notification in SendMail. (https://www.linuxquestions.org/questions/linux-software-2/email-change-notification-in-sendmail-372356/)

thekillerbean 10-12-2005 02:23 PM

Email change notification in SendMail.
 
I've added an entry to the /etc/mail/access file so that users sending messages to people no longer working at the company get notified. This is working as expected in that the messages are not accepted and they get a reject message telling them why.

What I'm looking for is the documentation on whether one can change the subject line as many users do no normally read reject messages and may never see that the section where the notification is being plugged. An example of what they are getting is:

Code:

Subject:  Returned mail: see transcript for details

The original message was received at Wed, 12 Oct 2005 22:29:34 +1000
from dsl-202-173-xxx-yyy.some_isp_domain.com [202.173.xxx.yyy]

  ----- The following addresses had permanent fatal errors -----
<user@domain.com>
    (reason: 550 5.0.0 <user@domain.com>... Please note
new email address:user@newdomain.com
)

  ----- Transcript of session follows -----
... while talking to mail.domain.com.:
>>> DATA
<<< 550 5.0.0 <user@domain.com>... Please note new email
address:user@newdomain.com
550 5.1.1 <user@domain.com>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

As can be seen, the subject line does not immediately notify the user that a new email address is needed to communicate with the user. I'd like to change the subject line so that senders can immediately tell what the reject reason is and hence prompt them to read the reject message to extract the proper address.

Is this doable in sendmail-8.12.10-1?

Thanks.


All times are GMT -5. The time now is 10:30 PM.