~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to html/access.5.html

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
              The pattern <i>domain.tld</i> also matches subdomains, but
81
81
              only when the string <b>smtpd_access_maps</b> is listed in
82
82
              the Postfix  <b><a href="postconf.5.html#parent_domain_matches_subdomains">parent_domain_matches_subdomains</a></b>  con-
83
 
              figuration  setting  (note that this is the default
84
 
              for some versions of Postfix).  Otherwise,  specify
85
 
              <i>.domain.tld</i>  (note  the  initial  dot)  in order to
86
 
              match subdomains.
 
83
              figuration setting.
 
84
 
 
85
       <i>.domain.tld</i>
 
86
              Matches subdomains of <i>domain.tld</i>, but only when the
 
87
              string <b>smtpd_access_maps</b> is not listed in the Post-
 
88
              fix  <b><a href="postconf.5.html#parent_domain_matches_subdomains">parent_domain_matches_subdomains</a></b> configuration
 
89
              setting.
87
90
 
88
91
       <i>user</i>@  Matches all mail addresses with the specified  user
89
92
              part.
111
114
              The pattern <i>domain.tld</i> also matches subdomains, but
112
115
              only when the string <b>smtpd_access_maps</b> is listed in
113
116
              the Postfix  <b><a href="postconf.5.html#parent_domain_matches_subdomains">parent_domain_matches_subdomains</a></b>  con-
114
 
              figuration setting.  Otherwise, specify <i>.domain.tld</i>
115
 
              (note the initial dot) in  order  to  match  subdo-
116
 
              mains.
 
117
              figuration setting.
 
118
 
 
119
       <i>.domain.tld</i>
 
120
              Matches subdomains of <i>domain.tld</i>, but only when the
 
121
              string <b>smtpd_access_maps</b> is not listed in the Post-
 
122
              fix  <b><a href="postconf.5.html#parent_domain_matches_subdomains">parent_domain_matches_subdomains</a></b> configuration
 
123
              setting.
117
124
 
118
125
       <i>net.work.addr.ess</i>
119
126
 
121
128
 
122
129
       <i>net.work</i>
123
130
 
124
 
       <i>net</i>    Matches  the specified IPv4 host address or subnet-
125
 
              work. An IPv4 host address is a  sequence  of  four
 
131
       <i>net</i>    Matches the specified IPv4 host address or  subnet-
 
132
              work.  An  IPv4  host address is a sequence of four
126
133
              decimal octets separated by ".".
127
134
 
128
 
              Subnetworks  are  matched  by repeatedly truncating
 
135
              Subnetworks are matched  by  repeatedly  truncating
129
136
              the last ".octet" from the remote IPv4 host address
130
 
              string  until a match is found in the access table,
 
137
              string until a match is found in the access  table,
131
138
              or until further truncation is not possible.
132
139
 
133
140
              NOTE 1: The access map lookup key must be in canon-
134
 
              ical  form: do not specify unnecessary null charac-
135
 
              ters, and do not enclose network  address  informa-
 
141
              ical form: do not specify unnecessary null  charac-
 
142
              ters,  and  do not enclose network address informa-
136
143
              tion with "[]" characters.
137
144
 
138
 
              NOTE  2:  use the <b>cidr</b> lookup table type to specify
 
145
              NOTE 2: use the <b>cidr</b> lookup table type  to  specify
139
146
              network/netmask  patterns.  See  <a href="cidr_table.5.html"><b>cidr_table</b>(5)</a>  for
140
147
              details.
141
148
 
145
152
 
146
153
       <i>net:work</i>
147
154
 
148
 
       <i>net</i>    Matches  the specified IPv6 host address or subnet-
149
 
              work. An IPv6 host address is a sequence  of  three
150
 
              to  eight hexadecimal octet pairs separated by ":".
 
155
       <i>net</i>    Matches the specified IPv6 host address or  subnet-
 
156
              work.  An  IPv6 host address is a sequence of three
 
157
              to eight hexadecimal octet pairs separated by  ":".
151
158
 
152
 
              Subnetworks are matched  by  repeatedly  truncating
153
 
              the  last  ":octetpair"  from  the remote IPv6 host
 
159
              Subnetworks  are  matched  by repeatedly truncating
 
160
              the last ":octetpair" from  the  remote  IPv6  host
154
161
              address string until a match is found in the access
155
162
              table, or until further truncation is not possible.
156
163
 
159
166
              Thus, not all the ":" subnetworks will be tried.
160
167
 
161
168
              NOTE 2: The access map lookup key must be in canon-
162
 
              ical  form: do not specify unnecessary null charac-
163
 
              ters, and do not enclose network  address  informa-
 
169
              ical form: do not specify unnecessary null  charac-
 
170
              ters,  and  do not enclose network address informa-
164
171
              tion with "[]" characters.
165
172
 
166
 
              NOTE  3:  use the <b>cidr</b> lookup table type to specify
 
173
              NOTE 3: use the <b>cidr</b> lookup table type  to  specify
167
174
              network/netmask  patterns.  See  <a href="cidr_table.5.html"><b>cidr_table</b>(5)</a>  for
168
175
              details.
169
176
 
174
181
 
175
182
       <i>all-numerical</i>
176
183
              An all-numerical result is treated as OK. This for-
177
 
              mat  is generated by address-based relay authoriza-
 
184
              mat is generated by address-based relay  authoriza-
178
185
              tion schemes such as pop-before-smtp.
179
186
 
180
187
<b>REJECT ACTIONS</b>
181
 
       Postfix version 2.3  and  later  support  enhanced  status
182
 
       codes  as  defined in <a href="http://tools.ietf.org/html/rfc3463">RFC 3463</a>.  When no code is specified
183
 
       at the beginning of the  <i>text</i>  below,  Postfix  inserts  a
184
 
       default  enhanced  status  code  of "5.7.1" in the case of
185
 
       reject actions, and "4.7.1" in the case of defer  actions.
 
188
       Postfix  version  2.3  and  later  support enhanced status
 
189
       codes as defined in <a href="http://tools.ietf.org/html/rfc3463">RFC 3463</a>.  When no code  is  specified
 
190
       at  the  beginning  of  the  <i>text</i> below, Postfix inserts a
 
191
       default enhanced status code of "5.7.1"  in  the  case  of
 
192
       reject  actions, and "4.7.1" in the case of defer actions.
186
193
       See "ENHANCED STATUS CODES" below.
187
194
 
188
195
       <b>4</b><i>NN text</i>
189
196
 
190
197
       <b>5</b><i>NN text</i>
191
 
              Reject  the  address etc. that matches the pattern,
 
198
              Reject the address etc. that matches  the  pattern,
192
199
              and respond with the numerical three-digit code and
193
 
              text.  <b>4</b><i>NN</i> means "try again later", while <b>5</b><i>NN</i> means
 
200
              text. <b>4</b><i>NN</i> means "try again later", while <b>5</b><i>NN</i>  means
194
201
              "do not try again".
195
202
 
196
 
              The following responses have  special  meaning  for
 
203
              The  following  responses  have special meaning for
197
204
              the Postfix SMTP server:
198
205
 
199
206
              <b>421</b> <i>text</i> (Postfix 2.3 and later)
200
207
 
201
208
              <b>521</b> <i>text</i> (Postfix 2.6 and later)
202
 
                     After  responding  with the numerical three-
203
 
                     digit code and text, disconnect  immediately
204
 
                     from  the  SMTP  client.  This frees up SMTP
205
 
                     server resources so that they  can  be  made
 
209
                     After responding with the  numerical  three-
 
210
                     digit  code and text, disconnect immediately
 
211
                     from the SMTP client.  This  frees  up  SMTP
 
212
                     server  resources  so  that they can be made
206
213
                     available to another SMTP client.
207
214
 
208
215
                     Note: The "521" response should be used only
209
 
                     with botnets and other malware where  inter-
 
216
                     with  botnets and other malware where inter-
210
217
                     operability is of no concern.  The "send 521
211
 
                     and disconnect" behavior is NOT  defined  in
 
218
                     and  disconnect"  behavior is NOT defined in
212
219
                     the SMTP standard.
213
220
 
214
221
       <b>REJECT</b> <i>optional text...</i>
215
 
              Reject  the  address etc. that matches the pattern.
216
 
              Reply   with   "<b>$<a href="postconf.5.html#access_map_reject_code">access_map_reject_code</a></b>    <i>optional</i>
217
 
              <i>text...</i>"  when the optional text is specified, oth-
 
222
              Reject the address etc. that matches  the  pattern.
 
223
              Reply    with   "<b>$<a href="postconf.5.html#access_map_reject_code">access_map_reject_code</a></b>   <i>optional</i>
 
224
              <i>text...</i>" when the optional text is specified,  oth-
218
225
              erwise reply with a generic error response message.
219
226
 
220
227
       <b>DEFER</b> <i>optional text...</i>
221
 
              Reject  the  address etc. that matches the pattern.
222
 
              Reply   with    "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a></b>    <i>optional</i>
223
 
              <i>text...</i>"  when the optional text is specified, oth-
 
228
              Reject the address etc. that matches  the  pattern.
 
229
              Reply    with    "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a></b>   <i>optional</i>
 
230
              <i>text...</i>" when the optional text is specified,  oth-
224
231
              erwise reply with a generic error response message.
225
232
 
226
233
              This feature is available in Postfix 2.6 and later.
227
234
 
228
235
       <b>DEFER_IF_REJECT</b> <i>optional text...</i>
229
 
              Defer the request if some later  restriction  would
230
 
              result    in    a   REJECT   action.   Reply   with
231
 
              "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a>  4.7.1</b>  <i>optional   text...</i>"
232
 
              when  the  optional  text  is  specified, otherwise
 
236
              Defer  the  request if some later restriction would
 
237
              result   in   a   REJECT   action.    Reply    with
 
238
              "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a>   4.7.1</b>  <i>optional  text...</i>"
 
239
              when the  optional  text  is  specified,  otherwise
233
240
              reply with a generic error response message.
234
241
 
235
242
              Prior to Postfix 2.6, the SMTP reply code is 450.
237
244
              This feature is available in Postfix 2.1 and later.
238
245
 
239
246
       <b>DEFER_IF_PERMIT</b> <i>optional text...</i>
240
 
              Defer  the  request if some later restriction would
241
 
              result in a an explicit or implicit PERMIT  action.
242
 
              Reply  with "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a> 4.7.1</b>  <i>optional</i>
243
 
              <i>text...</i>" when the optional text is specified,  oth-
 
247
              Defer the request if some later  restriction  would
 
248
              result  in a an explicit or implicit PERMIT action.
 
249
              Reply with "<b>$<a href="postconf.5.html#access_map_defer_code">access_map_defer_code</a> 4.7.1</b>   <i>optional</i>
 
250
              <i>text...</i>"  when the optional text is specified, oth-
244
251
              erwise reply with a generic error response message.
245
252
 
246
253
              Prior to Postfix 2.6, the SMTP reply code is 450.
253
260
              <b><a href="postconf.5.html#reject_unauth_destination">reject_unauth_destination</a></b>, and so on).
254
261
 
255
262
       <b>BCC</b> <i>user@domain</i>
256
 
              Send one copy  of  the  message  to  the  specified
 
263
              Send  one  copy  of  the  message  to the specified
257
264
              recipient.
258
265
 
259
 
              If  multiple  BCC  actions are specified within the
260
 
              same SMTP MAIL transaction, only  the  last  action
 
266
              If multiple BCC actions are  specified  within  the
 
267
              same  SMTP  MAIL  transaction, only the last action
261
268
              will be used.
262
269
 
263
 
              This  feature  is  not  part  of the stable Postfix
 
270
              This feature is not  part  of  the  stable  Postfix
264
271
              release.
265
272
 
266
273
       <b>DISCARD</b> <i>optional text...</i>
267
 
              Claim successful delivery and silently discard  the
268
 
              message.   Log the optional text if specified, oth-
 
274
              Claim  successful delivery and silently discard the
 
275
              message.  Log the optional text if specified,  oth-
269
276
              erwise log a generic message.
270
277
 
