[Exim] local-part?

Top Page
Delete this message
Reply to this message
Author: Gavin Dunne
Date: 2001-02-24 20:27 -000
To: exim-users
Subject: [Exim] local-part?
I am having a problem where only email destined to my virtual accouts is
getting through...
If I try to send to the outsied world or a local system account I get this
error:

boomboom# ./bin/exim -v -bt gdunne@???
gdunne@??? is undeliverable:
unknown local-part "gdunne" in domain "whatever.com"

Same thing happens when trying with local accounts with or without the
domain part
of the address being specified.

What I tried to do is combine two different conf files on which uses MySQL
lookups,
but doesn't support having system account as well, and on which didn't use
mySQL
but did support system accounts.

Here's the current conf file I am using, any help is appreciated, I've
played with this for
hours now, and have no idea whats going on...

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


primary_hostname = boomboom.hitmenmusic.com
exim_user = mail
exim_group = mail

hide mysql_servers = localhost/virtemail/blah/blah

qualify_domain = boomboom.hitmenmusic.com

local_domains = boomboom.hitmenmusic.com : mysql;SELECT domain_name FROM
domain

forbid_domain_literals

never_users = root

host_accept_relay = localhost : 10.0.0.0/24 : 198.165.35.0/24

host_lookup = *

# rbl_domains = rbl.maps.vix.com
# rbl_domains = rbl.maps.vix.com:dul.maps.vix.com:relays.orbs.org

ignore_errmsg_errors_after = 2d

timeout_frozen_after = 7d

end


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################


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


virtual_localdelivery:
driver = appendfile
file = ${lookup mysql{select path from domain where domain_name =
'$domain'}{$value}fail}/${lookup mysql{select mbox_name from popbox where
domain_name = '$domain' and local_part = '$local_part'}{$value}fail}

delivery_date_add
envelope_to_add
return_path_add
user = mail
group = mail
mode = 0660
# user = ${lookup mysql{select unix_user from domain where domain_name =
'$domain'}{$value}fail}

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

address_reply:
driver = autoreply

end



######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################


real_local:
prefix = real-
driver = localuser
transport = local_delivery


virtual_forward:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
search_type = mysql
query = "select remote_name from forwarder, domain where local_part =
'$local_part' and forwarder.domain_name = domain.domain_name and
domain.domain_name = '$domain'"
user = mail
qualify_preserve_domain


system_aliases:
domains = "! mysql;SELECT domain_name FROM domain : *"
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
file = /etc/aliases
search_type = lsearch

userforward:
domains = "! mysql;SELECT domain_name FROM domain : *"
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
no_verify
check_ancestor
file = .forward
modemask = 002
filter


virtual_localuser:
driver = aliasfile
file_transport = address_file
pipe_transport = address_pipe
search_type = mysql
query = "select mbox_name from popbox, domain where local_part =
'$local_part' and popbox.domain_name = domain.domain_name and
domain.domain_name = '$domain'"
transport = virtual_localdelivery
no_more


localuser:
domains = "! mysql;SELECT domain_name FROM domain : *"
driver = localuser
transport = local_delivery
end




######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################


lookuphost:
driver = lookuphost
transport = remote_smtp

end



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


# Domain               Error       Retries
# ------               -----       -------


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


end



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



end