Can someone please help me unravel this? I would appreciate even the 'RTFM'
answer if I should be able to figure this out. When I get nothing back I
don't know if it is 'too hard' or 'too easy' I've done my share of
answering stupid questions in other departments involving Linux; so I know
how exasperating it can get to hear dumb questions over and over.
I am wanting to use one machine with a modem as a gateway (littleone) and
another machine (sidekick) to do my work. I have distilled my exim.conf down
to just what is uncommented. I am using the same exim.conf on both with one
change. The setup works great when I am online, but I get very sluggish mail
sending and delivery when I am offline. I notice that when I send a message
on sidekick to a local address (root or ajlewis2), it comes in addressed to
root@littleone. I have a feeling that I need to change something else in
the exim.conf for sidekick and I've tried changing all instances of the
word 'littleone' to 'sidekick' which did not work. I've read the chapter on
relaying from specs.txt and I don't really understand it.
The part for the gateway computer seems pretty clear and I set that up with
eximconfig, but what to put in for the other computer is the confusing part.
I've tried putting 'littleone' in for the smarthost, but that failed too.
So far using the same config file with the difference that sidekick has
'host_accept_relay = localhost' works the best. The only problem is that
when I am offline, like I said, it takes forever for the mail to be sent
from mutt and likewise to get delivered to the local user. I think this may
have something to do with the line about the 'route_list' and 'bydns_a' and
maybe the smarthost should be different in sidekick.
++++++++distilled exim.conf for littleone +++++++++++++++
qualify_domain = littleone
local_domains = localhost:littleone
local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
host_lookup = *
host_accept_relay = 127.0.0.1 : ::::1 : 192.168.12.0/16
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} #${compile_number} (Debian))\n\t\
id ${message_id}\
${if def:received_for {\n\tfor <$received_for>}}"
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
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
headers_remove = Sender
######################################################################
# DIRECTORS CONFIGURATION #
# Specifies how local addresses are handled #
######################################################################
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
######################################################################
# ROUTERS CONFIGURATION #
# Specifies how remote addresses are handled #
######################################################################
smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* mailhost.intac.com bydns_a"
# Domain Error Retries
# ------ ----- -------
* * F,2h,15m; G,16h,2h,1.5; F,4d,8h
######################################################################
# REWRITE CONFIGURATION #
######################################################################
*@littleone ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} bcfrF
# End of Exim configuration file
++++++++++++++++++++++++++++++++++++==
--
Anita
GnuPG key: 1024D/9EDAC910