271
 
              Note: this action currently affects all  recipients
272
 
              of  the  message.   To  discard  only one recipient
273
 
              without discarding  the  entire  message,  use  the
 
278
              Note:  this action currently affects all recipients
 
279
              of the message.   To  discard  only  one  recipient
 
280
              without  discarding  the  entire  message,  use the
274
281
              <a href="transport.5.html">transport(5)</a> table to direct mail to the <a href="discard.8.html">discard(8)</a>
275
282
              service.
276
283
 
277
284
              This feature is available in Postfix 2.0 and later.
278
285
 
279
 
       <b>DUNNO</b>  Pretend  that  the  lookup  key was not found. This
280
 
              prevents Postfix  from  trying  substrings  of  the
281
 
              lookup  key (such as a subdomain name, or a network
 
286
       <b>DUNNO</b>  Pretend that the lookup key  was  not  found.  This
 
287
              prevents  Postfix  from  trying  substrings  of the
 
288
              lookup key (such as a subdomain name, or a  network
282
289
              address subnetwork).
283
290
 
284
291
              This feature is available in Postfix 2.0 and later.
285
292
 
286
293
       <b>FILTER</b> <i>transport:destination</i>
287
 
              After  the  message is queued, send the entire mes-
 
294
              After the message is queued, send the  entire  mes-
288
295
              sage through the specified external content filter.
289
 
              The  <i>transport</i>  name specifies the first field of a
290
 
              mail delivery agent definition  in  <a href="master.5.html">master.cf</a>;  the
291
 
              syntax  of the next-hop <i>destination</i> is described in
 
296
              The <i>transport</i> name specifies the first field  of  a
 
297
              mail  delivery  agent  definition in <a href="master.5.html">master.cf</a>; the
 
298
              syntax of the next-hop <i>destination</i> is described  in
292
299
              the  manual  page  of  the  corresponding  delivery
293
 
              agent.   More  information  about  external content
 
300
              agent.  More  information  about  external  content
294
301
              filters is in the Postfix <a href="FILTER_README.html">FILTER_README</a> file.
295
302
 
296
 
              Note 1: do not use $<i>number</i> regular expression  sub-
297
 
              stitutions  for <i>transport</i> or <i>destination</i> unless you
 
303
              Note  1: do not use $<i>number</i> regular expression sub-
 
304
              stitutions for <i>transport</i> or <i>destination</i> unless  you
298
305
              know that the information has a trusted origin.
299
306
 
300
 
              Note 2: this  action  overrides  the  <a href="postconf.5.html">main.cf</a>  <b><a href="postconf.5.html#content_filter">con</a>-</b>
301
 
              <b><a href="postconf.5.html#content_filter">tent_filter</a></b>  setting, and affects all recipients of
302
 
              the message.  In  the  case  that  multiple  <b>FILTER</b>
 
307
              Note  2:  this  action  overrides  the <a href="postconf.5.html">main.cf</a> <b><a href="postconf.5.html#content_filter">con</a>-</b>
 
308
              <b><a href="postconf.5.html#content_filter">tent_filter</a></b> setting, and affects all recipients  of
 
309
              the  message.  In  the  case  that  multiple <b>FILTER</b>
303
310
              actions fire, only the last one is executed.
304
311
 
305
 
              Note  3:  the  purpose  of the FILTER command is to
306
 
              override message routing.  To override the  recipi-
307
 
              ent's  <i>transport</i>  but not the next-hop <i>destination</i>,
308
 
              specify an empty filter  <i>destination</i>  (Postfix  2.7
 
312
              Note 3: the purpose of the  FILTER  command  is  to
 
313
              override  message routing.  To override the recipi-
 
314
              ent's <i>transport</i> but not the  next-hop  <i>destination</i>,
 
315
              specify  an  empty  filter <i>destination</i> (Postfix 2.7
309
316
              and later), or specify a <i>transport:destination</i> that
310
 
              delivers  through  a  different  Postfix   instance
311
 
              (Postfix  2.6 and earlier). Other options are using
312
 
              the recipient-dependent <b><a href="postconf.5.html#transport_maps">transport_maps</a></b> or the  sen-
 
317
              delivers   through  a  different  Postfix  instance
 
318
              (Postfix 2.6 and earlier). Other options are  using
 
319
              the  recipient-dependent <b><a href="postconf.5.html#transport_maps">transport_maps</a></b> or the sen-
313
320
              der-dependent   <b><a href="postconf.5.html#sender_dependent_default_transport_maps">sender_dependent_default_transport</a>-</b>
314
321
              <b><a href="postconf.5.html#sender_dependent_default_transport_maps">_maps</a></b> features.
315
322
 
316
323
              This feature is available in Postfix 2.0 and later.
317
324
 
318
325
       <b>HOLD</b> <i>optional text...</i>
319
 
              Place  the message on the <b>hold</b> queue, where it will
320
 
              sit until someone either deletes it or releases  it
321
 
              for  delivery.  Log the optional text if specified,
 
326
              Place the message on the <b>hold</b> queue, where it  will
 
327
              sit  until someone either deletes it or releases it
 
328
              for delivery.  Log the optional text if  specified,
322
329
              otherwise log a generic message.
323
330
 
324
 
              Mail that is placed on hold can  be  examined  with
325
 
              the  <a href="postcat.1.html"><b>postcat</b>(1)</a>  command,  and  can be destroyed or
 
331
              Mail  that  is  placed on hold can be examined with
 
332
              the <a href="postcat.1.html"><b>postcat</b>(1)</a> command, and  can  be  destroyed  or
326
333
              released with the <a href="postsuper.1.html"><b>postsuper</b>(1)</a> command.
327
334
 
328
 
              Note: use "<b>postsuper -r</b>" to release mail  that  was
329
 
              kept  on  hold for a significant fraction of <b>$<a href="postconf.5.html#maximal_queue_lifetime">maxi</a>-</b>
 
335
              Note:  use  "<b>postsuper -r</b>" to release mail that was
 
336
              kept on hold for a significant fraction  of  <b>$<a href="postconf.5.html#maximal_queue_lifetime">maxi</a>-</b>
330
337
              <b><a href="postconf.5.html#maximal_queue_lifetime">mal_queue_lifetime</a></b>  or  <b>$<a href="postconf.5.html#bounce_queue_lifetime">bounce_queue_lifetime</a></b>,  or
331
 
              longer.  Use "<b>postsuper -H</b>" only for mail that will
 
338
              longer. Use "<b>postsuper -H</b>" only for mail that  will
332
339
              not expire within a few delivery attempts.
333
340
 
334
 
              Note: this action currently affects all  recipients
 
341
              Note:  this action currently affects all recipients
335
342
              of the message.
336
343
 
337
344
              This feature is available in Postfix 2.0 and later.
338
345
 
339
346
       <b>PREPEND</b> <i>headername: headervalue</i>
340
 
              Prepend the specified message header  to  the  mes-
341
 
              sage.   When more than one PREPEND action executes,
342
 
              the first prepended header appears before the  sec-
 
347
              Prepend  the  specified  message header to the mes-
 
348
              sage.  When more than one PREPEND action  executes,
 
349
              the  first prepended header appears before the sec-
343
350
              ond etc. prepended header.
344
351
 
345
 
              Note:  this  action must execute before the message
346
 
              content is received; it cannot execute in the  con-
 
352
              Note: this action must execute before  the  message
 
353
              content  is received; it cannot execute in the con-
347
354
              text of <b><a href="postconf.5.html#smtpd_end_of_data_restrictions">smtpd_end_of_data_restrictions</a></b>.
348
355
 
349
356
              This feature is available in Postfix 2.1 and later.
350
357
 
351
358
       <b>REDIRECT</b> <i>user@domain</i>
352
 
              After the message is queued, send  the  message  to
 
359
              After  the  message  is queued, send the message to
353
360
              the  specified  address  instead  of  the  intended
354
361
              recipient(s).
355
362
 
356
 
              Note: this action overrides the FILTER action,  and
 
363
              Note:  this action overrides the FILTER action, and
357
364
              currently affects all recipients of the message.
358
365
 
359
366
              This feature is available in Postfix 2.1 and later.
360
367
 
361
368
       <b>WARN</b> <i>optional text...</i>
362
369
              Log a warning with the optional text, together with
363
 
              client  information  and  if  available, with helo,
 
370
              client information and  if  available,  with  helo,
364
371
              sender, recipient and protocol information.
365
372
 
366
373
              This feature is available in Postfix 2.1 and later.
367
374
 
368
375
<b>ENHANCED STATUS CODES</b>
369
 
       Postfix  version  2.3  and  later  support enhanced status
370
 
       codes as defined in <a href="http://tools.ietf.org/html/rfc3463">RFC 3463</a>.   When  an  enhanced  status
371
 
       code  is  specified  in  an access table, it is subject to
372
 
       modification. The  following  transformations  are  needed
373
 
       when  the  same  access  table  is  used for client, helo,
374
 
       sender, or  recipient  access  restrictions;  they  happen
 
376
       Postfix version 2.3  and  later  support  enhanced  status
 
377
       codes  as  defined  in  <a href="http://tools.ietf.org/html/rfc3463">RFC 3463</a>.  When an enhanced status
 
378
       code is specified in an access table,  it  is  subject  to
 
379
       modification.  The  following  transformations  are needed
 
380
       when the same access  table  is  used  for  client,  helo,
 
381
       sender,  or  recipient  access  restrictions;  they happen
375
382
       regardless of whether Postfix replies to a MAIL FROM, RCPT
376
383
       TO or other SMTP command.
377
384
 
378
 
       <b>o</b>      When a sender address matches a REJECT action,  the
379
 
              Postfix  SMTP server will transform a recipient DSN
380
 
              status (e.g., 4.1.1-4.1.6) into  the  corresponding
 
385
       <b>o</b>      When  a sender address matches a REJECT action, the
 
386
              Postfix SMTP server will transform a recipient  DSN
 
387
              status  (e.g.,  4.1.1-4.1.6) into the corresponding
381
388
              sender DSN status, and vice versa.
382
389
 
383
 
       <b>o</b>      When   non-address  information  matches  a  REJECT
384
 
              action (such as the HELO command  argument  or  the
385
 
              client  hostname/address),  the Postfix SMTP server
386
 
              will transform a sender  or  recipient  DSN  status
387
 
              into   a  generic  non-address  DSN  status  (e.g.,
 
390
       <b>o</b>      When  non-address  information  matches  a   REJECT
 
391
              action  (such  as  the HELO command argument or the
 
392
              client hostname/address), the Postfix  SMTP  server
 
393
              will  transform  a  sender  or recipient DSN status
 
394
              into  a  generic  non-address  DSN  status   (e.g.,
388
395
              4.0.0).
389
396
 
390
397
<b>REGULAR EXPRESSION TABLES</b>
391
 
       This section describes how the table lookups  change  when
 
398
       This  section  describes how the table lookups change when
392
399
       the table is given in the form of regular expressions. For
393
 
       a description of regular expression lookup  table  syntax,
 
400
       a  description  of regular expression lookup table syntax,
394
401
       see <a href="regexp_table.5.html"><b>regexp_table</b>(5)</a> or <a href="pcre_table.5.html"><b>pcre_table</b>(5)</a>.
395
402
 
396
 
       Each  pattern  is  a regular expression that is applied to
 
403
       Each pattern is a regular expression that  is  applied  to
397
404
       the entire string being looked up. Depending on the appli-
398
 
       cation,  that  string  is  an  entire  client hostname, an
 
405
       cation, that string  is  an  entire  client  hostname,  an
399
406
       entire client IP address, or an entire mail address. Thus,
400
407
       no  parent  domain  or  parent  network  search  is  done,
401
 
       <i>user@domain</i> mail addresses are not broken  up  into  their
 
408
       <i>user@domain</i>  mail  addresses  are not broken up into their
402
409
       <i>user@</i> and <i>domain</i> constituent parts, nor is <i>user+foo</i> broken
403
410
       up into <i>user</i> and <i>foo</i>.
404
411
 
405
 
       Patterns are applied in the order as specified in the  ta-
406
 
       ble,  until  a  pattern  is  found that matches the search
 
412
       Patterns  are applied in the order as specified in the ta-
 
413
       ble, until a pattern is  found  that  matches  the  search
407
414
       string.
408
415
 
409
 
       Actions are the same as with indexed  file  lookups,  with
410
 
       the  additional feature that parenthesized substrings from
 
416
       Actions  are  the  same as with indexed file lookups, with
 
417
       the additional feature that parenthesized substrings  from
411
418
       the pattern can be interpolated as <b>$1</b>, <b>$2</b> and so on.
412
419
 
413
420
<b>TCP-BASED TABLES</b>
414
 
       This section describes how the table lookups  change  when
 
421
       This  section  describes how the table lookups change when
415
422
       lookups are directed to a TCP-based server. For a descrip-
416
423
       tion of the TCP client/server lookup protocol, see <a href="tcp_table.5.html"><b>tcp_ta-</b></a>
417
424
       <a href="tcp_table.5.html"><b>ble</b>(5)</a>.  This feature is not available up to and including
418
425
       Postfix version 2.4.
419
426
 
420
 
       Each lookup operation uses the entire query  string  once.
421
 
       Depending  on  the  application,  that string is an entire
 
427
       Each  lookup  operation uses the entire query string once.
 
428
       Depending on the application, that  string  is  an  entire
422
429
       client hostname, an entire client IP address, or an entire
423
 
       mail  address.   Thus,  no parent domain or parent network
424
 
       search is done, <i>user@domain</i> mail addresses are not  broken
425
 
       up  into  their <i>user@</i> and <i>domain</i> constituent parts, nor is
 
430
       mail address.  Thus, no parent domain  or  parent  network
 
431
       search  is done, <i>user@domain</i> mail addresses are not broken
 
432
       up into their <i>user@</i> and <i>domain</i> constituent parts,  nor  is
426
433
       <i>user+foo</i> broken up into <i>user</i> and <i>foo</i>.
427
434
 
428
435
       Actions are the same as with indexed file lookups.
429
436
 
430
437
<b>EXAMPLE</b>
431
 
       The following example uses an indexed file,  so  that  the
432
 
       order  of  table entries does not matter. The example per-
433
 
       mits access by the client at address 1.2.3.4  but  rejects
434
 
       all  other  clients  in 1.2.3.0/24. Instead of <b>hash</b> lookup
435
 
       tables, some systems use <b>dbm</b>.  Use the  command  "<b>postconf</b>
436
 
       <b>-m</b>"  to  find  out  what lookup tables Postfix supports on
 
438
       The  following  example  uses an indexed file, so that the
 
439
       order of table entries does not matter. The  example  per-
 
440
       mits  access  by the client at address 1.2.3.4 but rejects
 
441
       all other clients in 1.2.3.0/24. Instead  of  <b>hash</b>  lookup
 
442
       tables,  some  systems use <b>dbm</b>.  Use the command "<b>postconf</b>
 
443
       <b>-m</b>" to find out what lookup  tables  Postfix  supports  on
437
444
       your system.
438
445
 
439
446
       /etc/postfix/<a href="postconf.5.html">main.cf</a>:
444
451
           1.2.3   REJECT
445
452
           1.2.3.4 OK
446
453
 
447
 
       Execute the command  "<b>postmap  /etc/postfix/access</b>"  after
 
454
       Execute  the  command  "<b>postmap /etc/postfix/access</b>" after
448
455
       editing the file.
449
456
 
450
457
<b>BUGS</b>
451
 
       The  table format does not understand quoting conventions.
 
458
       The table format does not understand quoting  conventions.
452
459
 
453
460
<b>SEE ALSO</b>
454
461
       <a href="postmap.1.html">postmap(1)</a>, Postfix lookup table manager
461
468
       <a href="DATABASE_README.html">DATABASE_README</a>, Postfix lookup table overview
462
469
 
463
470
<b>LICENSE</b>
464
 
       The  Secure  Mailer  license must be distributed with this
 
471
       The Secure Mailer license must be  distributed  with  this
465
472
       software.
466
473
 
467
474
<b>AUTHOR(S)</b>