Exim 4 Virtual Domains and Catchall on Debian (Squeeze)

Posted by parazuce on Server Fault See other posts from Server Fault or by parazuce
Published on 2011-02-14T05:30:44Z Indexed on 2011/02/14 7:27 UTC
Read the original article Hit count: 538

Filed under:
|
|
|

Hello, I've been at it for about 4 hours now. Searching as well as trying different tutorials. Here's my setup:

I have 2 domains, both under my own DNS server (MX records setup as well). I have exim4 successfully running, and it is able to send messages from both of those domains. I have tested this using sendmail, and manually setting the "From" attribute.

Exim successfully delivers mail to users no matter which domain was specified. I'm fine with that, but I'm having an issue editing virtual domains, and adding custom delivery options (such as a catch all).

I've been searching for about 4 hours, and I can't find any up-to-date documentation on how to do this. The old methods would be to add a line such as:

domainlist local_domains = @:localhost:dsearch;/etc/exim4/virtual

Once that line was added, I made a directory at /etc/exim4/virtual, then created files inside such as example.com which would then contain rules for delivery under that domain. This did not work, however.

Searching further, I've found that exim no longer supports dsearch (I guess because they claim it never has?) This is where I'm stuck. I'm on a "split" configuration as well.

© Server Fault or respective owner

Related posts about debian

Related posts about virtualhosts