# Note that the default setting means you cannot deliver mail addressed to root
# as if it were a normal user. This isn't usually a problem, as most sites have
# an alias for root that redirects such mail to a human administrator.

never_users = root


# The setting below causes Exim to do a reverse DNS lookup on all incoming
# IP calls, in order to get the true host name. If you feel this is too
# expensive, you can specify the networks for which a lookup is done, or
# remove the setting entirely.
#
# This setting looks up IPs from machines not allowed to relay mail by default. 

host_lookup = !+relay_from_hosts : !+private_addresses

# The settings below, which are actually the same as the defaults in the
# code, cause Exim to make RFC 1413 (ident) callbacks for all incoming SMTP
# calls. You can limit the hosts to which these calls are made, and/or change
# the timeout that is used. If you set the timeout to zero, all RFC 1413 calls
# are disabled. RFC 1413 calls are cheap and can provide useful information
# for tracing problem messages, but some hosts and firewalls have problems
# with them. This can result in a timeout instead of an immediate refused
# connection, leading to delays on starting up SMTP sessions. (The default was
# reduced from 30s to 5s for release 4.61.)

rfc1413_hosts =
rfc1413_query_timeout = 5s

# When Exim can neither deliver a message nor return it to sender, it "freezes"
# the delivery error message (aka "bounce message"). There are also other
# circumstances in which messages get frozen. They will stay on the queue for
# ever unless one of the following options is set.

# This option unfreezes frozen bounce messages after two days, tries
# once more to deliver them, and ignores any delivery failures.

ignore_bounce_errors_after = 2d

# This option cancels (removes) frozen messages that are older than a week.

timeout_frozen_after = 7d

# Everyone *should* be able to send envelope-from to arbitrary values, but
# Exim4 doesn't like allowing everyone, so only www-data has been specified.
#
trusted_users = www-data 

# set GECOS correctly
gecos_pattern = ^([^,:]*)
gecos_name = $1

# If this next line is uncommented, any user can see the mail queue
# by using the mailq command or exim -bp.
#
no_queue_list_requires_admin

# Set the ports that exim listens on
daemon_smtp_ports = 25 : 465 : 587


# Use the system filter to remove extra headers
system_filter = ETC_DIR/exim4/system_filter

# Set keep_environment to avoid warning on restart
keep_environment =

