masqmail
view examples/masqmail.conf @ 392:c5fd796ea06e
Heavy refactoring in parts of conf.c.
init_conf()
parse_boolean()
parse_list_file()
Re-arrangement of code.
parse_address_glob_list()
Removed unneccessary parameter.
parse_list()
parse_interface():
Use strtok()/strchr() instead of doing is all by hand.
Removed limitation of fixed size buffer.
eat_comments()
Use a state machine.
eat_line_trailing()
eat_spaces()
read_lval()
Better structured code.
read_conf()
read_route()
Removed magic numbers.
Made all list type in the config files accept pathname entries,
except for `permanent_routes' and `query_routes.' for which this
is impossible.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 18 Feb 2012 18:07:55 +0100 |
parents | f10a56dc7481 |
children | 4cbaf6d6793f |
line source
1 # masqmail.conf
2 # Example configuration for masqmail
5 # The name with which masqmail identifies itself to others:
6 # CHANGING THIS IS REQUIRED!
7 host_name="striped.patchwork.net"
9 # accept connections on these interfaces:
10 # Change this to something like: "localhost:25;foo:25" if other machines
11 # on your network shall be able to connect to masqmail.
12 #listen_addresses="localhost:25"
14 # use syslogd for logs?
15 #use_syslog=false
18 # online detection:
19 #
20 # for 'file' uncomment next 2 lines
21 #online_query = "/bin/cat /var/run/masqmail/masqmail-route"
24 # example for local delivery to an mda:
25 #
26 #mbox_default=mda
27 #mda="/usr/bin/procmail -Y -d ${rcpt_local}"
30 # alias expansion:
31 #
32 #alias_file = "/etc/aliases"
33 #caseless_matching = false
36 # routes
37 # CHANGING THIS IS REQUIRED!
39 # set up a route for the local net:
40 #permanent_routes = "/etc/masqmail/localnet.route"
42 # You can use as many routes (one for each provider) as you like:
43 #query_routes.example = "/etc/masqmail/example.route"
45 # you can also give a list of routes for a single connection:
46 #query_routes.foobar = "/etc/masqmail/foo.route;/etc/masqmail/bar.route"