[exim] Oh boy, am I in trouble ...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: exim
Fecha:  
A: exim-users@exim.org
Asunto: [exim] Oh boy, am I in trouble ...
Yikes!

Ok, I removed Exim 3 from my debian system and replaced it with Exim
4. So far so good. Unlike Exim 3, which had a single configuration
file called exim.conf, Exim 4 appears to distribute configuration
information over several directories / files (I chose the "Do NOT
distribute configuratin over multiple files option"!)?

If so, then I'm lost, seeing as the official documentation states:
Exim uses a single run time configuration file that is read whenever
an Exim binary is executed

So, I need some help with rewriting rules and routing.

I need to add rewrite information. The relevant files appear to be
located in /etc/exim4/conf.d/rewrite/
There are two files there. One is called "31_exim4-config_rewriting".
The other is called "00_exim4-config_header"

Can someone please tell me which file I need to modify, and what I
need to write into that file for either of the following two scenarios:
Scnario 1. I want all outgoing email to appear as having been sent
from domain_official.com, even though the host is
domain_some_other_name.com.

Scenario 2. I want specific users to be mapped to some other domain,
i.e. local user "info"'s email should not appear as being sent from
deomain_official.com, but rather from domain_alternate.com. All three
domains - domain_official.com, domain_some_other_name.com,
domain_alternate.com - are local domains, with
qualify_domain=domain_some_other_name.com

Any help with these two questions would be much appreciated.

2. The file called "31_exim4-config_rewriting" contains the following
instructions:
>>>>>>>>>>>

# The same as above, using outdated /etc/exim4/email-addresses, please
# move its contents to /etc/email-addresses and delete
# /etc/exim4/email-addresses
*@+local_domains "${if exists {CONFDIR/email-addresses}\

{${lookup{${local_part}}lsearch{CONFDIR/email-addresses}\
                    {$value}fail}}fail}" Ffrs
<<<<<<<


Does anyone understand what this means? I.e. is the use of an
email-addresses file outdated, or is the use of the exim4 directory as
the location for the email-addresses file outdated? Since the code
appears to be accessing CONFDIR/email-addresses, wouldn't CONFDIR
evaluate to exim4, instead of exim? Thus, wouldn't
exim4/email-addresses be the correct location for the addresses file?
Why would CONFDIR instead evaluate to exim, when the exim 4
installation appears to have written all configuration files to the
exim4 directory?

Any instructions, pointers to documentation, etc. regarding question 1
would be much appreciated.

TIA,
Joseph

-------------------------------------------------
Mail sent from: 24.126.78.239