Hi Graeme,

Thanks for your reply!

Debug run will follow, and here are the routers:



dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more

amavis:
        driver = manualroute
        condition = "${if or {{eq {$interface_port}{10025}} \
                         {eq {$received_protocol}{spam-scanned}} \
                         {eq {$sender_address}{}} \
                         }{0}{1}}"
        transport = amavis
        route_list = "* localhost byname"
        self = send

virtual:
  driver = redirect
  domains = dsearch;/etc/mail/virtual
  data = ${lookup{$local_part}lsearch*{/etc/mail/virtual/$domain}}
  no_more

system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup{$local_part}lsearch{/etc/aliases}}
  file_transport = address_file
  pipe_transport = address_pipe

userforward:
  driver = redirect
  check_local_user
  file = $home/.forward
  allow_filter
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply

procmail:
  driver = accept
  check_local_user
  require_files = ${local_part}:+${home}/.procmailrc:/usr/bin/procmail
  transport = procmail
  no_verify

localuser:
  driver = accept
  check_local_user
  transport = local_delivery
  cannot_route_message = Unknown user
       

On 2008-02-16 12:27, Graeme Fowler wrote:
 > Hi Zlatko
 >
 > On Fri, 2008-02-15 at 16:27 +0200, Zlatko Mesaros wrote:
 > > I am trying to figure out the way to reject the users during the SMTP
 > > dialog rather then send bounce messages.
 > > Actually - I would like to reply with '550 User does not exist' if the
 > > RCPT yields no valid user.
 >
 > You're almost there. You already have the relevant "require verify =
 > recipient" clause in your config, so if your test runs show the
 > recipients as being accepted then there's something in your routers
 > which is accepting them - a verify run sends the recipient address
 > through the routers, in order, to make sure it would be accepted.
 >
 > I have a sneaking suspicion that your Amavis config is probably at fault
 > - can you post your routers for us to make sure what's happening? I'd
 > pitch at there being no conditions on it, or conditions which only check
 > domains.
 >
 > Also, if you can do a debug run again but this time include the SMTP
 > "chat" (as you put it) within the debug run, it'll show you where and
 > why your invalid recipients get accepted.
 >
 > Graeme
 >
 >
 >

-- 


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to