Re: Rejecting mail
Mark Keisler <[email protected]> Fri, 8 Apr 2011 23:14:48 -0500
| Newsgroups | gmane.org.user-groups.luni.tech |
|---|---|
| Message-ID | <[email protected]> |
Hi Frank :) You should be able to just add this line to /etc/postfix/main.cf : smtpd_client_restrictions = reject That should reject everything with a 554 rejection like so: 554 5.7.1 <hostname[host ip]>: Client host rejected: Access denied You can even create custom bounce message. Check out the bounce man page. -- Mark Keisler On Fri, Apr 8, 2011 at 10:17 PM, Frank Pittel <[email protected]> wrote: > A client I support may be effected if the fed shuts down this weekend. I > don't want to get into the politics of the matter but if it does shutdown I > need to set their in coming mail relay so that it rejects incoming mail > with > a bounce rather then just shutting it down and letting the mail spool on > the > sending server. I know how to do this with sendmail but alas the relay is > running postfix. > > The bottom line is I want this mail relay to reject all mail both inbound > or > outbound with an error code so the mail doesn't spool. Does anyone know how > I > would go about this or know of a link with the information on how to do it? > > Frank > -- > Linux Users Of Northern Illinois (Chicago) - Technical Discussion > http://luni.org/mailman/listinfo/luni > -- Linux Users Of Northern Illinois (Chicago) - Technical Discussion http://luni.org/mailman/listinfo/luni