Hi ! I have one problem.
Exim 4.2
######################################################################
primary_hostname = gate.elesi.ru
domainlist local_domains = mysql;select domain from domains where domain =
'$domain'; : localhost
domainlist relay_to_domains = mysql;select domain from domains where domain
= '$domain'; : localhost
hostlist relay_from_hosts = 127.0.0.1
hide mysql_servers = localhost/mail/root/
message_size_limit = 10M
acl_smtp_rcpt = acl_check_rcpt
qualify_domain = elesi.ru
# never_users = root:daemon:bin
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 3d
######################################################################
# ACL CONFIGURATION #
# Specifies access control lists for incoming SMTP mail #
######################################################################
begin acl
acl_check_rcpt:
accept hosts = 192.168.0.1/24 : 127.0.0.1
deny local_parts = ^.*[@%!/|] : ^\\.
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
message = unknown user
verify = recipient
accept domains = +relay_to_domains
endpass
message = unrouteable address
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted
######################################################################
# ROUTERS CONFIGURATION #
# Specifies how addresses are handled #
######################################################################
# THE ORDER IN WHICH THE ROUTERS ARE DEFINED IS IMPORTANT! #
# An address is passed to each router in turn until it is accepted. #
######################################################################
begin routers
domain_literal:
driver = ipliteral
domains = ! +local_domains
transport = remote_smtp
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
#system_aliases:
# driver = redirect
# allow_fail
# allow_defer
# data = ${lookup{$local_part}lsearch{/etc/aliases}}
# user = exim
# file_transport = address_file
# pipe_transport = address_pipe
#userforward:
# driver = redirect
# check_local_user
# file = $home/.forward
# no_verify
# no_expn
# check_ancestor
# allow_filter
# file_transport = address_file
# pipe_transport = address_pipe
# reply_transport = address_reply
my_domains:
driver = accept
# domains = dsearch;/var/mail/
domains = mysql;select domain from domains where domain = '$domain'
local_parts = ${lookup mysql{select login from users where '$domain'
like domain}}
transport = my_mailboxes
localuser:
driver = accept
check_local_user
transport = local_delivery
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
group = mail
# mode = 0660
my_mailboxes:
driver = appendfile
file = /var/mail/$domain/$local_part
user = mailnull
delivery_date_add
envelope_to_add
return_path_add
group = mail
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
######################################################################
# RETRY CONFIGURATION #
######################################################################
begin retry
# This single retry rule applies to all domains and all errors. It specifies
# retries every 15 minutes for 2 hours, then increasing retry intervals,
# starting at 1 hour and increasing each time by a factor of 1.5, up to 16
# hours, then retries every 6 hours until 4 days have passed since the first
# failed delivery.
# Domain Error Retries
# ------ ----- -------
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
######################################################################
# REWRITE CONFIGURATION #
######################################################################
# There are no rewriting specifications in this default configuration file.
begin rewrite
######################################################################
# AUTHENTICATION CONFIGURATION #
######################################################################
# There are no authenticator specifications in this default configuration
file.
begin authenticators
######################################################################
# CONFIGURATION FOR local_scan() #
######################################################################
# If you have built Exim to include a local_scan() function that contains
# tables for private options, you can define those options here. Remember to
# uncomment the "begin" line. It is commented by default because it provokes
# an error with Exim binaries that are not built with LOCAL_SCAN_HAS_OPTIONS
# set in the Local/Makefile.
# begin local_scan
# End of Exim configuration file
Mysql datebase in table "domains":
elesi.ru
rastler.com.ru
if i send mail to mail@??? the Exim write to logs
2003-10-15 19:13:16 1A9nKu-0003Ss-8G <= mail@???
H=dbserver.elesi.ru (dbserver) [192.168.0.254] P=smtp S=1272
id=010101c3932e$baf47ef0$fe00a8c0@???
2003-10-15 19:13:16 1A9nKu-0003Ss-8G ** admin@???: Unrouteable address
2003-10-15 19:13:16 1A9nKu-0003Su-9I <= <> R=1A9nKu-0003Ss-8G U=mailnull
P=local S=2031
2003-10-15 19:13:16 1A9nKu-0003Ss-8G Completed
2003-10-15 19:13:16 1A9nKu-0003Su-9I => mail <mail@???>
R=my_domains T=my_mailboxes
2003-10-15 19:13:16 1A9nKu-0003Su-9I Completed