Re: [Exim] Mixed Case E-Mail Adresses??

Startseite
Nachricht löschen
Nachricht beantworten
Autor: George R Kasica
Datum:  
To: Tabor J. Wells
CC: exim-users
Betreff: Re: [Exim] Mixed Case E-Mail Adresses??
On Tue, 4 Dec 2001 17:19:52 -0500, you wrote:

>On Tue, Dec 04, 2001 at 04:05:22PM -0600,
>George R. Kasica <georgek@???> is thought to have said:
>
>> You're exactly correct. Where would I place the
>>
>> locally_caseless=false
>>
>> setting in my exim.conf file as its not too clear on where it should
>> go....
>
>In whatever director(s) you use to handle your valid user lookups.
>
>Tabor

Tabor:

Not having written directors, I'm including that par of my config file
and the comments from spec.txt and hoping you could help me out here
with the modifications so I don't break the system for the 70+ paying
users on it....

>locally_caseless                Type: boolean                   Default: true

>
>    Domains in mail addresses are specified as being case-independent, but
>    this it not true of local parts. For most Unix systems, however, it is
>    desirable that local parts of local mail addresses be treated in a case-
>    independent manner, since most users expect that mail to "OBailey" and
>    "obailey", for example, will end up in the same mailbox. By default, when
>    it is processing an address whose domain is local, Exim lower-cases the
>    local part at the start of processing, on the assumption that account
>    names in the password file are in lower-case.

>
>    For installations that want to draw case distinctions, this option is
>    provided. When turned off, local local parts are handled verbatim during
>    delivery. If there are names containing upper case letters in the password
>    file, the most convenient way to provide for caseless mail delivery is to
>    set up a "smartuser" director as the first director, and to make it do a
>    lowercased lookup of the local part, in order to translate it to the
>    correctly cased version, using the "new_address" option.


>If you must have mixed-case user names in your password file, the best way to
>proceed, assuming you want case-independent handling of incoming email, is to
>unset "locally_caseless" and then set up an initial "smartuser" director to
>convert incoming local parts to the correct case by a file lookup such as
>
>  new_address = ${lookup{${lc:$local_part}}cdb\
>                {/etc/usercased.cdb}{$value}fail}\
>                @$domain



######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################


# Local addresses are those with a domain that matches some item in
the
# "local_domains" setting above, or those which are passed back from
the
# routers because of a "self=local" setting (not used in this
configuration).

# This director handles aliasing using a traditional /etc/aliases
file.
# If any of your aliases expand to pipes or files, you will need to
set
# up a user and a group for these deliveries to run under. You can do
# this by uncommenting the "user" option below (changing the user name
# as appropriate) and adding a "group" option if necessary.
Alternatively, you
# can specify "user" on the transports that are used. Note that those
# listed below are the same as are used for .forward files; you might
want
# to set up different ones for pipe and file deliveries from aliases.

virtual_aliases:
driver = aliasfile
file = /usr/local/exim/etc/virtual-aliases.db
search_type = dbm*@
include_domain = true
file_transport = address_file
pipe_transport = address_pipe

system_aliases:
driver = aliasfile
file = /usr/local/exim/etc/aliases.db
search_type = dbm
# user = exim
file_transport = address_file
pipe_transport = address_pipe

#
# Majordomo public aliases
#

majordomo_aliases:
driver = aliasfile
file = /usr/local/exim/etc/majordomo-aliases.db
search_type = dbm
user = majordom
group = majordom
file_transport = address_file
pipe_transport = address_pipe

#
# Majordomo private aliases
#

majordomo_private_aliases:
  driver = aliasfile
  file = /usr/local/exim/etc/majordomo-private-aliases.db
  search_type = dbm
  user = majordom
  group = mail
  file_transport = address_file
  pipe_transport = address_pipe
  condition = "${if eq {$received_protocol}{local} \
               {${if eq {$sender_ident}{majordom} \
               {true}{false}}}{false}}"


# This director handles forwarding using traditional .forward files.
# If you want it also to allow mail filtering when a forward file
# starts with the string "# Exim filter", uncomment the "filter"
option.

# The no_verify setting means that this director will be skipped when
# verifying addresses if sender_verify or receiver_verify is set
(though
# they are not set by default). Similarly, no_expn means that this
director
# will be skipped if smtp_expn_hosts is set to allow any hosts to use
the
# EXPN command.

# The check_ancestor option means that if the forward file generates
# an
# address that is an ancestor of the current one, the current one gets
# passed on instead. This covers the case where A is aliased to B and
# B
# has a .forward file pointing to A.

# The three transports specified at the end are those that are used
# when
# forwarding generates a direct delivery to a file, or to a pipe, or
# sets
# up an auto-reply, respectively.

userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
# filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

# This director handles local delivery for systems with procmail
installed.

procmail:
driver = localuser
require_files = /usr/bin/procmail
transport = procmail

# This director matches local user mailboxes.

localuser:
driver = localuser
transport = local_delivery


end


George


===[George R. Kasica]===        +1 262 677 0766
President                       +1 206 374 6482 FAX 
Netwrx Consulting Inc.          Jackson, WI USA 
http://www.netwrx1.com
georgek@???
ICQ #12862186