Mario Wolff
2006-Nov-10 06:06 UTC
[Pkg-exim4-users] Redirect-router, working but not clean!?!
Dear list, i got my problem solved, but i think it''s not clean and not in a way it should be solved. Hope someone can hint me something! What i want: I have two domains, let''s say foo.org and bar.org. For bar.org there is a MX-Record that points to a groupware-server witch handles ONE domain. Foo.org is handled by my exim4. Both domains should be handled in the same way, same name with diferen tld''s. What i have done: Placed foo.bar in dc_relay_domains, put> *@* ${lookup{${domain}}lsearch{/etc/exim4/dom-shadow}{${local_part}@${value}}fail} tTto rewrite section of exim4.conf.template and> foo.org: bar.orgto /etc/exim4/dom-shadow. With this settings my exim works like i want. But is that clean? Ist there a more straigt-forward-way? Thanks for hints! Regards, Mario PS: I have: # cat /etc/debian_version 3.1 # exim4 -bV Exim version 4.50 #1 built 11-Apr-2006 12:32:28 Copyright (c) University of Cambridge 2004 Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003) Support for: iconv() IPv6 PAM Perl GnuTLS Content_Scanning Old_Demime Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql Authenticators: cram_md5 cyrus_sasl plaintext spa Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp Fixed never_users: 0 Configuration file is /var/lib/exim4/config.autogenerated
Marc Haber
2006-Dec-08 17:37 UTC
[Pkg-exim4-users] Redirect-router, working but not clean!?!
On Thu, Nov 09, 2006 at 03:07:26PM +0100, Mario Wolff wrote:> What i want: > I have two domains, let''s say foo.org and bar.org. For bar.org there > is a MX-Record that points to a groupware-server witch handles ONE > domain. Foo.org is handled by my exim4. Both domains should be handled > in the same way, same name with diferen tld''s. > > What i have done: > Placed foo.bar in dc_relay_domains, put > >*@* > >${lookup{${domain}}lsearch{/etc/exim4/dom-shadow}{${local_part}@${value}}fail} tT > to rewrite section of exim4.conf.template and > >foo.org: bar.org > to /etc/exim4/dom-shadow. With this settings my exim works like i > want. But is that clean? Ist there a more straigt-forward-way?In my opinion, it is as clean as it is possible in a setup as sick as this. Maybe a simple redirect router (redirecting mail for the one domain to the other domain while retaining the local part) would be enough as a MTA is supposed to look only at the envelope and not at the headers. I didn''t bother to think more about it since your intentions are not worded very clear and you made understanding your wishes even harder by (a) obfuscating (see http://www.exim.org/eximwiki/MailingListEtiquette#head-a6f7fb5ce8816568569a321f783315207ec38063( and (b) mixing up your obfuscation later (foo.bar is not defined anywhere, you defined foo.org and bar.org, abusing other people''s domains in an attempt to solve your spam problem) 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