OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Blocking specific mailto: email addresses

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Thu Apr 24 2003 - 07:32:24 CDT


On Thu, Apr 24, 2003 at 07:28:09AM -0500, Michael J. Brytowski wrote:

> > Why do you accept mail to non-existing users?
> > Use local_recipient_maps

> I do not have any unix users, postfix was setup as a front-end email
> gateway (to protect MS Exchange) and direct email to our listserver.
> This is the system I inherited, which is why the .REDIRECT was their.
> Prior to that, the mail que was filling up with undeliverable email. My
> understanding of local_recipient_maps is for users on the unix system.
> I do not have the luxury of having a test server, so I proceed
> carefully. Thanks for the quick response.

You can use the "access" file to block mail sent to these people.

user1@yourdomain.example 554 This user does not exist
user2@yourdomain.example 554 This user does not exist

Of course you need to use this file, so in main.cf you need something like

smtpd_recipient_restrictions =
    permit_mynetworks,
    reject_unauth_destination,
    hash:/etc/postfix/access,
    ...

HTH,
Alex
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html