[exim] Error while using smarthost, unknown user.

Top Pagina
Delete this message
Reply to this message
Auteur: Machiel van Veen
Datum:  
Aan: exim-users
Onderwerp: [exim] Error while using smarthost, unknown user.
Hi list,

I am trying to setup Exim 4.x on Opensuse 10.3 to accept mail from local users
and allow them to send email to anyone trough a smarthost.

I tell Exim what local is and tell it to allow local users to send email:

domainlist local_domains = my.domain.local
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1

Then I tell it to send all email which is not send to the local domain to the
smarthost:

smarthost:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = "xxx.xxx.xxx.xxx"

But when I send a email Exim insists on local delivery...

2007-11-15 11:54:46 1IscMw-0003AU-B7 <= root@??? U=root P=local
S=550
2007-11-15 11:54:46 1IscMw-0003AU-B7 ** somedude@???: Unknown user
2007-11-15 11:54:46 1IscMw-0003AW-Jb <= <> R=1IscMw-0003AU-B7 U=mail P=local
S=1415
2007-11-15 11:54:47 1IscMw-0003AU-B7 Completed

Could anyone tell me which directive causes this behavior? I would
think "domains = ! +local_domains" should do the trick, but apprantly there
is more to it.

Many thanks for any help on this in advance, please see bellow for my full
configuration.

--
Best regards,

Machiel van Veen

---exim.conf---
domainlist local_domains = dodge.haarlem.dem.local
domainlist relay_to_domains =
hostlist   relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
accept  hosts = :
deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]
deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept  local_parts   = postmaster
          domains       = +local_domains
require verify        = sender
accept  hosts         = +relay_from_hosts
          control       = submission
accept  authenticated = *
          control       = submission
require message = relay not permitted
          domains = +local_domains : +relay_to_domains
accept
acl_check_data:
accept
begin routers
smarthost:
   driver = manualroute
   domains = ! +local_domains
   transport = remote_smtp
   route_list = "xxx.xxx.xxx.xxx"
system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup{$local_part}lsearch{/etc/aliases}}
  file_transport = address_file
  pipe_transport = address_pipe
userforward:
  driver = redirect
  check_local_user
  file = $home/.forward
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
localuser:
  driver = accept
  check_local_user
  transport = local_delivery
   cannot_route_message = Unknown user
begin transports
remote_smtp:
  driver = smtp
local_delivery:
  driver = appendfile
  file = /var/mail/$local_part
  delivery_date_add
  envelope_to_add
  return_path_add
address_pipe:
  driver = pipe
  return_output
address_file:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add
address_reply:
  driver = autoreply
begin retry
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators