Jonathan Opperman
2005-Aug-25 08:15 UTC
[Pkg-exim4-users] exim4 split configuration with Debian Sarge 3.1
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@example.com R: dnslookup_relay_to_domains for staff@example.com staff@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@example.com R: system_aliases for jonathan@localhost R: userforward for jonathan@localhost R: procmail for jonathan@localhost R: maildrop for jonathan@localhost jonathan@localhost router = spamcheck_router, transport = spamcheck ************************************************************************ ******** Current effect: exim4 -bt staff@example.com R: dnslookup_relay_to_domains for staff@example.com staff@example.com router = dnslookup_relay_to_domains, transport = remote_smtp host mail.example.com [x.x.x.x] MX=xxx exim4 -bt jonathan@example.com R: dnslookup_relay_to_domains for jonathan@example.com jonathan@example.com router = dnslookup_relay_to_domains, transport = remote_smtp host mail.example.com [x.x.x.x] MX=xxx exim4 -bt jonathan@localhost R: system_aliases for jonathan@localhost R: userforward for jonathan@localhost R: procmail for jonathan@localhost R: maildrop for jonathan@localhost jonathan@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 `. `''` ? ? ? `- ?
Marc Haber
2005-Oct-01 18:31 UTC
[Pkg-exim4-users] exim4 split configuration with Debian Sarge 3.1
[A little confused question snipped] So you want to distribute the mailboxes for one and the same domain over two servers? I have done this once, and it''s a bloody pain. One word: don''t. A better idea would be to have office.example.com and internet.example.com mail domains, each one on one of the mail servers. Incoming mail would be forwarded to the appropriate domain with a table lookup, outgoing mail be rewritten to example.com to fake consistency to the outside. Looks ugly, but is far easier to manage. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835