|
| 1 | +# |
| 2 | +# Postfix master process configuration file. For details on the format |
| 3 | +# of the file, see the master(5) manual page (command: "man 5 master" or |
| 4 | +# on-line: http://www.postfix.org/master.5.html). |
| 5 | +# |
| 6 | +# Do not forget to execute "postfix reload" after editing this file. |
| 7 | +# |
| 8 | +# ========================================================================== |
| 9 | +# service type private unpriv chroot wakeup maxproc command + args |
| 10 | +# (yes) (yes) (yes) (never) (100) |
| 11 | +# ========================================================================== |
| 12 | +<% if @master_smtp -%> |
| 13 | +<%= @master_smtp %> |
| 14 | +<% elsif @smtp_listen == 'all' -%> |
| 15 | +smtp inet n - n - - smtpd |
| 16 | +<% else -%> |
| 17 | + <%- (@smtp_listen.is_a?(Array) ? @smtp_listen : @smtp_listen.split(' ')).each do |listen_address| -%> |
| 18 | +<%= listen_address %>:smtp inet n - <%= @jail %> - - smtpd |
| 19 | + <%- end -%> |
| 20 | +<% end -%> |
| 21 | +<% if @master_submission -%> |
| 22 | +<%= @master_submission %> |
| 23 | +<% end -%> |
| 24 | +<% if @master_smtps -%> |
| 25 | +<%= @master_smtps %> |
| 26 | +<% end -%> |
| 27 | +#smtp inet n - n - - smtpd |
| 28 | +#amavis unix - - n - 4 smtp |
| 29 | +# -o smtp_data_done_timeout=1200 |
| 30 | +# -o smtp_send_xforward_command=yes |
| 31 | +# -o disable_dns_lookups=yes |
| 32 | +# -o max_use=20 |
| 33 | +#smtp inet n - n - 1 postscreen |
| 34 | +#smtpd pass - - n - - smtpd |
| 35 | +#dnsblog unix - - n - 0 dnsblog |
| 36 | +#tlsproxy unix - - n - 0 tlsproxy |
| 37 | +#submission inet n - n - - smtpd |
| 38 | +# -o syslog_name=postfix/submission |
| 39 | +# -o smtpd_tls_security_level=encrypt |
| 40 | +# -o smtpd_sasl_auth_enable=yes |
| 41 | +# -o smtpd_reject_unlisted_recipient=no |
| 42 | +# -o smtpd_client_restrictions=$mua_client_restrictions |
| 43 | +# -o smtpd_helo_restrictions=$mua_helo_restrictions |
| 44 | +# -o smtpd_sender_restrictions=$mua_sender_restrictions |
| 45 | +# -o smtpd_recipient_restrictions= |
| 46 | +# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject |
| 47 | +# -o milter_macro_daemon_name=ORIGINATING |
| 48 | +#smtps inet n - n - - smtpd |
| 49 | +# -o syslog_name=postfix/smtps |
| 50 | +# -o smtpd_tls_wrappermode=yes |
| 51 | +# -o content_filter=smtp:[127.0.0.1]:10024 |
| 52 | +# -o smtpd_sasl_auth_enable=yes |
| 53 | +# -o smtpd_reject_unlisted_recipient=no |
| 54 | +# -o smtpd_client_restrictions=$mua_client_restrictions |
| 55 | +# -o smtpd_helo_restrictions=$mua_helo_restrictions |
| 56 | +# -o smtpd_sender_restrictions=$mua_sender_restrictions |
| 57 | +# -o smtpd_recipient_restrictions= |
| 58 | +# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject |
| 59 | +# -o milter_macro_daemon_name=ORIGINATING |
| 60 | +#628 inet n - n - - qmqpd |
| 61 | +pickup fifo n - n 60 1 pickup |
| 62 | +cleanup unix n - n - 0 cleanup |
| 63 | +qmgr fifo n - n 300 1 qmgr |
| 64 | +#qmgr fifo n - n 300 1 oqmgr |
| 65 | +#tlsmgr unix - - n 1000? 1 tlsmgr |
| 66 | +rewrite unix - - n - - trivial-rewrite |
| 67 | +bounce unix - - n - 0 <%= @master_bounce_command %> |
| 68 | +defer unix - - n - 0 <%= @master_defer_command %> |
| 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 smtp_helo_timeout=5 -o smtp_connect_timeout=5 |
| 77 | +showq unix n - n - - showq |
| 78 | +error unix - - n - - error |
| 79 | +retry unix - - n - - error |
| 80 | +discard unix - - n - - discard |
| 81 | +local unix - n n - - local |
| 82 | +virtual unix - n n - - virtual |
| 83 | +lmtp unix - - n - - lmtp |
| 84 | +anvil unix - - n - 1 anvil |
| 85 | +#localhost:10025 inet n - n - - smtpd |
| 86 | +# -o content_filter= |
| 87 | +# -o smtpd_delay_reject=no |
| 88 | +# -o smtpd_client_restrictions=permit_mynetworks,reject |
| 89 | +# -o smtpd_helo_restrictions= |
| 90 | +# -o smtpd_sender_restrictions= |
| 91 | +# -o smtpd_recipient_restrictions=permit_mynetworks,reject |
| 92 | +# -o smtpd_data_restrictions=reject_unauth_pipelining |
| 93 | +# -o smtpd_end_of_data_restrictions= |
| 94 | +# -o smtpd_restriction_classes= |
| 95 | +# -o mynetworks=127.0.0.0/8 |
| 96 | +# -o smtpd_error_sleep_time=0 |
| 97 | +# -o smtpd_soft_error_limit=1001 |
| 98 | +# -o smtpd_hard_error_limit=1000 |
| 99 | +# -o smtpd_client_connection_count_limit=0 |
| 100 | +# -o smtpd_client_connection_rate_limit=0 |
| 101 | +# -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings |
| 102 | +# -o local_header_rewrite_clients= |
| 103 | +# -o local_recipient_maps= |
| 104 | +# -o relay_recipient_maps= |
| 105 | +scache unix - - n - 1 scache |
| 106 | +# |
| 107 | +# ==================================================================== |
| 108 | +# Interfaces to non-Postfix software. Be sure to examine the manual |
| 109 | +# pages of the non-Postfix software to find out what options it wants. |
| 110 | +# |
| 111 | +# Many of the following services use the Postfix pipe(8) delivery |
| 112 | +# agent. See the pipe(8) man page for information about ${recipient} |
| 113 | +# and other message envelope options. |
| 114 | +# ==================================================================== |
| 115 | +# |
| 116 | +# maildrop. See the Postfix MAILDROP_README file for details. |
| 117 | +# Also specify in main.cf: maildrop_destination_recipient_limit=1 |
| 118 | +# |
| 119 | +#maildrop unix - n n - - pipe |
| 120 | +# flags=DRhu user=<%= @mail_user %> argv=/usr/local/bin/maildrop -d ${recipient} |
| 121 | +# |
| 122 | +# ==================================================================== |
| 123 | +# |
| 124 | +# Recent Cyrus versions can use the existing "lmtp" master.cf entry. |
| 125 | +# |
| 126 | +# Specify in cyrus.conf: |
| 127 | +# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 |
| 128 | +# |
| 129 | +# Specify in main.cf one or more of the following: |
| 130 | +# mailbox_transport = lmtp:inet:localhost |
| 131 | +# virtual_transport = lmtp:inet:localhost |
| 132 | +# |
| 133 | +# ==================================================================== |
| 134 | +# |
| 135 | +# Cyrus 2.1.5 (Amos Gouaux) |
| 136 | +# Also specify in main.cf: cyrus_destination_recipient_limit=1 |
| 137 | +# |
| 138 | +#cyrus unix - n n - - pipe |
| 139 | +# user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} |
| 140 | +# |
| 141 | +# ==================================================================== |
| 142 | +# |
| 143 | +# Old example of delivery via Cyrus. |
| 144 | +# |
| 145 | +#old-cyrus unix - n n - - pipe |
| 146 | +# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} |
| 147 | +# |
| 148 | +# ==================================================================== |
| 149 | +# |
| 150 | +# See the Postfix UUCP_README file for configuration details. |
| 151 | +# |
| 152 | +#uucp unix - n n - - pipe |
| 153 | +# flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) |
| 154 | +# |
| 155 | +# ==================================================================== |
| 156 | +# |
| 157 | +# Other external delivery methods. |
| 158 | +# |
| 159 | +#ifmail unix - n n - - pipe |
| 160 | +# flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) |
| 161 | +# |
| 162 | +#bsmtp unix - n n - - pipe |
| 163 | +# flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient |
| 164 | +# |
| 165 | +#scalemail-backend unix - n n - 2 pipe |
| 166 | +# flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store |
| 167 | +# ${nexthop} ${user} ${extension} |
| 168 | +# |
| 169 | +#mailman unix - n n - - pipe |
| 170 | +# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py |
| 171 | +# ${nexthop} ${user} |
| 172 | +# |
| 173 | +#procmail unix - n n - - pipe |
| 174 | +# flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} |
| 175 | +# |
| 176 | +#dovecot unix - n n - - pipe |
| 177 | +# flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient} |
| 178 | +# |
0 commit comments