LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   custom bounce message with Sendmail (https://www.linuxquestions.org/questions/linux-server-73/custom-bounce-message-with-sendmail-559597/)

shinepuppy 06-06-2007 07:43 AM

custom bounce message with Sendmail
 
Hey Folks,
I have inherited a sendmail rollout and need to be able to generate a customized bounce message when mail comes in for a particular email alias (noreply@domain.com). Since sendmail is new to me I'm reading a few oreilly books but I need to get this config set ASAP. Does anyone have any input on this particular problem?

thanks :)

gilead 06-07-2007 06:20 PM

You can use the access file to generate messages. For example, I got sick of spammers hitting an old email account of mine (oracle@mydomain.com.au) so in my access file I have:
Code:

oracle@mydomain.com.au  ERROR:550 Mailbox disabled for this username
I re-generated the access db with the following command. That email address no longer receives mail and the sender gets the message I have set.
Code:

makemap -v hash /etc/mail/access < /etc/mail/access
To use the access file you need to have it enabled in sendmail.cf. You can enable it by adding FEATURE(`access_db')dnl to sendmail.mc and re-generating sendmail.cf.

shinepuppy 07-26-2007 09:12 PM

cool! thanks for the post :)


All times are GMT -5. The time now is 08:32 AM.