OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: specifying unknown users
From: Marc Martinez (lastxit+postfix-userstechnogeeks.org)
Date: Thu Sep 14 2000 - 11:39:46 CDT


On Thu, Sep 14, 2000 at 12:22:12PM -0400, Yanek Korff wrote:
> Is this done in the transport.db? So for every user that does not exist I'd
> say
> usermydomain.com error:551
>
> Or would I have to put in my own error as in:
>
> usermycomdain.com error: User (can I use a variable here?) does not
> exist.
>
> I'd certainly prefer to specify invalid users than specify valid users.

The method I referred to is via the "access" maps, whatever you may name
them.. firstly, see 'man 5 access' for details on the format, and for
reference here's a couple lines I use to reject invalid usernames:

1hippie.com 551 Clueless luser. That fool ain't here.
123hippie.com 551 Clueless luser. That fool ain't here.

on a 'rcpt to:' command this generates an error response of the form:

rcpt to: <123hippie.com>
551 <123hippie.com>: Recipient address rejected: Clueless luser. That fool ain't here.

Marc