Re: [Exim] Does Exim auto strip subdomains?

Pàgina inicial
Delete this message
Reply to this message
Autor: ScaryG
Data:  
A: Matthew Palmer
CC: exim-users
Assumpte: Re: [Exim] Does Exim auto strip subdomains?
On Thu, 17 Oct 2002 11:37:58 +1000 (EST)
Matthew Palmer <mjp16@???> wrote:

> > I need Exim (3.36) to NOT strip the sub-domain name.
> >
> > Any tips?
>
> Check the rewrite section. There's a commonly used rule which does just
> that. It might be a default install for your distribution.


My Rewrite Section is completely empty. I posted my config file yesterday
but for the sake of making this thread easy, here's the stripped down
version again (no comments):

######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################


LOCAL_ALIASES = /etc/mail/local_aliases
message_filter = /usr/local/etc/exim/system_filter.exim
message_body_visible = 5000

deliver_queue_load_max = 8
smtp_accept_max = 20
smtp_accept_max_per_host = 10
spool_directory = /var/spool/exim_incoming
queue_only = true

rbl_domains = relays.ordb.org/reject
rbl_hosts = !192.168.0.1/24:0.0.0.0/0
recipients_reject_except = postmaster@???
rbl_log_headers
rbl_log_rcpt_count

primary_hostname = scaryg.shacknet.nu

qualify_domain = scaryg.shacknet.nu

hide mysql_servers = localhost::3306/dbname/user/passwd

local_domains = scaryg.shacknet.nu:/etc/mail/local-host-names

forbid_domain_literals

exim_user = mailnull
exim_group = mail
never_users = root

host_accept_relay = localhost : 192.168.0.0/24 : 127.0.0.1 :
scaryg.shacknet.nu

relay_domains = scaryg.shacknet.nu:/etc/mail/relay-domains

host_lookup = *

receiver_verify

sender_verify

ignore_errmsg_errors_after = 2d

timeout_frozen_after = 7d


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################


virtual_localdelivery:
driver = appendfile
file = ${lookup mysql{select path from domain left join domain_alias on
domain_alias.domain_name = domain.domain_name where domain.domain_name =
'$domain' or domain_alias.alias = '$domain'}{$value}fail}/${lookup
mysql{select mbox_name from popbox left join domain_alias on
popbox.domain_name = domain_alias.domain_name where (popbox.domain_name =
'$domain' or domain_alias.alias = '$domain') and local_part =
'$local_part'}{$value}fail}
delivery_date_add
envelope_to_add
return_path_add
user = ${lookup mysql{select unix_user from domain left join
domain_alias on domain_alias.domain_name = domain.domain_name where
domain.domain_name = '$domain' or domain_alias.alias =
'$domain'}{$value}fail}
mode = 0660

# This transport is used for delivering messages over SMTP connections.

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

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

address_reply:
driver = autoreply


######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################



bounce_spam_master:
driver = smartuser
require_files = /usr/local/etc/exim/bouncelist
senders = /usr/local/etc/exim/bouncelist
new_address = :fail: "unknown local-part \"$local_part\" in domain
\"$domain\""


bounce_spam_personal:
driver = smartuser
senders = /home/$local_part/.bouncelist
require_files = /home/$local_part/.bouncelist
new_address = :fail: unknown local-part \"$local_part\" in domain
\"$domain\"


system_aliases:
domains = LOCAL_ALIASES
driver = aliasfile
file = /etc/mail/aliases
search_type = lsearch
user = exim
group = mail
qualify_preserve_domain = true
file_transport = address_file
pipe_transport = address_pipe


userforward:
domains = LOCAL_ALIASES
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
# filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
match_directory = !^/nonexistent


# This director matches local user mailboxes.

localuser:
domains = LOCAL_ALIASES
driver = localuser
transport = local_delivery

# For Virtual Email Stuff
# Handle forwarders and aliases (same database table)

virtual_forward:
driver = aliasfile
search_type = mysql
query = "select remote_name from forwarder left join domain_alias on
domain_alias.domain_name = forwarder.domain_name where local_part =
'$local_part' and (forwarder.domain_name = '$domain' or alias =
'$domain')"
forbid_file = true
forbid_pipe = true

virtual_localuser:
driver = aliasfile
search_type = mysql
query = "select mbox_name from popbox left join domain_alias on
domain_alias.domain_name = popbox.domain_name where local_part =
'$local_part' and (popbox.domain_name = '$domain' or alias = '$domain')"
transport = virtual_localdelivery

# deliver any undelivered virtual email according to the _default_
# forwarder

virtual_defaultuser:
driver = aliasfile
search_type = mysql
query = "select remote_name from forwarder left join domain_alias on
domain_alias.domain_name = forwarder.domain_name where local_part =
'_default_' and (forwarder.domain_name = '$domain' or domain_alias.alias =
'$domain')"
forbid_file = true
forbid_pipe = true


######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################


send_to_gateway:
driver = domainlist
transport = remote_smtp
route_list = * smtp1.sympatico.ca byname


######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################


*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h





######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# There are no rewriting specifications in this default configuration
# file.




######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################


# There are no authenticator specifications in this default configuration
# file.

# End of Exim configuration file