[exim] local domains

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: qrt admin
Dátum: 2005-03-04 17:08 -000
Címzett: exim-users
Tárgy: [exim] local domains
Hi all,

i have exim4 running with exiscan patch +SA. everything is fine exept:

if exim recieves an email originated to someone@???, and there is
no address someone@??? it tries to deliver it through the smarthost
router, however it should bounce it, with "no such user" error.

akarki@??? R=smarthost T=remote_smtp H=newgw.local.domain
[192.168.16.44] - local.domain is added into the mysql local domains table,
and the lookup works well.

if the local part is correct eg.: root@??? (exim finds the address
as local, and is able to deliver) it delivers the message. the
local_delivery transport lookup is working as well.

2005-03-04 18:05:21 1D7GEj-0005ir-4Z =>
/mailspool/vdomains/qrt.hu/users/admin/Maildir/ <admin@???>
R=virtual_user T=address_directory

this causes a mail-loop, smarthost routes mail by dns lookup (also exim) and
the lowest MX for local.domain points to the internal mail server.

conf:

domainlist local_domains = @ : ${lookup mysql {SELECT userid FROM domains \
    WHERE userid="${quote_mysql:${domain}}" }}


system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup mysql{ SELECT email FROM aliases \
          WHERE alias like '%${quote_mysql:${local_part}@${domain}}%' }}
  #domains = +local_domains
  file_transport = address_directory
  pipe_transport = address_pipe




virtual_user:
  driver = redirect
  allow_fail
  allow_defer
  domains = +local_domains
  data = ${lookup mysql{ SELECT maildir FROM users \
          WHERE id='${quote_mysql:${local_part}@${domain}}' }}
  directory_transport = address_directory



dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

smarthost:
driver = manualroute
transport = remote_smtp
route_list = "* newgw.local.domain"

userforward:
driver = redirect
check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
file = $home/.forward
# allow_filter
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
driver = accept
check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
transport = local_delivery
cannot_route_message = Unknown user

local_delivery:
driver = appendfile
group = mail
mode = 0777
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
directory = /mailspool/vdomains/quaestor.hu/users/${local_part}/Maildir/
maildir_format

address_directory:
driver = appendfile
maildir_format
delivery_date_add
envelope_to_add
return_path_add




Any help?

TIA,
Rgds,
Peter