Re: [Exim] rewrite recipient domain to FQDN ???

Góra strony
Delete this message
Reply to this message
Autor: Michael D. Schleif
Data:  
Dla: exim mailing list
CC: Fernando Sanchez
Temat: Re: [Exim] rewrite recipient domain to FQDN ???
Fernando, et al. =>

Also sprach Fernando Sanchez (Mon 14 Jul 02003 at 11:55:27AM -0500):
> Michael D. Schleif wrote:
> >Also sprach Fernando Sanchez (Mon 14 Jul 02003 at 11:24:16AM -0500):
> >
> >>Michael D. Schleif wrote:
> >>
> >>>--
> >>>I have struggled with this for sometime, and I admit that I am stuck ;>
> >>>
> >>>I am running debian:
> >>>
> >>> # sudo exim -bV
> >>> Exim version 3.36 #1 built 12-Mar-2003 20:59:47
> >>> Copyright (c) University of Cambridge 2002
> >>>
> >>>If I am on loki and want to send mail to myself on bragi, both systems
> >>>on my LAN, it works as expected if I use mds@???; but,
> >>>fails when I send to mds@bragi.
> >>>
> >>>DNS is setup properly:
> >>>
> >>> # host bragi
> >>> bragi.private.network   A       192.168.123.150

> >>>
> >>>How can I expand short system names into FQDN?
> >>
> >>What kind of error are you getting if any?
> >
> >Actually, it is not so much an error as it behaves other than as I
> >desire ;>
> >
> >What happens is, instead of delivering to bragi, it passes the mail off
> >to my mail gateway (trout), which does not know what to do with the
> >domain bragi, and bounces the mail back to me ;<
>
> what do u have in your primary_hostname, localdomains, and all such
> items in your configuration? I would think the problem is somewhere
> there, if exim does not consider bragi as a local domain or it's own
> name, then it sends out to your GW.


Initially, debian ran me through eximconfig immediately after
installation; but, primary_hostname is *not* set on any of my hosts ;<

Following is from loki:

local_domains = localhost:private.network:*.private.network
local_domains_include_host = true
local_domains_include_host_literals = true
relay_domains = helices.org
never_users = root
host_lookup = *
headers_check_syntax
host_accept_relay = localhost
trusted_users = mail
smtp_verify = true
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} #${compile_number} (Debian))\n\t\
         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
procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail -d ${local_part}"
  return_path_add
  delivery_date_add
  envelope_to_add
  check_string = "From "
  escape_string = ">From "
  user = $local_part
  group = mail
remote_smtp:
  driver = smtp
  dns_qualify_single = true
  dns_search_parents = true
  hosts_override = true
  return_path = \
     ${if match{$return_path}{([^@]+)@(.*)\.private\.network}\
        {\
        ${lookup{$1}lsearch{/etc/email-addresses}{$value}fail}\
        }\
        fail}
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
procmail:
  driver = localuser
  transport = procmail_pipe
  require_files =
${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify
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
use_comcast:
  driver = domainlist
  route_list = * trout.private.network
  transport = remote_smtp
lookuphost:
  driver = lookuphost
  transport = remote_smtp
literal:
  driver = ipliteral
  transport = remote_smtp
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h



> >In other words, when you look at the Received: headers in the email to
> >which you responded, you will see that I have a qmail gateway (trout)
> >that successfully sends mail out to the Internet. However, I expect
> >that each system on the LAN can send directly to any other system on the
> >LAN, regardless simple hostname or FQDN.
> >
> >What do you think?
> >
> >P.S., Is there a reason to keep this dialog off-list?
>
> In fact I thought I made a Replay-all in my mail, so there's no reason
> to keep it off-list


OK, now we are back onlist ;>

- --
Best Regards,

mds
mds resource
877.596.8237
- -
Dare to fix things before they break . . .
- -
Our capacity for understanding is inversely proportional to how much
we think we know. The more I know, the more I know I don't know . . .
- --