[Pkg-exim4-users] exim4 split configuration with Debian Sarge 3.1

Jonathan Opperman jonoinsa at gmail.com
Thu Aug 25 08:14:20 UTC 2005


Hi List,

I am new to exim4, be gentle please :).

Was wondering if someone around here can help with this one.....

We have a mail server on the internet for domain example.com and mail  
is working
fine, the problem is that we are sitting at our office sending mail to  
each other, the mail
goes all the way out to the external mail server, and we have to all  
fetch it through the
internet to our MUA's, wasting bandwidth.

I have installed exim4 at our office on a Debian Sarge 3.1 box and I  
want it to be able to
do the following:

1.) External mail server has several accounts @example.com, some of  
them at the office
and some not, i want local users at the office to be able to send mail  
to this local server
(at the same domain) and be delivered to their mailboxes for this  
domain (Which works if
I edit /etc/exim4/update-exim4.conf.conf and add the domain in  
dc_other_hostnames='example.com'

The problem comes in when users at the office wants to send mail to  
this domain to a user
that is not on the local server but this user is on the external server  
and exim rejects it with
"Unrouteable address", which is correct.

2.) What rule do I put in place for local users that send mail to each  
other on the local server
to go to their maildir_home accounts and if they send mail to an  
external user that the local
server routes this mail to the listed MX for example.com and not try  
and deliver it "locally"

I've looked around and can not find any userfull information on google  
or in the faq's. Tried
that alias route, etc. but I can not get this working the way I think I  
want it to work.

Desired effect:

For unknown "local" account on the server it must route the mail like  
this:

exim4 -bt staff at example.com
R: dnslookup_relay_to_domains for staff at example.com
staff at example.com
   router = dnslookup_relay_to_domains, transport = remote_smtp
   host mail.example.com [x.x.x.x] MX=xxx

For known local account at the same domain exim must deliver the mail  
locally:

exim4 -bt jonathan at example.com
R: system_aliases for jonathan at localhost
R: userforward for jonathan at localhost
R: procmail for jonathan at localhost
R: maildrop for jonathan at localhost
jonathan at localhost
router = spamcheck_router, transport = spamcheck

************************************************************************ 
********

Current effect:

exim4 -bt staff at example.com
R: dnslookup_relay_to_domains for staff at example.com
staff at example.com
   router = dnslookup_relay_to_domains, transport = remote_smtp
   host mail.example.com [x.x.x.x] MX=xxx

exim4 -bt jonathan at example.com
R: dnslookup_relay_to_domains for jonathan at example.com
jonathan at example.com
   router = dnslookup_relay_to_domains, transport = remote_smtp
   host mail.example.com [x.x.x.x] MX=xxx

exim4 -bt jonathan at localhost
R: system_aliases for jonathan at localhost
R: userforward for jonathan at localhost
R: procmail for jonathan at localhost
R: maildrop for jonathan at localhost
jonathan at localhost
router = spamcheck_router, transport = spamcheck

Maybe it's because I do not know what exactly to look for?

Installed:

ii  exim4                                    4.50-8
ii  exim4-base                         4.50-8
ii  exim4-config                       4.50-8
ii  exim4-daemon-heavy       4.50-8
ii  exim4-doc-html                  4.50-1

Any help will be appreciated, any additional information?

Thank you.

Regards,

Jono
   .''`.     Linux registered user #384330
  : :'  :     http://counter.li.org
  `. `'`    
    `-  



More information about the Pkg-exim4-users mailing list