LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-06-2007, 07:43 AM   #1
shinepuppy
LQ Newbie
 
Registered: Sep 2002
Location: Lewisville, Texas
Distribution: Debian / [K]Ubuntu
Posts: 13

Rep: Reputation: 0
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
 
Old 06-07-2007, 06:20 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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.
 
Old 07-26-2007, 09:12 PM   #3
shinepuppy
LQ Newbie
 
Registered: Sep 2002
Location: Lewisville, Texas
Distribution: Debian / [K]Ubuntu
Posts: 13

Original Poster
Rep: Reputation: 0
cool! thanks for the post
 
  


Reply

Tags
custom, message, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: why is 'Return-Path' of bounce message empty Chowroc Linux - Networking 1 12-28-2005 03:52 AM
Bounce back email with a message? tauras911 Linux - Newbie 3 02-10-2005 03:44 PM
Copies of bounce messages in sendmail ejacobs Linux - Software 0 06-29-2004 03:53 PM
Custom welcome-message? herc Linux - Software 8 05-20-2004 02:13 AM
Sendmail Bounce Development echid Programming 0 11-18-2003 02:35 PM


All times are GMT -5. The time now is 07:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration