1# Sample MeTA1 configuration file for Grecs testsuite.
2
3hostname = "host.example.org";
4
5smtps {
6  greeting = "220 example.org ESMTP Tossudament alcats\r\n";
7  log_level = 12;
8  log { facility=mail; ident="smtps"; }
9  flags = { 8bitmime,
10            access };
11  CDB_gid = 2262;
12  wait_for_server = 4;
13  listen_socket { type=inet; port = 25; }
14  start_action = pass;
15  pass_fd_socket = smtps/smtpsfd;
16  user = meta1s;
17  path = "/usr/local/libexec/smtps";
18  arguments = "smtps -f /etc/meta1/meta1.conf";
19  policy_milter {
20    socket {
21      type = inet;
22      address = 127.0.0.1;
23      port = 3333;
24    };
25    timeout = 1800s;
26    flags = { accept_but_reconnect };
27  };
28  io_timeout = 300s;
29  module_timeout = 1000s;
30  auth {
31    flags = { noanonymous };
32  }
33}
34
35smtps MSA {
36       log_level = 11;
37       log { facility=mail; ident="MSA"; }
38       CDB_gid = 2262;
39       listen_socket { type=inet; port = 587; }
40       start_action = pass;
41       pass_fd_socket = smtps/msafd;
42       user = meta1s;
43       path = "/usr/local/libexec/smtps";
44       arguments = "smtps -I 1 -N MSA -f /etc/meta1/meta1.conf";
45}
46
47smtpc {
48  log_level = 12;
49  log { facility=mail; ident="smtpc"; }
50  flags = { read_QUIT_reply,
51            separate_final_dot_and_QUIT,
52            talk_to_myself };
53  LMTP_socket="lmtpsock";
54  wait_for_server = 4;
55  start_action = wait;
56  user = meta1c;
57  path = "/usr/local/libexec/smtpc";
58  arguments = "smtpc -f /etc/meta1/meta1.conf";
59}
60
61# must be previous to last in the list: started after smar
62qmgr {
63  log_level = 12;
64  log { facility=mail; ident="qmgr"; }
65  wait_for_server = 4;
66  wait_for_client = 3;
67  start_action = wait;
68  user = meta1q;
69  restart_dependencies = { smtps, MSA, smtpc };
70  path = "/usr/local/libexec/qmgr";
71  arguments = "qmgr -f /etc/meta1/meta1.conf";
72  control_socket = "qmgr/sock";
73}
74
75
76# must be last in the list: started first
77smar {
78  DNS { nameservers={ 10.11.0.1, 10.12.0.1 };
79        flags = use_connect; }
80  log_level = 12;
81  log { facility=mail; ident="smar"; }
82  nameserver = 10.11.0.1;
83  start_action = wait;
84  user = meta1m;
85  restart_dependencies = { smtps, MSA, qmgr };
86  path = "/usr/local/libexec/smar";
87  arguments = "smar -f /etc/meta1/meta1.conf";
88
89  map mtdb {
90        type = hash;
91        file = "mt.db";
92  }
93  mailertable {
94        name = mtdb;
95        flags = { full_address, domain };
96  }
97
98  map password { type = passwd; }
99  map userdb {
100	type = socket;
101	path = "/var/spool/meta1/smap/userdb";
102	mapname = userdb;
103	min_connections = 10;
104	max_connections = 1024;
105        timeout = 5;
106  }
107  map locusr {
108	type = sequence;
109	maps = { password, userdb };
110  }
111
112  local_user_map {
113       name = "locusr";
114       flags = { localpart, local_domains };
115  }
116
117  map lum {
118	type = socket;
119	path = "/var/spool/meta1/smap/userdb";
120	mapname = alias;
121	min_connections = 10;
122	max_connections = 1024;
123	timeout = 6;
124  }
125  map stdal { file = "aliases.db"; type = hash; }
126  map ali { type = sequence; maps = { lum,stdal }; }
127  aliases {
128	name = ali;
129	flags =	{ localpart, local_domains };
130  }
131
132  map acc { type = socket; address = 127.0.0.1; port = 1025; mapname = access; }
133  access_map {
134      name = acc;
135  }
136}
137