Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 KB | None | 0 0
  1. ## main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  3.  
  4. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  5. biff = no
  6.  
  7. # appending .domain is the MUA's job.
  8. append_dot_mydomain = no
  9.  
  10. # Uncomment the next line to generate "delayed mail" warnings
  11. #delay_warning_time = 4h
  12.  
  13. myhostname = cobra.tkfast.com
  14. alias_maps = hash:/etc/aliases
  15. alias_database = hash:/etc/aliases
  16. myorigin = /etc/mailname
  17. mydestination = cobra.tkfast.com, localhost.tkfast.com, localhost
  18. relayhost =
  19. mynetworks = 127.0.0.0/8, 24.248.156.0/24
  20. mailbox_command = procmail -a "$EXTENSION"
  21. mailbox_size_limit = 0
  22. recipient_delimiter =
  23. inet_interfaces = all
  24. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
  25. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
  26. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  27. virtual_mailbox_base = /home/vmail
  28. virtual_uid_maps = static:5000
  29. virtual_gid_maps = static:5000
  30. smtpd_sasl_auth_enable = yes
  31. broken_sasl_auth_clients = yes
  32. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  33. smtpd_use_tls = yes
  34. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  35. smtpd_tls_key_file = /etc/postfix/smtpd.key
  36. content_filter = amavis:[127.0.0.1]:10024
  37. receive_override_options = no_address_mappings
  38.  
  39. ## mysql-virtual_forwardings.cf
  40. user = provider_admin
  41. password = ******
  42. dbname = provider
  43. table = forwardings
  44. select_field = destination
  45. where_field = source
  46. hosts = 127.0.0.1
  47.  
  48. ## mysql-virtual_email2email.cf
  49. user = provider_admin
  50. password = 7wOagIu1
  51. dbname = provider
  52. table = users
  53. select_field = email
  54. where_field = email
  55. hosts = 127.0.0.1
  56.  
  57. ## master.cf
  58. #
  59. # Postfix master process configuration file. Each logical line
  60. # describes how a Postfix daemon program should be run.
  61. #
  62. # A logical line starts with non-whitespace, non-comment text.
  63. # Empty lines and whitespace-only lines are ignored, as are comment
  64. # lines whose first non-whitespace character is a `#'.
  65. # A line that starts with whitespace continues a logical line.
  66. #
  67. # The fields that make up each line are described below. A "-" field
  68. # value requests that a default value be used for that field.
  69. #
  70. # Service: any name that is valid for the specified transport type
  71. # (the next field). With INET transports, a service is specified as
  72. # host:port. The host part (and colon) may be omitted. Either host
  73. # or port may be given in symbolic form or in numeric form. Examples
  74. # for the SMTP server: localhost:smtp receives mail via the loopback
  75. # interface only; 10025 receives mail on port 10025.
  76. #
  77. # Transport type: "inet" for Internet sockets, "unix" for UNIX-domain
  78. # sockets, "fifo" for named pipes.
  79. #
  80. # Private: whether or not access is restricted to the mail system.
  81. # Default is private service. Internet (inet) sockets can't be private.
  82. #
  83. # Unprivileged: whether the service runs with root privileges or as
  84. # the owner of the Postfix system (the owner name is controlled by the
  85. # mail_owner configuration variable in the main.cf file). Only the
  86. # pipe, virtual and local delivery daemons require privileges.
  87. #
  88. # Chroot: whether or not the service runs chrooted to the mail queue
  89. # directory (pathname is controlled by the queue_directory configuration
  90. # variable in the main.cf file). Presently, all Postfix daemons can run
  91. # chrooted, except for the pipe, virtual and local delivery daemons.
  92. # The proxymap server can run chrooted, but doing so defeats most of
  93. # the purpose of having that service in the first place.
  94. # The files in the examples/chroot-setup subdirectory describe how
  95. # to set up a Postfix chroot environment for your type of machine.
  96. #
  97. # Wakeup time: automatically wake up the named service after the
  98. # specified number of seconds. A ? at the end of the wakeup time
  99. # field requests that wake up events be sent only to services that
  100. # are actually being used. Specify 0 for no wakeup. Presently, only
  101. # the pickup, queue manager and flush daemons need a wakeup timer.
  102. #
  103. # Max procs: the maximum number of processes that may execute this
  104. # service simultaneously. Default is to use a globally configurable
  105. # limit (the default_process_limit configuration parameter in main.cf).
  106. # Specify 0 for no process count limit.
  107. #
  108. # Command args: the command to be executed. The command name is
  109. # relative to the Postfix program directory (pathname is controlled by
  110. # the daemon_directory configuration variable). Adding one or more
  111. # -v options turns on verbose logging for that service; adding a -D
  112. # option enables symbolic debugging (see the debugger_command variable
  113. # in the main.cf configuration file). See individual command man pages
  114. # for specific command-line options, if any.
  115. #
  116. # General main.cf options can be overridden for specific services.
  117. # To override one or more main.cf options, specify them as arguments
  118. # below, preceding each option by "-o". There must be no whitespace
  119. # in the option itself (separate multiple values for an option by
  120. # commas).
  121. #
  122. # In order to use the "uucp" message tranport below, set up entries
  123. # in the transport table.
  124. #
  125. # In order to use the "cyrus" message transport below, configure it
  126. # in main.cf as the mailbox_transport.
  127. #
  128. # SPECIFY ONLY PROGRAMS THAT ARE WRITTEN TO RUN AS POSTFIX DAEMONS.
  129. # ALL DAEMONS SPECIFIED HERE MUST SPEAK A POSTFIX-INTERNAL PROTOCOL.
  130. #
  131. # DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES.
  132. #
  133. # ==========================================================================
  134. # service type private unpriv chroot wakeup maxproc command args
  135. # (yes) (yes) (yes) (never) (100)
  136. # ==========================================================================
  137. smtp inet n - - - - smtpd
  138. #submission inet n - - - - smtpd
  139. # -o smtpd_etrn_restrictions=reject
  140. #628 inet n - - - - qmqpd
  141. pickup fifo n - - 60 1 pickup
  142. cleanup unix n - - - 0 cleanup
  143. qmgr fifo n - - 300 1 qmgr
  144. #qmgr fifo n - - 300 1 oqmgr
  145. rewrite unix - - - - - trivial-rewrite
  146. bounce unix - - - - 0 bounce
  147. defer unix - - - - 0 bounce
  148. trace unix - - - - 0 bounce
  149. verify unix - - - - 1 verify
  150. flush unix n - - 1000? 0 flush
  151. proxymap unix - - n - - proxymap
  152. smtp unix - - - - - smtp
  153. relay unix - - - - - smtp
  154. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  155. showq unix n - - - - showq
  156. error unix - - - - - error
  157. local unix - n n - - local
  158. virtual unix - n n - - virtual
  159. lmtp unix - - n - - lmtp
  160. anvil unix - - n - 1 anvil
  161. #
  162. # Interfaces to non-Postfix software. Be sure to examine the manual
  163. # pages of the non-Postfix software to find out what options it wants.
  164. #
  165. # maildrop. See the Postfix MAILDROP_README file for details.
  166. #
  167. maildrop unix - n n - - pipe
  168. flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  169. uucp unix - n n - - pipe
  170. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  171. ifmail unix - n n - - pipe
  172. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  173. bsmtp unix - n n - - pipe
  174. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
  175. scalemail-backend unix - n n - 2 pipe
  176. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  177.  
  178. # only used by postfix-tls
  179. #tlsmgr fifo - - n 300 1 tlsmgr
  180. #smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
  181. #587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
  182.  
  183.  
  184. amavis unix - - - - 2 smtp
  185. -o smtp_data_done_timeout=1200
  186. -o smtp_send_xforward_command=yes
  187.  
  188. 127.0.0.1:10025 inet n - - - - smtpd
  189. -o content_filter=
  190. -o local_recipient_maps=
  191. -o relay_recipient_maps=
  192. -o smtpd_restriction_classes=
  193. -o smtpd_client_restrictions=
  194. -o smtpd_helo_restrictions=
  195. -o smtpd_sender_restrictions=
  196. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  197. -o mynetworks=127.0.0.0/8
  198. -o strict_rfc821_envelopes=yes
  199. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement