OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Tomasz Papszun (tomek-postfix_at_lodz.tpsa.pl)
Date: Mon Feb 03 2003 - 09:02:02 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Sat, 01 Feb 2003 at 17:27:42 +0100, Mi wrote:
    >
    > >* Mi <mi.listsalma.ch>:
    > >> Hi,
    > >>
    > >> I can't figure how to change my configuration to reject unknown users.
    > >...
    > >> luser_relay = postmaster$domain
    > >
    > >This contradits istself.
    >
    > Hm. True. I removed this.
    >
    > Now, indeed the mail gets rejected, with an "Undelivered" reply.
    >
    > I suppose it's not possible to have the virtual maps lookup be done
    > *before* accepting the full message, is it?
    > I mean rejecting it before the DATA command, like what I have with specific
    > addresses in
    >
    > smtpd_recipient_restrictions = [...],
    > check_recipient_access hash:/etc/postfix/recipient_access,
    > [...]

    This is the way it's done, in fact. Virtual maps lookup _is_ done before
    accepting a message. E.g.:

    mail from:<memydomain>
    250 Ok
    rcpt to:<nosuchuservirtualdomain>
    550 <nosuchuservirtualdomain>: User unknown

    -- 
     Tomasz Papszun   SysAdm  TP S.A. Lodz, Poland  | And it's only
     tomeklodz.tpsa.pl   http://www.lodz.tpsa.pl/   | ones and zeros.