Re: [Exim] Setting up an alias file for multiple domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeff Green
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Setting up an alias file for multiple domains
At 02:51 PM 4/17/01 , you wrote:
>I want to be able to have a list of e-mail alias', so that
>user@??? 's e-mail will be forwarded to user@???, much
>like /etc/aliases, but allowing remote address'.


>I'd also like to have 2 separate files - 1 for each domain. The idea is
>that I'd be able to write a PHP or Perl script to modify this file to add
>or remove entries.


Don't recall where I saw this, but I do this now using Exim 3.22 on a
potato box (minus the perl) by creating the following directories in /etc:

/etc/aliases (directory)
/etc/aliases/domain1.com (directory)
/etc/aliases/domain2.com (directory)

each domain#.com directory contains an aliases file

Then in exim, configure as follows:

local_domains = localhost:domain1.com:domain2.com

I routinely point the users for domain2 to external addresses right in the
alias file.

I'll admit, dpkg doesn't appreciate this very much, as post-installation
scripts sometimes error out when they try to update the aliases file and
find a directory. I'd like a cleaner method, but otherwise this works quite
well. No other needed changes to configuration come to mind.

Regards,

- Jeff -


Jeffrey B. Green        Personal Computer Consultant - Las Vegas, Nevada
http://jbgreen.com        Networking Las Vegas Since 1986