masqmail
annotate examples/masqmail.conf @ 249:f9da5a7caeda
refactored the cmdline argument processing
I replaced the nested switch statements with one single
large else-if construct. Instead of char comparision now
str(n)cmp(3) is used. Although this is slower it is much
more readable and covers corner-cases which were uncovered
before (e.g. -bdxxx).
As always: Readability and simplicity matter, not performance.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 04 Nov 2010 11:02:42 -0300 |
parents | 6ff77c63e714 |
children | f10a56dc7481 |
rev | line source |
---|---|
meillo@183 | 1 # masqmail.conf |
meillo@37 | 2 # Example configuration for masqmail |
meillo@0 | 3 |
meillo@0 | 4 |
meillo@37 | 5 # The name with which masqmail identifies itself to others: |
meillo@0 | 6 # CHANGING THIS IS REQUIRED! |
meillo@0 | 7 host_name="striped.patchwork.net" |
meillo@0 | 8 |
meillo@0 | 9 # Nets considered local, for immediate delivery attempts: |
meillo@0 | 10 # ALL hosts not included in either local_host or local_nets are |
meillo@0 | 11 # considered to be 'outside', meaning that messages to them will be queued |
meillo@0 | 12 #local_nets="*.patchwork.net;blue;striped" |
meillo@0 | 13 |
meillo@0 | 14 # accept connections on these interfaces: |
meillo@183 | 15 # Change this to something like: "localhost:25;foo:25" if other machines |
meillo@183 | 16 # on your network shall be able to connect to masqmail. |
meillo@183 | 17 #listen_addresses="localhost:25" |
meillo@0 | 18 |
meillo@0 | 19 # use syslogd for logs? |
meillo@183 | 20 #use_syslog=false |
meillo@0 | 21 |
meillo@0 | 22 |
meillo@0 | 23 # online detection: |
meillo@0 | 24 # |
meillo@0 | 25 # for 'file' uncomment next 2 lines |
meillo@0 | 26 #online_detect = file |
meillo@37 | 27 #online_file = "/var/run/masqmail/masqmail-route" |
meillo@0 | 28 |
meillo@183 | 29 |
meillo@0 | 30 # example for local delivery to an mda: |
meillo@0 | 31 # |
meillo@0 | 32 #mbox_default=mda |
meillo@0 | 33 #mda="/usr/bin/procmail -Y -d ${rcpt_local}" |
meillo@0 | 34 |
meillo@183 | 35 |
meillo@0 | 36 # alias expansion: |
meillo@0 | 37 # |
meillo@183 | 38 #alias_file = "/etc/aliases" |
meillo@243 | 39 #caseless_matching = false |
meillo@0 | 40 |
meillo@0 | 41 |
meillo@0 | 42 # special routes: |
meillo@0 | 43 |
meillo@0 | 44 # CHANGING THIS IS REQUIRED! |
meillo@0 | 45 # You can use as many routes (one for each provider) as you like: |
meillo@183 | 46 #connect_route.example = "/etc/masqmail/example.route" |
meillo@0 | 47 |
meillo@0 | 48 # you can also give a list of routes for a single connection: |
meillo@183 | 49 #connect_route.foobar = "/etc/masqmail/foo.route;/etc/masqmail/bar.route" |
meillo@0 | 50 |
meillo@0 | 51 # you can also set routes for the local net: |
meillo@0 | 52 #local_net_route = "/etc/masqmail/local.route;/etc/masqmail/other_lan.route" |