Вот мой конфиг, демон, вороде popa3d
Все файлы
/etc/virtual/domains
/etc/virtual/${domain}/aliases
/etc/virtual/${domain}/passwd
и директории /var/mail/virtual/${domain}
Но ничего не работает, точнее обращается exim по прежнему для авторизации к cram-md5.pwd и смотрит почту только в /var/mail
Что делать ???
###############################################
# Runtime configuration file for Exim #
###############################################
##################################################
# MAIN CONFIGURATION SETTINGS #
##################################################
log_file_path = /var/spool/exim/log/%slog
local_domains = "${primary_hostname}:\
lsearch;/etc/virtual/domains"
forbid_domain_literals
never_users = root
host_lookup = *
end
##################################################
# TRANSPORTS CONFIGURATION #
##################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
#####################################################
virtual_localdelivery:
driver = appendfile
create_directory = true
directory_mode = 700
file = /var/mail/virtual/${domain}/${local_part}
user = zmail
group = mailusers
mode = 660
local_delivery:
driver = appendfile
file = /var/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
group = mailusers
mode = 0660
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
driver = smtp
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
end
#################################################
# DIRECTORS CONFIGURATION #
# Specifies how local addresses are handled #
###################################################
# ORDER DOES MATTER #
# A local address is passed to each in turn until it is accepted. #
#####################################################
# virtual aliases
virtual_alias:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
domains = lsearch;/etc/virtual/domains
file = /etc/virtual/${domain}/aliases
search_type = lsearch*
user = zmail
qualify_preserve_domain
system_aliases:
domains = "! lsearch;/etc/virtual/domains : \ *"
driver = aliasfile
file = /etc/aliases
search_type = lsearch
# user = exim
file_transport = address_file
pipe_transport = address_pipe
userforward:
domains = "! lsearch;/etc/virtual/domains : \ *"
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
# filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
# matches virtual user mailboxes
virtual_localuser:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
transport = virtual_localdelivery
domains = lsearch;/etc/virtual/domains
file = /etc/virtual/$domain/passwd
search_type = lsearch
no_more
# This director matches local user mailboxes.
localuser:
domains = "! lsearch;/etc/virtual/domains : \ *"
driver = localuser
transport = local_delivery
end
################################################
# ROUTERS CONFIGURATION #
# Specifies how remote addresses are handled #
####################################################
# ORDER DOES MATTER #
# A remote address is passed to each in turn until it is accepted. #
#######################################################
# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.
lookuphost:
driver = lookuphost
transport = remote_smtp
end
###############################################
# RETRY CONFIGURATION #
###############################################
# Domain Error Retries
# ------ ----- -------
* * F,2h,15m; G,16h,1h,1.5; F,4d,8h
end
################################################
# REWRITE CONFIGURATION #
################################################
# There are no rewriting specifications in this default configuration file.
end
###################################################
# AUTHENTICATION CONFIGURATION #
###################################################
# There are no authenticator specifications in this default configuration file.
# End of Exim configuration file