This is a discussion on exim4 and virtual domains, easy? within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Hi there, simple thing: - two domains: foo.org, bar.org - I want to have seperate alias files for each domain ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi there,
simple thing: - two domains: foo.org, bar.org - I want to have seperate alias files for each domain I put the following into 400_exim4-config_system_aliases.rul virtual: driver = redirect domains = dsearch;/etc/mail/virtual data = {lookup{$local_part}lsearch{/etc/mail/virtual/$domain}} There is a direcory /etc/mail/virtual. In this directory is a copy of /etc/aliases with the name 'foo.org' and another one 'bar.org'(just for testing). Now, whem I try to send Mail I receive an error "user unknown" and in the log file "unroutable address". Without this modifications everythings works fine, except the virtual domains of course :) How can I archive this? It should not be that complicated, should it? Any help would be niiiiice. reiner |
|
|||
|
Reiner Griess schrieb:
> Hi there, > Hi Reiner, > simple thing: > > - two domains: foo.org, bar.org > - I want to have seperate alias files for each domain > > I put the following into 400_exim4-config_system_aliases.rul > > virtual: > driver = redirect > domains = dsearch;/etc/mail/virtual > data = > {lookup{$local_part}lsearch{/etc/mail/virtual/$domain}} > Sorry, in my opinion this is not for verify! And you have to verify that the local_part is valid for the domain! I've made it with a condition; I have a passwd for every domain. And I test this in router localuser. All other routers I set no_verify. > There is a direcory /etc/mail/virtual. In this directory is a copy of > /etc/aliases with the name 'foo.org' and another one 'bar.org'(just for > testing). > > Now, whem I try to send Mail I receive an error "user unknown" and in > the log file "unroutable address". > what says debugging? Perhaps it happens after getting RCPT TO: <anyadress@anydomain.com> address? Then it happens in ACL! Try debugging, you can see it! > Without this modifications everythings works fine, except the virtual > domains of course :) > > > How can I archive this? It should not be that complicated, should it? > > Any help would be niiiiice. > > reiner Greetings, -> Johanna |
|
|||
|
Hi Johanna,
Johanna Stock wrote: > Reiner Griess schrieb: > >>Hi there, >> > > Hi Reiner, > >>simple thing: >> >>- two domains: foo.org, bar.org >>- I want to have seperate alias files for each domain >> >>I put the following into 400_exim4-config_system_aliases.rul >> >>virtual: >> driver = redirect >> domains = dsearch;/etc/mail/virtual >> data = >> {lookup{$local_part}lsearch{/etc/mail/virtual/$domain}} >> > > Sorry, in my opinion this is not for verify! > > And you have to verify that the local_part is valid for the domain! thank you for your reply. It worked this way: aliases_with_domain: driver = redirect data = ${lookup{$local_part@$domain}lsearch{/etc/exim4/aliases_with_domains}} Now I'm able to put name@domain.com in /etc/exim4/aliases_with_domains and it gets delivered correctly. Greets reiner |
![]() |
| Thread Tools | |
| Display Modes | |
|
|