virtual mail domains with 1 config file ?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: mark david mcCreary
Date:  
À: exim-users
Sujet: virtual mail domains with 1 config file ?
Exim People

I would like to run virtual mail domains, for multiple dommains, using 1 configuration file. Based on comments and clues posted to the list, I think it might be possible.

I would like the virtual domain file to be in this format

abc.com:        default_mail@???
sales@???:    sam@???
info@???:    joe@???


If the exact name is found, then forward with all headers to RHS. If not, and domain name is found, then forward to the address associated with that line.


My configuration file looks like

#                    MAIN CONFIGURATION SETTINGS                     #


local_domains = "partial-lsearch;/etc/valid.domains"

#                      TRANPORTS CONFIGURATION                       #


smtp:
driver = smtp;
end

#                      DIRECTORS CONFIGURATION                       #


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


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





/etc/valid.domains contains 1 line

gergye.com

/etc/aliases.virtual contains 2 lines

gergye.com:        melba@???
john@???:    test2@???





The log belows shows some progress is being made towards this.



Exim version 1.651 debug level set to 99
search_open (0) /etc/valid.domains
search_find: file="/etc/valid.domains" type=0 key="rapido" partial=2
internal_search_find: file="/etc/valid.domains" type=0 key="rapido"
.
.
.
search_find: file="/etc/valid.domains" type=0 key="gergye.com" partial=2
internal_search_find: file="/etc/valid.domains" type=0 key="gergye.com"
file lookup required for gergye.com in /etc/valid.domains
calling virtual_specific director
virtual_specific director called for info@???
search_open (0) /etc/aliases.virtual
search_find: file="/etc/aliases.virtual" type=0 key="info@???" partial=-1
internal_search_find: file="/etc/aliases.virtual" type=0 key="info@???"
file lookup required for info@??? in /etc/aliases.virtual
expansion of ${lookup{$local_part@$domain}lsearch{/etc/aliases.virtual} {$value} fail} in virtual_specific director failed: lookup failed and "fail" requested: 
virtual_specific director failed for info
search_open found (0) /etc/valid.domains cached
search_find: file="/etc/valid.domains" type=0 key="gergye.com" partial=2
internal_search_find: file="/etc/valid.domains" type=0 key="gergye.com"
file lookup required for gergye.com in /etc/valid.domains
virtual_default director has more set FALSE
calling virtual_default director
virtual_default director called for info@???
search_open found (0) /etc/aliases.virtual cached
search_find: file="/etc/aliases.virtual" type=0 key="gergye.com" partial=-1
internal_search_find: file="/etc/aliases.virtual" type=0 key="gergye.com"
file lookup required for gergye.com in /etc/aliases.virtual
  queued for smtp transport with local_part: melba
virtual_default director succeeded for melba
  transport: smtp
After directing:
  Local addresses:
  Remote addresses:
    info@???
  Failed addresses:
  Addresses to be routed:
  Deferred addresses:
search_tidyup called

>>> Local deliveries >>>

search_tidyup called
>>> Remote deliveries >>>

smtp transport entered
LOG: 0 PANIC
smtp transport called with no hosts set
set_process_info: 800 1.651 running queue
LOG: 0 MAIN
End queue run: pid=800



I could use some clues about

     smtp transport called with no hosts set


Do I need to have a router in there somewhere. It appears to find the correct mapping, and then dies.

Thanks for any answers.

mark


mark david mcCreary
Internet Tools, Inc.            4615 Post Oak Place, Suite 140
mdm@???          Houston, Texas 77027
http://www.internet-tools.com    713.627.9600