[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim aliases using local-part only when set to use domain



Asher,

I provided you with directors for three types of new aliasing:

virtual-specific
virtual-default
global-default

I don't think you understand how to use these properly.

First of all, assuming the machine handles mail for warped-reality.com,
There should be no warped-reality.com usernames on the left side of any
alias in aliases.virtual or aliases.global.

warped-reality.com is the local native domain, I am assuming it is NOT a
virtual domain.

You use /etc/aliases to alias users in that domain.

Now lets pretend that some other users of your also have domain names that
you want to service on your box:

virtual1.com
virtual2.com
virtual3.com

You would put ONLY THESE DOMAINS in the domains.virtual file.
warped-reality.com should be in the local_domains configuration item like
so:

local_domains = warped-reality.com:lsearch;/etc/exim/domains.virtual

Now if your aliases.virtual contains:

virtual1.com:	    jason@warped-reality.com
billy@virtual1.com: billy@warped-reality.com
susie@virtual1.com: susie@warped-reality.com

virtual2.com:       sam@aol.com
sally@virtual1.com: sally@warped-reality.com

virtual3.com:       bob@worldnet.att.net

Any address in virtual1.com not listed here will go to jason on the local
machine. The users billy and susie in virtual1.com will go to billy and
susie on the local machine.

Any address not listed in virtual2.com goes to sam@aol.com. Sally's mail
goes to sally on the local machine.


A global.aliases file might look like:

support:	jason@warped-reality.com


THis means that email to the support user at ANY OF THE VIRTUAL DOMAINS
goes to jason on the local machine. In other words, support@virtual1.com,
support@virtual2.com, and support@virtual3.com will go to
jason@warped-reality.com

If you want to ALSO route mail for support@warped-reality.com, you will
need to make an entry in /etc/aliases like this:

support:	jason

In other words, global aliases are ONLY GLOBAL over VIRTUAL DOMAINS. They
do not affect the local domains.

New domain aliases in aliases.virtual DO NOT TAKE EFFECT until the domain
is listed in domains.virtual.

You asked for a fairly complex configuration, it looks like you are having
trouble dealing with it.

Send me a private email explaining what you are trying to do and I can
show you how to configure the virtual aliases files.





George Bonser

The Linux "We're never going out of business" sale at an FTP site near you!


Reply to: