Re: Filter on time of day

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Warner Losh
Dátum:  
Címzett: exim-users
Tárgy: Re: Filter on time of day

Question about exim, mx, etc.

OK. I have finally gone to the virtual private network route on my
network at home. I've actually been doing that for a long time now.
Recently, I got a zoomy new PPro machine that is really fast. So, I
thought I'd have my gateway machine (running FreeBSD) act as a mail
forwarder for this new system. The gateway machine is rover, and the
new machine is harmony. So I setup the following in DNS:

Server: information-retrieval.village.org
Address: 204.144.255.51

harmony.village.org    preference = 20, mail exchanger = information-retrieval.village.org
harmony.village.org    preference = 50, mail exchanger = mroe.cs.colorado.edu
harmony.village.org    preference = 5, mail exchanger = harmony.village.org
harmony.village.org    preference = 10, mail exchanger = rover.village.org
... (name server info omitted)


This works *GREAT*. My email was flowing w/o a hitch to the new
machine. Then all of a sudden, something went wrong with the new
machine (well, a dog nosed the power switch off w/o my noticing it).
At that point, mail started bouncing on rover. Too many bounced.
Rover was sending this message to itself over and over again until the
hop count was exceeded. Later, when I tried it with harmony off on
purpose, same thing happened.

Ideas?

Warner

P.S. Here are my config file. I'm running exim 1.60 on FreeBSD
-current as of about a month ago. This is the freebsd port version,
which is nearly the stock 1.60 version, except for log file location.

######################################################################
#                  Runtime configuration file for Exim               #
######################################################################



# This is a default configuration file which will operate correctly in
# uncomplicated installations. Please see the manual for a complete list
# of all the runtime configuration options.


# This file is divided into several parts, all but the last of which are
# terminated by a line containing the word "end". The parts must appear
# in the correct order, and all must be present (even if some of them are
# in fact empty). Blank lines, and lines starting with # are ignored.



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


# Specify your host's canonical name here. If this option is not set, the
# uname() function is called to obtain the name.

primary_hostname = rover.village.org

# Specify the domain you want to be added to all unqualified addresses
# here. If this option is not set, the primary_hostname value is used.

# qualify_domain = village.org

# If you want unqualified recipient addresses to be qualified with a different
# domain to unqualified sender addresses, specify the recipient domain here.
# If this option is not set, the qualify_domain value is used.

# qualify_recipient =

# Specify your local domains as a colon-separated list here. If this option
# is not set, the qualify_recipient value is used as the only local domain.
# If you do not want to do any local deliveries, uncomment the following line,
# but do not supply any data for it.

local_domains = rover.village.org:outlands.sca.org:*.rkl.org:rkl.org

# No local deliveries will ever be run under the uids of these users.

never_users = root

# If you want Exim to support the "percent hack" for all your local domains,
# uncomment the following line. This is the feature by which mail addressed
# to x%y@z (where z is one of your local domains) is locally rerouted to
# x@y and sent on. Otherwise x%y is treated as an ordinary local part.

# percent_hack_domains=*

# If you are running Exim under its own uid (recommended), then you should
# set up that uid as a trusted user by de-commenting the following and
# changing the name if necessary.

# trusted_users = exim

receiver_unqualified_nets = 127.0.0.1/255.255.255.255

end



######################################################################
#                      TRANPORTS CONFIGURATION                       #
######################################################################


# This transport is used for local delivery to user mailboxes.

local_delivery:
driver = appendfile;
file = ${home}/inbox

# This transport is used for handling pipe addresses generated by alias
# or .forward files. It has a conventional name, since it is not actually
# mentioned elsewhere in this configuration file.

address_pipe:
driver = pipe;
ignore_status,
return_output

# This transport is used for handling file addresses generated by alias
# or .forward files. It has a conventional name, since it is not actually
# mentioned elsewhere in this configuration file.

address_file:
driver = appendfile

# This transport is used for handling autoreplies generated by the filtering
# option of the forwardfile director. It has a conventional name, since it
# is not actually mentioned elsewhere in this configuration file.

address_reply:
driver = autoreply

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

smtp:
driver = smtp;

end



######################################################################
#                      DIRECTORS CONFIGURATION                       #
######################################################################


# This is for the virtual domain outlands.sca.org. We use two directors
# here. outlands will catch all mail to the outlands for folks that
# we know about. outlands_unknown will just funnel everything off to
# one person to deal with the fumble fingers.
outlands:
domains = outlands.sca.org,
driver = aliasfile;
file = /etc/aliases.outlands,
search_type = lsearch
outlands_unknown:
domains = outlands.sca.org,
no_more,
driver = smartuser;
new_address=imp@???

# Director for Ryan's domain
rkl_org:
domains = *.rkl.org:rkl.org,
no_more,
driver = smartuser;
new_address=rklosh@???

# This director handles aliasing using the village's /etc/aliases.local file.

local_aliases:
driver = aliasfile;
file = /etc/aliases.local,
search_type = lsearch

# This director handles aliasing using a traditional /etc/aliases file.

system_aliases:
driver = aliasfile;
file = /etc/aliases,
search_type = lsearch

# This director handles forwarding using traditional .forward files.
# If you want it also to allow mail filtering when a forward file
# starts with the string "# Exim filter", uncomment the "filter" option.

userforward:
no_verify,
driver = forwardfile;
file = .forward,
# filter

# This director matches local user mailboxes.

localuser:
driver = localuser,
transport = local_delivery;

end



######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################


# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.

lookuphost:
driver = lookuphost,
transport = smtp;

# This router routes to remote hosts over SMTP by explicit IP address,
# given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
# require this facility, which is why it is enabled by default in Exim.
# If you want to lock it out, set forbid_domain_literals in the main
# configuration section above.

literal:
driver = ipliteral,
transport = smtp;

end



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


# This single retry rule applies to all domains and all errors. It specifies
# retries every 15 minutes for 2 hours, then increasing retry intervals,
# starting at 2 hours and increasing each time by a factor of 1.5, up to 16
# hours, then retries every 8 hours until 4 days have passed since the first
# failed delivery.

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


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


end



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


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

*@*.village.org        $1@??? Fh


# End of Exim configuration file