[exim] local_user section with check_local_user removed (as …

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Luke Kenneth Casson Leighton
Data:  
Para: exim-users
Assunto: [exim] local_user section with check_local_user removed (as advised by most cyrus HOWTOs) causes problems
heya folks,

many things that i should say before describing the issue i've
discovered: not least is that i am not subscribed to this list so
please cc me on any correspondance (without worrying about me getting it
twice cos i won't ha ha)

secondly is that whilst this deals with the configuration that is
supplied by debian, what i don't wanna hear is replies along the lines
of 'well that's a debian config, so get lost and go talk to the debian
people who created that config'. the reason is because i do not believe
this to be _specific_ to the debian config setup, but to be with the
local_user section _itself_.

additionally, i'd like people here to dream up a solution, which i can
_then_ go to the debian maintainers and say 'oh lookee here, there's
a bug report, and a solution, and the solution wasn't created by me,
so damn well go fix it' (or something a bit more polite but with the
same general intent, anyway).

now, the really really _really_ bad thing is that this is a default
exim4 config issue (for the past three years) and the removal of
check_local_user is advice listed in the cyrus21 and cyrus22 Debian
Exim HOWTOs. so it's kinda important that it gets fixed.


the issue is caused by removing check_local_user from this:

    ### router/900_exim4-config_local_user
    #################################


    # This router matches local user mailboxes. If the router fails,
    # the error message is "Unknown user".


    local_user:
      debug_print = "R: local_user for $local_part@$domain"
      driver = accept
      domains = +local_domains
      #check_local_user
      local_parts = ! root
      transport = LOCAL_DELIVERY
      cannot_route_message = Unknown user



this can easily be demonstrated by a telnet to port 25:

    Trying 127.0.0.1...
    Connected to lkcl.net.
    Escape character is '^]'.
    220 lkcl.net ESMTP Exim 4.63 Thu, 01 Feb 2007 01:39:26 +0000
    HELO localhost
    250 lkcl.net Hello localhost [127.0.0.1]
    MAIL FROM:<>
    250 OK
    RCPT TO:fakeemailaddress@???
    250 Accepted
    ATA
    354 Enter message, ending with "." on a line by itself
    Subject: fake test


    fake email!
    .
    250 OK id=1HCQvZ-0006BQ-DD
              ^^^^^^^^^^^^^^^^ uh-oh....


let's take a look in the logs:

2007-02-01 01:40:01 1HCQvZ-0006BQ-DD SA: Action: Not running SA because SAEximRunCond expanded to false (Message-Id: 1HCQvZ-0006BQ-DD). From <> (host=localhost [127.0.0.1]) for fakeemailaddress@???
2007-02-01 01:40:01 1HCQvZ-0006BQ-DD <= <> H=localhost [127.0.0.1] P=smtp S=393
2007-02-01 01:40:01 1HCQvZ-0006BQ-DD ** fakeemailaddress@??? R=local_user T=cyrus_delivery: LMTP error after RCPT TO:<fakeemailaddress@???>: 550-Mailbox unknown. Either there is no mailbox associated with this\n550-name or you do not have authorization to see it.\n550 5.1.1 User unknown
2007-02-01 01:40:01 1HCQvh-0006BV-9v SA: Debug: SAEximRunCond expand returned: '0'
2007-02-01 01:40:01 1HCQvh-0006BV-9v SA: Action: Not running SA because SAEximRunCond expanded to false (Message-Id: 1HCQvh-0006BV-9v). From <> (local) for postmaster@???
2007-02-01 01:40:01 1HCQvh-0006BV-9v <= <> R=1HCQvZ-0006BQ-DD U=Debian-exim P=local S=852
2007-02-01 01:40:01 1HCQvZ-0006BQ-DD Frozen (delivery error message)
2007-02-01 01:40:01 1HCQvh-0006BV-9v => lkcl <postmaster@???> R=local_user T=cyrus_delivery
2007-02-01 01:40:01 1HCQvh-0006BV-9v Completed


whoopsie :) yep - the message passed


now, i've tried a _lot_ of different things today, none of which make
any sense to me and it's exactly the sort of thing that someone with
experience will go 'ah _ha_ you fix it like _this_' in about two
seconds.

so - could someone please investigate this one or notify the people who
would be interested in investigating it?

many thanks,

l.



--
--
lkcl.net - mad free software computer person, visionary and poet.
--