Re: regexp for user@virtual.domain

Top Page
Delete this message
Reply to this message
Author: mark david mcCreary
Date:  
To: exim-users
CC: Rob Lingelbach
Subject: Re: regexp for user@virtual.domain
>I have a virtual domain set up via the virtual director:
>
>virtual:
> domains = aaton.com
> driver = aliasfile,
> no_more;
> file = /usr/lib/aliases.aaton
> search_type = lsearch
>
>I need to have any mail for aaton.com that *doesn't* match one of the
>aliases in /usr/lib/aliases.aaton delivered to a particular address,
>e.g. postmaster@???. I believe the smartuser director is for
>this, but I could use an example, could someone give me a hint? (and
>for precedence' sake, would I have the smartuser director just after
>the above virtual director, and move 'no_more' into the smartuser
>director?)
>



Here's my example.



# This director handles virtual domains - matching explicit user name.

virtual_specific:
driver = smartuser,
new_director = dual_aliases,
domains = "partial-lsearch;/etc/aliases.virtual";
new_address = ${lookup{$local_part@$domain}lsearch{/etc/aliases.virtual} {$value} fail};

virtual_default:
driver = smartuser,
new_director = dual_aliases,
domains = "partial-lsearch;/etc/aliases.virtual";
new_address = ${lookup{$domain}lsearch{/etc/aliases.virtual} {$value} fail};

# send one message to several addresses for virtual domain customers

dual_aliases:
driver = aliasfile;
file = /etc/aliases.dual,
search_type = lsearch,
user = exim



Where /etc/aliases.virtual looks like

aaa.com:    joe@???
bbb.com:    sam@???
sales@???:    larry@???
info@???:    sue@???
ccc.com:    alias-ccc.com@???




Where /etc/aliases.dual looks like

alias-ccc.com:    harry@???, greg@???




mark david mcCreary
Internet Tools, Inc.            1436 West Gray #438
mdm@???          Houston, Texas 77019
http://www.internet-tools.com    713.627.9600




--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/