OSEC

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

From: mouss (mlist.onlyfree.fr)
Date: Mon May 28 2007 - 05:01:53 CDT


Marian Boboc wrote:
> Hi list,
> I'd like to have postfix not reply to the sender while receiving mail
> destined to an unknown local user. I know it's not ethical but the spam's a
> killer.
>
> Any idea on how this can be done?
>
>
>
>

you mean not to bounce (send back an error message)? Bouncing is
unacceptable. you should either reject the mail during the smtp
transaction or keep it on your system (deliver, discard, ...).

by default, postfix rejects mail sent to unknown users. if that is not
the case on your system, then you broke recipient validation. if you
have wildcard aliases, replace them with "explicit" (not regex/pcre)
aliases. if you have virtual aliases like
/(.*)example.com/ $1example.org
then that's it. you can either use a script to generate per-user
aliases, or use sql or ldap to only return a result if the target
address is valid.

for more help, you must follow the welcome message instructions
(repeated here multiple times). see
    http://www.postfix.org/DEBUG_README.html#mail

in particular, you must send output of 'postconf -n' (this is not main.cf).