Advertisement
Guest User

Untitled

a guest
Mar 29th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.41 KB | None | 0 0
  1. smtpd_banner = $myhostname ESMTP $mail_name powered by Easy Hosting Control Panel (ehcp) on Ubuntu, www.ehcp.net
  2. biff = no
  3.  
  4. append_dot_mydomain = no
  5.  
  6. readme_directory = /usr/share/doc/postfix
  7.  
  8. # TLS parameters
  9. smtpd_tls_cert_file = /etc/ssl/domain.tld/domain.tld.crt
  10. smtpd_tls_key_file = /etc/ssl/domain.tld/domain.tld.key
  11. smtpd_tls_CAfile = /etc/ssl/domain.tld/ca.pem
  12. smtpd_use_tls = yes
  13. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  14. smtpd_tls_loglevel = 1
  15. smtpd_tls_received_header = yes
  16. smtpd_tls_session_cache_timeout = 3600s
  17. smtpd_tls_mandatory_protocols=!SSLv2, !SSLv3
  18. smtpd_security_level = encrypt
  19. tls_random_source = dev:/dev/urandom
  20.  
  21. myhostname = domain.tld
  22. alias_maps = hash:/etc/aliases
  23. alias_database = hash:/etc/aliases
  24. myorigin = /etc/mailname
  25. mydestination = localhost, xxx.xxx.xxx.xxx
  26. relayhost =
  27. mynetworks = 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/16, 10.0.0.0/8, xxx.xxx.xxx.0/24, xxx.xxx.xxx.0/24
  28. mailbox_command = procmail -a "$EXTENSION"
  29. mailbox_size_limit = 0
  30. recipient_delimiter =
  31. debug_peer_list =
  32. debug_peer_level = 1
  33. disable_vrfy_command = yes
  34. inet_protocols = ipv4
  35. inet_interfaces = all
  36. smtpd_destination_concurrency_limit = 2
  37. smtpd_destination_rate_delay = 1s
  38. smtpd_extra_recipient_limit = 10
  39. smtpd_error_sleep_time = 1s
  40. smtpd_soft_error_limit = 10
  41. smtpd_hard_error_limit = 20
  42.  
  43. virtual_alias_domains =
  44. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
  45. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  46. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  47. virtual_mailbox_base = /home/vmail
  48. virtual_uid_maps = static:5000
  49. virtual_gid_maps = static:5000
  50. virtual_create_maildirsize = yes
  51. virtual_mailbox_extended = yes
  52. virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
  53. virtual_mailbox_limit_override = yes
  54. virtual_maildir_limit_message = "The user you are trying to reach is over quota."
  55. virtual_overquota_bounce = yes
  56. virtual_mailbox_limit = 0
  57. virtual_message_limit = 0
  58. mailbox_size_limit = 0
  59. message_size_limit = 0
  60. default_process_limit = 3
  61. sender_canonical_maps =
  62. transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
  63. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $mynetworks $virtual_mailbox_limit_maps $transport_maps
  64.  
  65. # SASL Authentication
  66. smtpd_sasl_auth_enable = yes
  67. smtpd_sasl_security_options = noanonymous
  68. broken_sasl_auth_clients = yes
  69. smtpd_tls_auth_only = yes
  70.  
  71. # milters
  72. content_filter = smtp-amavis:127.0.0.1:10024
  73. milter_protocol = 2
  74. milter_default_action = accept
  75. smtpd_milters = inet:localhost:8891
  76. non_smtpd_milters = $smtpd_milters
  77.  
  78. #
  79. # Postfix master process configuration file. For details on the format
  80. # of the file, see the master(5) manual page (command: "man 5 master" or
  81. # on-line: http://www.postfix.org/master.5.html).
  82. #
  83. # Do not forget to execute "postfix reload" after editing this file.
  84. #
  85. # ==========================================================================
  86. # service type private unpriv chroot wakeup maxproc command + args
  87. # (yes) (yes) (yes) (never) (100)
  88. # ==========================================================================
  89. smtp inet n - - - - smtpd
  90. #smtp inet n - - - 1 postscreen
  91. #smtpd pass - - - - - smtpd
  92. #dnsblog unix - - - - 0 dnsblog
  93. #tlsproxy unix - - - - 0 tlsproxy
  94. submission inet n - - - - smtpd
  95. -o syslog_name=postfix/submission
  96. -o smtpd_tls_security_level=encrypt
  97. -o smtpd_sasl_auth_enable=yes
  98. # -o smtpd_reject_unlisted_recipient=no
  99. # -o smtpd_client_restrictions=$mua_client_restrictions
  100. # -o smtpd_helo_restrictions=$mua_helo_restrictions
  101. # -o smtpd_sender_restrictions=$mua_sender_restrictions
  102. # -o smtpd_recipient_restrictions=
  103. # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  104. # -o milter_macro_daemon_name=ORIGINATING
  105. smtps inet n - - - - smtpd
  106. -o syslog_name=postfix/smtps
  107. -o smtpd_tls_wrappermode=yes
  108. -o smtpd_sasl_auth_enable=yes
  109. # -o smtpd_reject_unlisted_recipient=no
  110. # -o smtpd_client_restrictions=$mua_client_restrictions
  111. # -o smtpd_helo_restrictions=$mua_helo_restrictions
  112. # -o smtpd_sender_restrictions=$mua_sender_restrictions
  113. # -o smtpd_recipient_restrictions=
  114. # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  115. # -o milter_macro_daemon_name=ORIGINATING
  116. #628 inet n - - - - qmqpd
  117. pickup unix n - - 60 1 pickup
  118. -o content_filter=
  119. -o receive_override_options=no_header_body_checks
  120. cleanup unix n - - - 0 cleanup
  121. qmgr unix n - n 300 1 qmgr
  122. #qmgr unix n - n 300 1 oqmgr
  123. tlsmgr unix - - - 1000? 1 tlsmgr
  124. rewrite unix - - - - - trivial-rewrite
  125. bounce unix - - - - 0 bounce
  126. defer unix - - - - 0 bounce
  127. trace unix - - - - 0 bounce
  128. verify unix - - - - 1 verify
  129. flush unix n - - 1000? 0 flush
  130. proxymap unix - - n - - proxymap
  131. proxywrite unix - - n - 1 proxymap
  132. smtp unix - - - - - smtp
  133. relay unix - - - - - smtp
  134. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  135. showq unix n - - - - showq
  136. error unix - - - - - error
  137. retry unix - - - - - error
  138. discard unix - - - - - discard
  139. local unix - n n - - local
  140. virtual unix - n n - - virtual
  141. lmtp unix - - - - - lmtp
  142. anvil unix - - - - 1 anvil
  143. scache unix - - - - 1 scache
  144. #
  145. # ====================================================================
  146. # Interfaces to non-Postfix software. Be sure to examine the manual
  147. # pages of the non-Postfix software to find out what options it wants.
  148. #
  149. # Many of the following services use the Postfix pipe(8) delivery
  150. # agent. See the pipe(8) man page for information about ${recipient}
  151. # and other message envelope options.
  152. # ====================================================================
  153. #
  154. # maildrop. See the Postfix MAILDROP_README file for details.
  155. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  156. #
  157. maildrop unix - n n - - pipe
  158. flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  159. #
  160. # ====================================================================
  161. #
  162. # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
  163. #
  164. # Specify in cyrus.conf:
  165. # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
  166. #
  167. # Specify in main.cf one or more of the following:
  168. # mailbox_transport = lmtp:inet:localhost
  169. # virtual_transport = lmtp:inet:localhost
  170. #
  171. # ====================================================================
  172. #
  173. # Cyrus 2.1.5 (Amos Gouaux)
  174. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  175. #
  176. #cyrus unix - n n - - pipe
  177. # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
  178. #
  179. # ====================================================================
  180. # Old example of delivery via Cyrus.
  181. #
  182. #old-cyrus unix - n n - - pipe
  183. # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
  184. #
  185. # ====================================================================
  186. #
  187. # See the Postfix UUCP_README file for configuration details.
  188. #
  189. uucp unix - n n - - pipe
  190. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  191. #
  192. # Other external delivery methods.
  193. #
  194. ifmail unix - n n - - pipe
  195. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  196. bsmtp unix - n n - - pipe
  197. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  198. scalemail-backend unix - n n - 2 pipe
  199. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  200. mailman unix - n n - - pipe
  201. flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  202. ${nexthop} ${user}
  203.  
  204.  
  205. # ehcp: autoresponder code:
  206. ehcp_autoreply unix - n n - - pipe
  207. user=vmail
  208. argv=/tmp/ehcp/misc/autoreply.php $sender $recipient
  209.  
  210. # ehcp: autoresponder code:
  211. ehcp_autoreply unix - n n - - pipe
  212. user=vmail
  213. argv=/var/www/new/ehcp/misc/autoreply.php $sender $recipient
  214.  
  215. spfpolicy unix - n n - - spawn
  216. user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd-spf-perl
  217. greypolicy unix - n n - - spawn
  218. user=nobody argv=/usr/bin/perl /usr/local/libexec/postfix/greylist.pl
  219.  
  220. smtp-amavis unix - - - - 2 smtp
  221. -o smtp_data_done_timeout=1200
  222. -o smtp_send_xforward_command=yes
  223. -o disable_dns_lookups=yes
  224. -o max_use=20
  225.  
  226. 127.0.0.1:10025 inet n - - - - smtpd
  227. -o content_filter=
  228. -o local_recipient_maps=
  229. -o relay_recipient_maps=
  230. -o smtpd_restriction_classes=
  231. -o smtpd_delay_reject=no
  232. -o smtpd_client_restrictions=permit_mynetworks,reject
  233. -o smtpd_helo_restrictions=
  234. -o smtpd_sender_restrictions=
  235. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  236. -o smtpd_data_restrictions=reject_unauth_pipelining
  237. -o smtpd_end_of_data_restrictions=
  238. -o mynetworks=127.0.0.0/8
  239. -o smtpd_error_sleep_time=0
  240. -o smtpd_soft_error_limit=1001
  241. -o smtpd_hard_error_limit=1000
  242. -o smtpd_client_connection_count_limit=0
  243. -o smtpd_client_connection_rate_limit=0
  244. -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement