Re: [Exim] sendmail -> exim

Top Page
Delete this message
Reply to this message
Author: Bart van Dommelen
Date:  
To: Cherubini Enrico, exim
Subject: Re: [Exim] sendmail -> exim
Hi,

The manual says at line 2730:

There has been some confusion about the way lsearch lookups work, in
particular in domain and host lists. An item in one of these lists may be a
plain file name, or a file name preceded by a search type, and these behave
differently. For a plain file name, for example

local_domains = /etc/local-mail-domains

each line of the file is treated as if it appeared as an item in the list, and
negated items, wild cards, and regular expressions may be present. However, if
an item is specified as an lsearch lookup, for example

local_domains = lsearch;/etc/local-mail-domains

then negated items, wild cards, and regular expressions may not be used,
because lsearch is an indexed lookup method which, when given a key (the
domain in the above example), yields a data value that corresponds to that
key. The fact that the file is searched linearly does not make this kind of
search any different from the other single-key lookup types, and an lsearch
file can always be directly converted into one of the other types without
change of function. Thus the keys in lsearched files are literal strings and
are not interpreted in any way.

And your second question can be found at line 10165:

local_parts

     Type:    string-list
     Default: unset


     If this option is set, the string is expanded, and is then interpreted as
     a colon-separated list. Because of the expansion, if any of the items
     contain backslash or dollar characters, they must be escaped with a
     backslash. This applies in particular to any query-style lookup that uses
     the $key variable, because otherwise it gets expanded too early. If the
     string is given in quotes, backslashes have to be escaped a second time.


     The driver is run only if the local part of the address matches the list,
     which is tested in the same way as a domain list and which may therefore
     include plain file names, file lookups, and negation. Because the string
     is expanded, it is possible to make it depend on the domain, for example:


       local_parts = dbm;/usr/local/specials/$domain


     If the match is achieved by a lookup, then the data that the lookup
     returned for the local part is placed in the variable $local_part_data for
     use in expansions of the driver's private options. You might use this
     option, for example, if you have a large number of local virtual domains,
     and you want to send all postmaster mail to the same place without having
     to set up an alias in each virtual domain:



       postmaster:
         local_parts = postmaster
         driver = smartuser
         new_address = postmaster@???



This is not exactly what you are looking for, but it will give you a hint
where to search for more information and how things work in Exim. I also
advise you to download all documentation (if not present) and read it
carefully.

Regards,

Bart van Dommelen.



At 1-6-2001 12:09, Cherubini Enrico wrote:
>Hi there,
>I have a milserver based on sendmail (the official one), but I switched to
>exim all others. Now I have to set up another official mailserver to handle
>some domain, so I would like to know if and how exim can do what I'm doing
>with sendmail:
>a) I habe a list of domain handled by sendmail in an external file called
>sendmail.cw (from sendmail.cf line Fw-o /etc/mail/sendmail.cw), is there a
>way to handle a similar external file without adding domain in exim.conf ?
>b) I have many users that have the same name, so I rewrite them basing on
>the domain, i.e. info@??? is written in info.d1 malbox,
>info@??? is written in info.d2 mailbox etc..all these rules are in
>another file called virtusertable. Is there a way to handle this in similar
>way ? (line Kvirtuser hash -o /etc/mail/virtusertable)
>
>All that because there are other tech that are not really able with linux so
>I don't want the keep their hands on exim.conf...
>
>--
>
>
>Bye
>                             +--------+ Maybe you are searching for freedom
>                             | Enrico |    Maybe you can't find it anywhere
>                             +--------+          I found it in linux.......

>
>``I think he has a Napoleonic concept of himself and his company, an 
>arrogance
>     that derives from power and unalloyed success, with no leavening hard
>  experience, no reverses,'' Judge Thomas Penfield Jackson says of Bill Gates.

>
>--
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
>details at http://www.exim.org/ ##