Starhost
12-07-2002, 04:41 PM
I would like to setup bsmtp for a domain of mine. How should I do this with exim?? I've looked @ google and the exim userlist for help but without any succes.
My DNS record is like this:
....
IN MX 10 dynamic
IN MX 20 mail
mail IN A 80.247.195.72
dynamic IN A dynamic.ip.adress.of.customer
...
Thanx in advance :).
Starhost
12-07-2002, 06:19 PM
I've done that. And cause you know where to find it EXACTLY in the manual. Give the link to it.
Cause I'm not stupid, I did read it. And if I would understand it I wouldn't ask it.
CipherVendor
12-07-2002, 07:44 PM
http://www.exim.org/exim-html-3.30/doc/html/spec.html
Use the search function within IE/Netscape/Mozilla on the right hand frame for bsmtp
http://www.exim.org/exim-html-3.30/doc/html/spec_5.html#IDX193
http://www.exim.org/exim-html-3.30/doc/html/spec_48.html#IDX1882
Starhost
12-07-2002, 07:57 PM
Ofcourse I've done that: even ebfore you gave me those url's but I don't get it how to setup for a domain.
CipherVendor
12-07-2002, 08:12 PM
Here's a local & remote configuration file that works.
LOCAL
######################################################################
# Runtime configuration file for Exim #
######################################################################
######################################################################
# MAIN CONFIGURATION SETTINGS #
######################################################################
# optional - I like them here. Careful with permissions.
spool_directory = /var/spool/exim
log_file_path = /var/log/exim_%slog
# must add uucp to trusted_users
trusted_users = "root:uucp:exim"
# Specify your host's canonical name here.
primary_hostname = my-domain.com
# you must list your domain here - otherwise exim will return mail to your ISP
# the @ copies primary_hostname
local_domains = localhost:@
forbid_domain_literals
never_users = root
# I run a network at home
host_accept_relay = localhost:10.1.2.0/24:10.1.1.0/24
host_lookup = 0.0.0.0/0
ignore_errmsg_errors_after = 2d
end
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
# A transport is used only when referenced from a director or a router that
# successfully handles an address.
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
driver = smtp
# This delivers into local mailboxes here.
local_delivery:
driver = appendfile
file = /var/spool/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
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. #
######################################################################
system_aliases:
driver = aliasfile
require_files = /etc/exim/exim_aliases
file = /etc/exim/exim_aliases
search_type = lsearch
# user = exim
file_transport = address_file
pipe_transport = address_pipe
# This director matches local user mailboxes.
localuser:
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. #
######################################################################
# Remote addresses are those with a domain that does not match any item
# in the "local_domains" setting above.
# this overrides the ones below ..
# this punts all remote addresses to your local ISP. Quicker, faster, better.
smart_route:
driver = domainlist
transport = remote_smtp
route_list = "* smtp.my-isp.net bydns_a"
# this does all the work yourself, and may be blocked by your ISP.
# not active here, because smart_route gets them all.
lookuphost:
driver = lookuphost
transport = remote_smtp
end
######################################################################
# RETRY CONFIGURATION #
######################################################################
end
######################################################################
# REWRITE CONFIGURATION #
######################################################################
end
# End of Exim configuration file
CipherVendor
12-07-2002, 08:13 PM
REMOTE
######################################################################
# Runtime configuration file for Exim #
######################################################################
DM = my-domain.com:my-domain.org:my-other-domain.com
# Specify your local domains as a colon-separated list here.
# I only list domains here that are delivered to mailboxes here,
# not my UUCP transport domains.
# This works because of the "self = local" command below.
# only used if you have mailboxes on this machine.
local_domains = localhost
######################################################################
# MAIN CONFIGURATION SETTINGS #
######################################################################
spool_directory = /var/spool/exim
log_file_path = /var/log/exim_%slog
trusted_users = "root:uucp:exim"
# Specify your host's canonical name here.
primary_hostname = isp.my-domain.com
forbid_domain_literals
never_users = root
# list your domains here - see DM macro above.
relay_domains = DM
host_lookup = 0.0.0.0/0
# kill that spam.
rbl_domains = rbl.maps.vix.com
# rbl_domains = rbl.maps.vix.com:dul.maps.vix.com:relays.orbs.org
ignore_errmsg_errors_after = 2d
end
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
# A transport is used only when referenced from a director or a router that
# successfully handles an address.
# this transport piles up mail in one BSMTP file. This must be queued for
# UUCP transport periodically - I use the spool script.
# the substr command snips of the last 5 letters, .UUCP
bsmtp:
driver = appendfile
bsmtp = all
file = /var/spool/bsmtp/${substr_-5:$host}
user = uucp
#group = uucp
#mode = 0660
prefix =
suffix =
# This transport is easier to use, but queues each message individually.
# That translates to lots of little UUCP messages. Maybe you do not care.
uucp:
driver = pipe
bsmtp = all
prefix =
suffix =
no_from_hack
user = nobody
command = "uux - ${substr_-5:$host}!rsmtp"
return_fail_output = true
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
driver = smtp
# only used if you have mailboxes on this machine.
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
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. #
######################################################################
# not used for UUCP transport domains
system_aliases:
driver = aliasfile
file = /etc/exim/exim_aliases
search_type = lsearch
# user = exim
file_transport = address_file
pipe_transport = address_pipe
# I keep my alias files separated by domain.
virtual:
driver = aliasfile
require_files = /etc/exim/virtual/$domain
file = /etc/exim/virtual/$domain
search_type = lsearch
user=exim
group=mail
file_transport = address_file
pipe_transport = address_pipe
# reply_transport = address_reply
# not used for UUCP transport domains
userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
# filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
# This director matches local user mailboxes.
# not used for UUCP transport domains
localuser:
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. #
######################################################################
# Remote addresses are those with a domain that does not match any item
# in the "local_domains" setting above.
# both the following route_file arguments specify a file that contains
# lines like this :-
#
# my-domain.com: armada.UUCP
# my-other-domain.com: armada.UUCP
#
# the UUCP part is snipped off by the transport, see above.
# put entries in the file of the transport of choice.
bsmtphost:
driver = domainlist
transport = bsmtp
route_file = /etc/exim/bsmtphosts
search_type = lsearch
uucphost:
driver = domainlist
transport = uucp
route_file = /etc/exim/uucphosts
search_type = lsearch
# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.
lookuphost:
driver = lookuphost
self = local
transport = remote_smtp
end
######################################################################
# RETRY CONFIGURATION #
######################################################################
end
######################################################################
# REWRITE CONFIGURATION #
######################################################################
# There are no rewriting specifications in this default configuration file.
end
# End of Exim configuration file
Starhost
12-07-2002, 08:30 PM
Thank you, I'll give it a shot. I hope I will get it to work this time :)
Thanx again,