[Exim] e-mail adresses from the local domain to the smtp ser…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Guido Krein
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] e-mail adresses from the local domain to the smtp server
Hello EXIM Users,

I'am quite new to MTA's and especially exim. I use Debian Linux 2.2 r6
with exim version 3.12
After a few days of searching a solution for my problem I hope that
somebody can help me.
The problem: I want to match all local domains in the form
local_domains = brabla.com
but want "exceptions", for instance I dont want harry@??? or
larry@??? to be treated as local, what is the best way to do
this?
For better maintenance I want to have a file where I can put in those
e-mail addresses that are not delivered local to /var/spool/mail/harry
or larry
these mails should be delivered to the standard remote smtp server
"smtp.iwantmails.com".
See my exim.conf attached.

Thank You for Your Help

Krein

e-mail: krein at vh-s.de
##################################
### my exim.conf without comments ######
##################################
primary_hostname = servername.local
qualify_domain = brabla.com
local_domains = brabla.com : localhost : servername.local
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_lookup = *
host_accept_relay = localhost : 192.168.0.0/24
trusted_users = mail
smtp_verify = false
gecos_pattern = ^([^,:]*)
gecos_name = $1
smtp_accept_queue_per_connection = 100
freeze_tell_mailmaster = true
received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number}
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"
local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  file = /var/spool/mail/${local_part}
address_pipe:
  driver = pipe
  return_output
address_file:
  driver = appendfile
address_directory:
  driver = appendfile
  no_from_hack
  prefix = ""
  suffix = ""
address_reply:
  driver = autoreply
remote_smtp:
  driver = smtp
real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery
system_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
userforward:
  driver = forwardfile
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  file = .forward
  modemask = 002
  filter
localuser:
  driver = localuser
  transport = local_delivery
smarthost:
  driver = domainlist
  transport = remote_smtp
  route_list = "* smtp.puretec.de bydns_a"
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h
*@brabla.com    ${lookup{$1}lsearch{/etc/email-addresses}\
      {$value}fail} bcfrF