Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: master.cf,v 1.12 2025/02/25 19:15:41 christos Exp $
      2 #
      3 #
      4 # Postfix master process configuration file.  For details on the format
      5 # of the file, see the master(5) manual page (command: "man 5 master" or
      6 # on-line: https://www.postfix.org/master.5.html).
      7 #
      8 # Do not forget to execute "postfix reload" after editing this file.
      9 #
     10 # ==========================================================================
     11 # service type  private unpriv  chroot  wakeup  maxproc command + args
     12 #               (yes)   (yes)   (no)    (never) (100)
     13 # ==========================================================================
     14 #smtp      inet  n       -       n       -       -       smtpd
     15 #smtp      inet  n       -       n       -       1       postscreen
     16 #smtpd     pass  -       -       n       -       -       smtpd
     17 #dnsblog   unix  -       -       n       -       0       dnsblog
     18 #tlsproxy  unix  -       -       n       -       0       tlsproxy
     19 # Choose one: enable submission for loopback clients only, or for any client.
     20 #127.0.0.1:submission inet n -   n       -       -       smtpd
     21 #submission inet n       -       n       -       -       smtpd
     22 #  -o syslog_name=postfix/submission
     23 #  -o smtpd_forbid_unauth_pipelining=no
     24 #  -o smtpd_tls_security_level=encrypt
     25 #  -o smtpd_sasl_auth_enable=yes
     26 #  -o smtpd_tls_auth_only=yes
     27 #  -o local_header_rewrite_clients=static:all
     28 #  -o smtpd_hide_client_session=yes
     29 #  -o smtpd_reject_unlisted_recipient=no
     30 #     Instead of specifying complex smtpd_<xxx>_restrictions here,
     31 #     specify "smtpd_<xxx>_restrictions=$mua_<xxx>_restrictions"
     32 #     here, and specify mua_<xxx>_restrictions in main.cf (where
     33 #     "<xxx>" is "client", "helo", "sender", "relay", or "recipient").
     34 #  -o smtpd_client_restrictions=
     35 #  -o smtpd_helo_restrictions=
     36 #  -o smtpd_sender_restrictions=
     37 #  -o smtpd_relay_restrictions=
     38 #  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
     39 #  -o milter_macro_daemon_name=ORIGINATING
     40 # Choose one: enable submissions for loopback clients only, or for any client.
     41 #127.0.0.1:submissions inet n  -       n       -       -       smtpd
     42 #submissions     inet  n       -       n       -       -       smtpd
     43 #  -o syslog_name=postfix/submissions
     44 #  -o smtpd_forbid_unauth_pipelining=no
     45 #  -o smtpd_tls_wrappermode=yes
     46 #  -o smtpd_sasl_auth_enable=yes
     47 #  -o local_header_rewrite_clients=static:all
     48 #  -o smtpd_hide_client_session=yes
     49 #  -o smtpd_reject_unlisted_recipient=no
     50 #     Instead of specifying complex smtpd_<xxx>_restrictions here,
     51 #     specify "smtpd_<xxx>_restrictions=$mua_<xxx>_restrictions"
     52 #     here, and specify mua_<xxx>_restrictions in main.cf (where
     53 #     "<xxx>" is "client", "helo", "sender", "relay", or "recipient").
     54 #  -o smtpd_client_restrictions=
     55 #  -o smtpd_helo_restrictions=
     56 #  -o smtpd_sender_restrictions=
     57 #  -o smtpd_relay_restrictions=
     58 #  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
     59 #  -o milter_macro_daemon_name=ORIGINATING
     60 #628       inet  n       -       n       -       -       qmqpd
     61 pickup    unix  n       -       n       60      1       pickup
     62 cleanup   unix  n       -       n       -       0       cleanup
     63 qmgr      unix  n       -       n       300     1       qmgr
     64 #qmgr     unix  n       -       n       300     1       oqmgr
     65 tlsmgr    unix  -       -       n       1000?   1       tlsmgr
     66 rewrite   unix  -       -       n       -       -       trivial-rewrite
     67 bounce    unix  -       -       n       -       0       bounce
     68 defer     unix  -       -       n       -       0       bounce
     69 trace     unix  -       -       n       -       0       bounce
     70 verify    unix  -       -       n       -       1       verify
     71 flush     unix  n       -       n       1000?   0       flush
     72 proxymap  unix  -       -       n       -       -       proxymap
     73 proxywrite unix -       -       n       -       1       proxymap
     74 smtp      unix  -       -       n       -       -       smtp
     75 relay     unix  -       -       n       -       -       smtp
     76         -o syslog_name=${multi_instance_name?{$multi_instance_name}:{postfix}}/$service_name
     77 #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
     78 showq     unix  n       -       n       -       -       showq
     79 error     unix  -       -       n       -       -       error
     80 retry     unix  -       -       n       -       -       error
     81 discard   unix  -       -       n       -       -       discard
     82 local     unix  -       n       n       -       -       local
     83 virtual   unix  -       n       n       -       -       virtual
     84 lmtp      unix  -       -       n       -       -       lmtp
     85 anvil     unix  -       -       n       -       1       anvil
     86 scache    unix  -       -       n       -       1       scache
     87 postlog   unix-dgram n  -       n       -       1       postlogd
     88 #
     89 # ====================================================================
     90 # Interfaces to non-Postfix software. Be sure to examine the manual
     91 # pages of the non-Postfix software to find out what options it wants.
     92 #
     93 # Many of the following services use the Postfix pipe(8) delivery
     94 # agent.  See the pipe(8) man page for information about ${recipient}
     95 # and other message envelope options.
     96 # ====================================================================
     97 #
     98 # maildrop. See the Postfix MAILDROP_README file for details.
     99 # Also specify in main.cf: maildrop_destination_recipient_limit=1
    100 #
    101 #maildrop  unix  -       n       n       -       -       pipe
    102 #  flags=DRXhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    103 #
    104 # ====================================================================
    105 #
    106 # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    107 #
    108 # Specify in cyrus.conf:
    109 #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    110 #
    111 # Specify in main.cf one or more of the following:
    112 #  mailbox_transport = lmtp:inet:localhost
    113 #  virtual_transport = lmtp:inet:localhost
    114 #
    115 # ====================================================================
    116 #
    117 # Cyrus 2.1.5 (Amos Gouaux)
    118 # Also specify in main.cf: cyrus_destination_recipient_limit=1
    119 #
    120 #cyrus     unix  -       n       n       -       -       pipe
    121 #  flags=DRX user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    122 #
    123 # ====================================================================
    124 #
    125 # Old example of delivery via Cyrus.
    126 #
    127 #old-cyrus unix  -       n       n       -       -       pipe
    128 #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    129 #
    130 # ====================================================================
    131 #
    132 # See the Postfix UUCP_README file for configuration details.
    133 #
    134 #uucp      unix  -       n       n       -       -       pipe
    135 #  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    136 #
    137 # ====================================================================
    138 #
    139 # Other external delivery methods.
    140 #
    141 #ifmail    unix  -       n       n       -       -       pipe
    142 #  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    143 #
    144 #bsmtp     unix  -       n       n       -       -       pipe
    145 #  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    146 #
    147 #scalemail-backend unix -       n       n       -       2       pipe
    148 #  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
    149 #  ${nexthop} ${user} ${extension}
    150 #
    151 #mailman   unix  -       n       n       -       -       pipe
    152 #  flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
    153 #  ${nexthop} ${user}
    154