exim4 and virtual domains, easy?

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-02-2004
Reiner Griess
 
Posts: n/a
Default exim4 and virtual domains, easy?

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
Reply With Quote
  #2 (permalink)  
Old 07-05-2004
Johanna Stock
 
Posts: n/a
Default Re: exim4 and virtual domains, easy?

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
Reply With Quote
  #3 (permalink)  
Old 07-05-2004
Reiner Griess
 
Posts: n/a
Default Re: exim4 and virtual domains, easy?

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:48 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0