Guest User

Przem4S

a guest
Mar 6th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.74 KB | None | 0 0
  1. # Global Postfix configuration file. This file lists only a subset
  2. # of all parameters. For the syntax, and for a complete parameter
  3. # list, see the postconf(5) manual page (command: "man 5 postconf").
  4. #
  5. # For common configuration examples, see BASIC_CONFIGURATION_README
  6. # and STANDARD_CONFIGURATION_README. To find these documents, use
  7. # the command "postconf html_directory readme_directory", or go to
  8. # http://www.postfix.org/.
  9. #
  10. # For best results, change no more than 2-3 parameters at a time,
  11. # and test if Postfix still works after every change.
  12.  
  13. # SOFT BOUNCE
  14. #
  15. # The soft_bounce parameter provides a limited safety net for
  16. # testing. When soft_bounce is enabled, mail will remain queued that
  17. # would otherwise bounce. This parameter disables locally-generated
  18. # bounces, and prevents the SMTP server from rejecting mail permanently
  19. # (by changing 5xx replies into 4xx replies). However, soft_bounce
  20. # is no cure for address rewriting mistakes or mail routing mistakes.
  21. #
  22. soft_bounce = no
  23.  
  24. # SASL CONFIG
  25. #
  26. broken_sasl_auth_clients = yes
  27. smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
  28. smtpd_recipient_restrictions =
  29. permit_mynetworks,
  30. permit_sasl_authenticated,
  31. reject_non_fqdn_hostname,
  32. reject_non_fqdn_sender,
  33. reject_non_fqdn_recipient,
  34. reject_unauth_destination,
  35. reject_unauth_pipelining,
  36. reject_invalid_hostname,
  37. reject_rbl_client list.dsbl.org,
  38. reject_rbl_client bl.spamcop.net,
  39. reject_rbl_client sbl-xbl.spamhaus.org
  40. smtpd_sasl_auth_enable = yes
  41. smtpd_sasl_authenticated_header = yes
  42. smtpd_sasl_local_domain = $myhostname
  43. smtpd_sasl_security_options = noanonymous
  44. smtpd_sasl_type = dovecot
  45. smtpd_sasl_path = private/auth
  46.  
  47. # TLS CONFIG
  48. #
  49. smtp_use_tls = yes
  50. smtpd_use_tls = yes
  51. smtp_tls_note_starttls_offer = yes
  52. smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
  53. smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
  54. smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
  55. smtpd_tls_loglevel = 0
  56. smtpd_tls_received_header = yes
  57. smtpd_tls_session_cache_timeout = 3600s
  58. tls_random_source = dev:/dev/urandom
  59.  
  60. # MySQL Configuration
  61. #
  62. virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
  63. virtual_gid_maps = static:125
  64. virtual_mailbox_base = /usr/local/virtual
  65. virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
  66. virtual_mailbox_limit = 51200000
  67. virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
  68. virtual_minimum_uid = 125
  69. virtual_transport = virtual
  70. virtual_uid_maps = static:125
  71.  
  72. # Additional for quota support
  73. #
  74. virtual_mailbox_limit_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
  75. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
  76. $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
  77. $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
  78. $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
  79. $virtual_mailbox_limit_maps
  80. virtual_mailbox_limit_override = yes
  81. virtual_maildir_limit_message = Sorry, this user has overdrawn their diskspace quota. Please try again later.
  82. virtual_overquota_bounce = yes
  83.  
  84. #dovecot_destination_recipient_limit = 1
  85. #virtual_transport = dovecot
  86.  
  87. # Maia-Mailguard
  88. #
  89. content_filter=smtp-amavis:[127.0.0.1]:10024
  90.  
  91. # LOCAL PATHNAME INFORMATION
  92. #
  93. # The queue_directory specifies the location of the Postfix queue.
  94. # This is also the root directory of Postfix daemons that run chrooted.
  95. # See the files in examples/chroot-setup for setting up Postfix chroot
  96. # environments on different UNIX systems.
  97. #
  98. queue_directory = /var/spool/postfix
  99.  
  100. # The command_directory parameter specifies the location of all
  101. # postXXX commands.
  102. #
  103. command_directory = /usr/local/sbin
  104.  
  105. # The daemon_directory parameter specifies the location of all Postfix
  106. # daemon programs (i.e. programs listed in the master.cf file). This
  107. # directory must be owned by root.
  108. #
  109. daemon_directory = /usr/local/libexec/postfix
  110.  
  111. # The data_directory parameter specifies the location of Postfix-writable
  112. # data files (caches, random numbers). This directory must be owned
  113. # by the mail_owner account (see below).
  114. #
  115. data_directory = /var/db/postfix
  116.  
  117. # QUEUE AND PROCESS OWNERSHIP
  118. #
  119. # The mail_owner parameter specifies the owner of the Postfix queue
  120. # and of most Postfix daemon processes. Specify the name of a user
  121. # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
  122. # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
  123. # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
  124. # USER.
  125. #
  126. mail_owner = postfix
  127.  
  128. # The default_privs parameter specifies the default rights used by
  129. # the local delivery agent for delivery to external file or command.
  130. # These rights are used in the absence of a recipient user context.
  131. # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
  132. #
  133. #default_privs = nobody
  134.  
  135. # INTERNET HOST AND DOMAIN NAMES
  136. #
  137. # The myhostname parameter specifies the internet hostname of this
  138. # mail system. The default is to use the fully-qualified domain name
  139. # from gethostname(). $myhostname is used as a default value for many
  140. # other configuration parameters.
  141. #
  142. myhostname = mail.legenza.pl
  143. #myhostname = virtual.domain.tld
  144.  
  145. # The mydomain parameter specifies the local internet domain name.
  146. # The default is to use $myhostname minus the first component.
  147. # $mydomain is used as a default value for many other configuration
  148. # parameters.
  149. #
  150. mydomain = legenza.pl
  151.  
  152. # SENDING MAIL
  153. #
  154. # The myorigin parameter specifies the domain that locally-posted
  155. # mail appears to come from. The default is to append $myhostname,
  156. # which is fine for small sites. If you run a domain with multiple
  157. # machines, you should (1) change this to $mydomain and (2) set up
  158. # a domain-wide alias database that aliases each user to
  159. #
  160. # For the sake of consistency between sender and recipient addresses,
  161. # myorigin also specifies the default domain name that is appended
  162. # to recipient addresses that have no @domain part.
  163. #
  164. #myorigin = $myhostname
  165. #myorigin = $mydomain
  166.  
  167. # RECEIVING MAIL
  168.  
  169. # The inet_interfaces parameter specifies the network interface
  170. # addresses that this mail system receives mail on. By default,
  171. # the software claims all active interfaces on the machine. The
  172. # parameter also controls delivery of mail to user@[ip.address].
  173. #
  174. # See also the proxy_interfaces parameter, for network addresses that
  175. # are forwarded to us via a proxy or network address translator.
  176. #
  177. # Note: you need to stop/start Postfix when this parameter changes.
  178. #
  179. #inet_interfaces = all
  180. #inet_interfaces = $myhostname
  181. #inet_interfaces = $myhostname, localhost
  182.  
  183. # The proxy_interfaces parameter specifies the network interface
  184. # addresses that this mail system receives mail on by way of a
  185. # proxy or network address translation unit. This setting extends
  186. # the address list specified with the inet_interfaces parameter.
  187. #
  188. # You must specify your proxy/NAT addresses when your system is a
  189. # backup MX host for other domains, otherwise mail delivery loops
  190. # will happen when the primary MX host is down.
  191. #
  192. #proxy_interfaces =
  193. #proxy_interfaces = 1.2.3.4
  194.  
  195. # The mydestination parameter specifies the list of domains that this
  196. # machine considers itself the final destination for.
  197. #
  198. # These domains are routed to the delivery agent specified with the
  199. # local_transport parameter setting. By default, that is the UNIX
  200. # compatible delivery agent that lookups all recipients in /etc/passwd
  201. # and /etc/aliases or their equivalent.
  202. #
  203. # The default is $myhostname + localhost.$mydomain. On a mail domain
  204. # gateway, you should also include $mydomain.
  205. #
  206. # Do not specify the names of virtual domains - those domains are
  207. # specified elsewhere (see VIRTUAL_README).
  208. #
  209. # Do not specify the names of domains that this machine is backup MX
  210. # host for. Specify those names via the relay_domains settings for
  211. # the SMTP server, or use permit_mx_backup if you are lazy (see
  212. # STANDARD_CONFIGURATION_README).
  213. #
  214. # The local machine is always the final destination for mail addressed
  215. # to user@[the.net.work.address] of an interface that the mail system
  216. # receives mail on (see the inet_interfaces parameter).
  217. #
  218. # Specify a list of host or domain names, /file/name or type:table
  219. # patterns, separated by commas and/or whitespace. A /file/name
  220. # pattern is replaced by its contents; a type:table is matched when
  221. # a name matches a lookup key (the right-hand side is ignored).
  222. # Continue long lines by starting the next line with whitespace.
  223. #
  224. # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
  225. #
  226. #mydestination = $mydomain, localhost
  227. #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  228. #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
  229. # mail.$mydomain, www.$mydomain, ftp.$mydomain
  230.  
  231. # REJECTING MAIL FOR UNKNOWN LOCAL USERS
  232. #
  233. # The local_recipient_maps parameter specifies optional lookup tables
  234. # with all names or addresses of users that are local with respect
  235. # to $mydestination, $inet_interfaces or $proxy_interfaces.
  236. #
  237. # If this parameter is defined, then the SMTP server will reject
  238. # mail for unknown local users. This parameter is defined by default.
  239. #
  240. # To turn off local recipient checking in the SMTP server, specify
  241. # local_recipient_maps = (i.e. empty).
  242. #
  243. # The default setting assumes that you use the default Postfix local
  244. # delivery agent for local delivery. You need to update the
  245. # local_recipient_maps setting if:
  246. #
  247. # - You define $mydestination domain recipients in files other than
  248. # /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
  249. # For example, you define $mydestination domain recipients in
  250. # the $virtual_mailbox_maps files.
  251. #
  252. # - You redefine the local delivery agent in master.cf.
  253. #
  254. # - You redefine the "local_transport" setting in main.cf.
  255. #
  256. # - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
  257. # feature of the Postfix local delivery agent (see local(8)).
  258. #
  259. # Details are described in the LOCAL_RECIPIENT_README file.
  260. #
  261. # Beware: if the Postfix SMTP server runs chrooted, you probably have
  262. # to access the passwd file via the proxymap service, in order to
  263. # overcome chroot restrictions. The alternative, having a copy of
  264. # the system passwd file in the chroot jail is just not practical.
  265. #
  266. # The right-hand side of the lookup tables is conveniently ignored.
  267. # In the left-hand side, specify a bare username, an @domain.tld
  268. # wild-card, or specify a [email protected] address.
  269. #
  270. #local_recipient_maps = unix:passwd.byname $alias_maps
  271. #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  272. #local_recipient_maps =
  273.  
  274. # The unknown_local_recipient_reject_code specifies the SMTP server
  275. # response code when a recipient domain matches $mydestination or
  276. # ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
  277. # and the recipient address or address local-part is not found.
  278. #
  279. # The default setting is 550 (reject mail) but it is safer to start
  280. # with 450 (try again later) until you are certain that your
  281. # local_recipient_maps settings are OK.
  282. #
  283. unknown_local_recipient_reject_code = 550
  284.  
  285. # TRUST AND RELAY CONTROL
  286.  
  287. # The mynetworks parameter specifies the list of "trusted" SMTP
  288. # clients that have more privileges than "strangers".
  289. #
  290. # In particular, "trusted" SMTP clients are allowed to relay mail
  291. # through Postfix. See the smtpd_recipient_restrictions parameter
  292. # in postconf(5).
  293. #
  294. # You can specify the list of "trusted" network addresses by hand
  295. # or you can let Postfix do it for you (which is the default).
  296. #
  297. # By default (mynetworks_style = subnet), Postfix "trusts" SMTP
  298. # clients in the same IP subnetworks as the local machine.
  299. # On Linux, this does works correctly only with interfaces specified
  300. # with the "ifconfig" command.
  301. #
  302. # Specify "mynetworks_style = class" when Postfix should "trust" SMTP
  303. # clients in the same IP class A/B/C networks as the local machine.
  304. # Don't do this with a dialup site - it would cause Postfix to "trust"
  305. # your entire provider's network. Instead, specify an explicit
  306. # mynetworks list by hand, as described below.
  307. #
  308. # Specify "mynetworks_style = host" when Postfix should "trust"
  309. # only the local machine.
  310. #
  311. #mynetworks_style = class
  312. #mynetworks_style = subnet
  313. mynetworks_style = host
  314.  
  315. # Alternatively, you can specify the mynetworks list by hand, in
  316. # which case Postfix ignores the mynetworks_style setting.
  317. #
  318. # Specify an explicit list of network/netmask patterns, where the
  319. # mask specifies the number of bits in the network part of a host
  320. # address.
  321. #
  322. # You can also specify the absolute pathname of a pattern file instead
  323. # of listing the patterns here. Specify type:table for table-based lookups
  324. # (the value on the table right-hand side is not used).
  325. #
  326. #mynetworks = 168.100.189.0/28, 127.0.0.0/8
  327. #mynetworks = $config_directory/mynetworks
  328. #mynetworks = hash:$config_directory/network_table
  329.  
  330. # The relay_domains parameter restricts what destinations this system will
  331. # relay mail to. See the smtpd_recipient_restrictions description in
  332. # postconf(5) for detailed information.
  333. #
  334. # By default, Postfix relays mail
  335. # - from "trusted" clients (IP address matches $mynetworks) to any destination,
  336. # - from "untrusted" clients to destinations that match $relay_domains or
  337. # subdomains thereof, except addresses with sender-specified routing.
  338. # The default relay_domains value is $mydestination.
  339. #
  340. # In addition to the above, the Postfix SMTP server by default accepts mail
  341. # that Postfix is final destination for:
  342. # - destinations that match $inet_interfaces or $proxy_interfaces,
  343. # - destinations that match $mydestination
  344. # - destinations that match $virtual_alias_domains,
  345. # - destinations that match $virtual_mailbox_domains.
  346. # These destinations do not need to be listed in $relay_domains.
  347. #
  348. # Specify a list of hosts or domains, /file/name patterns or type:name
  349. # lookup tables, separated by commas and/or whitespace. Continue
  350. # long lines by starting the next line with whitespace. A file name
  351. # is replaced by its contents; a type:name table is matched when a
  352. # (parent) domain appears as lookup key.
  353. #
  354. # NOTE: Postfix will not automatically forward mail for domains that
  355. # list this system as their primary or backup MX host. See the
  356. # permit_mx_backup restriction description in postconf(5).
  357. #
  358. relay_domains = proxy:mysql:/usr/local/etc/postfix/mysql_relay_domains_maps.cf
  359.  
  360. # INTERNET OR INTRANET
  361.  
  362. # The relayhost parameter specifies the default host to send mail to
  363. # when no entry is matched in the optional transport(5) table. When
  364. # no relayhost is given, mail is routed directly to the destination.
  365. #
  366. # On an intranet, specify the organizational domain name. If your
  367. # internal DNS uses no MX records, specify the name of the intranet
  368. # gateway host instead.
  369. #
  370. # In the case of SMTP, specify a domain, host, host:port, [host]:port,
  371. # [address] or [address]:port; the form [host] turns off MX lookups.
  372. #
  373. # If you're connected via UUCP, see also the default_transport parameter.
  374. #
  375. #relayhost = $mydomain
  376. #relayhost = [gateway.my.domain]
  377. #relayhost = [mailserver.isp.tld]
  378. #relayhost = uucphost
  379. #relayhost = [an.ip.add.ress]
  380.  
  381. # REJECTING UNKNOWN RELAY USERS
  382. #
  383. # The relay_recipient_maps parameter specifies optional lookup tables
  384. # with all addresses in the domains that match $relay_domains.
  385. #
  386. # If this parameter is defined, then the SMTP server will reject
  387. # mail for unknown relay users. This feature is off by default.
  388. #
  389. # The right-hand side of the lookup tables is conveniently ignored.
  390. # In the left-hand side, specify an @domain.tld wild-card, or specify
  391. # a [email protected] address.
  392. #
  393. #relay_recipient_maps = hash:$config_directory/relay_recipients
  394.  
  395. # INPUT RATE CONTROL
  396. #
  397. # The in_flow_delay configuration parameter implements mail input
  398. # flow control. This feature is turned on by default, although it
  399. # still needs further development (it's disabled on SCO UNIX due
  400. # to an SCO bug).
  401. #
  402. # A Postfix process will pause for $in_flow_delay seconds before
  403. # accepting a new message, when the message arrival rate exceeds the
  404. # message delivery rate. With the default 100 SMTP server process
  405. # limit, this limits the mail inflow to 100 messages a second more
  406. # than the number of messages delivered per second.
  407. #
  408. # Specify 0 to disable the feature. Valid delays are 0..10.
  409. #
  410. #in_flow_delay = 1s
  411.  
  412. # ADDRESS REWRITING
  413. #
  414. # The ADDRESS_REWRITING_README document gives information about
  415. # address masquerading or other forms of address rewriting including
  416. # username->Firstname.Lastname mapping.
  417.  
  418. # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
  419. #
  420. # The VIRTUAL_README document gives information about the many forms
  421. # of domain hosting that Postfix supports.
  422.  
  423. # "USER HAS MOVED" BOUNCE MESSAGES
  424. #
  425. # See the discussion in the ADDRESS_REWRITING_README document.
  426.  
  427. # TRANSPORT MAP
  428. #
  429. # See the discussion in the ADDRESS_REWRITING_README document.
  430. transport_maps = hash:/usr/local/etc/postfix/transport
  431. vacation_destination_recipient_limit = 1
  432.  
  433. # ALIAS DATABASE
  434. #
  435. # The alias_maps parameter specifies the list of alias databases used
  436. # by the local delivery agent. The default list is system dependent.
  437. #
  438. # On systems with NIS, the default is to search the local alias
  439. # database, then the NIS alias database. See aliases(5) for syntax
  440. # details.
  441. #
  442. # If you change the alias database, run "postalias /etc/aliases" (or
  443. # wherever your system stores the mail alias file), or simply run
  444. # "newaliases" to build the necessary DBM or DB file.
  445. #
  446. # It will take a minute or so before changes become visible. Use
  447. # "postfix reload" to eliminate the delay.
  448. #
  449. #alias_maps = dbm:/etc/aliases
  450. #alias_maps = hash:/etc/aliases
  451. #alias_maps = hash:/etc/aliases, nis:mail.aliases
  452. #alias_maps = netinfo:/aliases
  453.  
  454. # The alias_database parameter specifies the alias database(s) that
  455. # are built with "newaliases" or "sendmail -bi". This is a separate
  456. # configuration parameter, because alias_maps (see above) may specify
  457. # tables that are not necessarily all under control by Postfix.
  458. #
  459. #alias_database = dbm:/etc/aliases
  460. #alias_database = hash:/etc/aliases
  461. #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
  462.  
  463. # ADDRESS EXTENSIONS (e.g., user+foo)
  464. #
  465. # The recipient_delimiter parameter specifies the separator between
  466. # user names and address extensions (user+foo). See canonical(5),
  467. # local(8), relocated(5) and virtual(5) for the effects this has on
  468. # aliases, canonical, virtual, relocated and .forward file lookups.
  469. # Basically, the software tries user+foo and .forward+foo before
  470. # trying user and .forward.
  471. #
  472. #recipient_delimiter = +
  473.  
  474. # DELIVERY TO MAILBOX
  475. #
  476. # The home_mailbox parameter specifies the optional pathname of a
  477. # mailbox file relative to a user's home directory. The default
  478. # mailbox file is /var/spool/mail/user or /var/mail/user. Specify
  479. # "Maildir/" for qmail-style delivery (the / is required).
  480. #
  481. #home_mailbox = Mailbox
  482. #home_mailbox = Maildir/
  483.  
  484. # The mail_spool_directory parameter specifies the directory where
  485. # UNIX-style mailboxes are kept. The default setting depends on the
  486. # system type.
  487. #
  488. #mail_spool_directory = /var/mail
  489. #mail_spool_directory = /var/spool/mail
  490.  
  491. # The mailbox_command parameter specifies the optional external
  492. # command to use instead of mailbox delivery. The command is run as
  493. # the recipient with proper HOME, SHELL and LOGNAME environment settings.
  494. # Exception: delivery for root is done as $default_user.
  495. #
  496. # Other environment variables of interest: USER (recipient username),
  497. # EXTENSION (address extension), DOMAIN (domain part of address),
  498. # and LOCAL (the address localpart).
  499. #
  500. # Unlike other Postfix configuration parameters, the mailbox_command
  501. # parameter is not subjected to $parameter substitutions. This is to
  502. # make it easier to specify shell syntax (see example below).
  503. #
  504. # Avoid shell meta characters because they will force Postfix to run
  505. # an expensive shell process. Procmail alone is expensive enough.
  506. #
  507. # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
  508. # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
  509. #
  510. #mailbox_command = /some/where/procmail
  511. #mailbox_command = /some/where/procmail -a "$EXTENSION"
  512.  
  513. # The mailbox_transport specifies the optional transport in master.cf
  514. # to use after processing aliases and .forward files. This parameter
  515. # has precedence over the mailbox_command, fallback_transport and
  516. # luser_relay parameters.
  517. #
  518. # Specify a string of the form transport:nexthop, where transport is
  519. # the name of a mail delivery transport defined in master.cf. The
  520. # :nexthop part is optional. For more details see the sample transport
  521. # configuration file.
  522. #
  523. # NOTE: if you use this feature for accounts not in the UNIX password
  524. # file, then you must update the "local_recipient_maps" setting in
  525. # the main.cf file, otherwise the SMTP server will reject mail for
  526. # non-UNIX accounts with "User unknown in local recipient table".
  527. #
  528. # Cyrus IMAP over LMTP. Specify ``lmtpunix cmd="lmtpd"
  529. # listen="/var/imap/socket/lmtp" prefork=0'' in cyrus.conf.
  530. #mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
  531. #
  532. # Cyrus IMAP via command line. Uncomment the "cyrus...pipe" and
  533. # subsequent line in master.cf.
  534. #mailbox_transport = cyrus
  535.  
  536. # The fallback_transport specifies the optional transport in master.cf
  537. # to use for recipients that are not found in the UNIX passwd database.
  538. # This parameter has precedence over the luser_relay parameter.
  539. #
  540. # Specify a string of the form transport:nexthop, where transport is
  541. # the name of a mail delivery transport defined in master.cf. The
  542. # :nexthop part is optional. For more details see the sample transport
  543. # configuration file.
  544. #
  545. # NOTE: if you use this feature for accounts not in the UNIX password
  546. # file, then you must update the "local_recipient_maps" setting in
  547. # the main.cf file, otherwise the SMTP server will reject mail for
  548. # non-UNIX accounts with "User unknown in local recipient table".
  549. #
  550. #fallback_transport = lmtp:unix:/file/name
  551. #fallback_transport = cyrus
  552. #fallback_transport =
  553.  
  554. # The luser_relay parameter specifies an optional destination address
  555. # for unknown recipients. By default, mail for unknown@$mydestination,
  556. # unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
  557. # as undeliverable.
  558. #
  559. # The following expansions are done on luser_relay: $user (recipient
  560. # username), $shell (recipient shell), $home (recipient home directory),
  561. # $recipient (full recipient address), $extension (recipient address
  562. # extension), $domain (recipient domain), $local (entire recipient
  563. # localpart), $recipient_delimiter. Specify ${name?value} or
  564. # ${name:value} to expand value only when $name does (does not) exist.
  565. #
  566. # luser_relay works only for the default Postfix local delivery agent.
  567. #
  568. # NOTE: if you use this feature for accounts not in the UNIX password
  569. # file, then you must specify "local_recipient_maps =" (i.e. empty) in
  570. # the main.cf file, otherwise the SMTP server will reject mail for
  571. # non-UNIX accounts with "User unknown in local recipient table".
  572. #
  573. #luser_relay = [email protected]
  574. #luser_relay = [email protected]
  575. #luser_relay = admin+$local
  576.  
  577. # JUNK MAIL CONTROLS
  578. #
  579. # The controls listed here are only a very small subset. The file
  580. # SMTPD_ACCESS_README provides an overview.
  581.  
  582. # The header_checks parameter specifies an optional table with patterns
  583. # that each logical message header is matched against, including
  584. # headers that span multiple physical lines.
  585. #
  586. # By default, these patterns also apply to MIME headers and to the
  587. # headers of attached messages. With older Postfix versions, MIME and
  588. # attached message headers were treated as body text.
  589. #
  590. # For details, see "man header_checks".
  591. #
  592. #header_checks = regexp:$config_directory/header_checks
  593.  
  594. # FAST ETRN SERVICE
  595. #
  596. # Postfix maintains per-destination logfiles with information about
  597. # deferred mail, so that mail can be flushed quickly with the SMTP
  598. # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
  599. # See the ETRN_README document for a detailed description.
  600. #
  601. # The fast_flush_domains parameter controls what destinations are
  602. # eligible for this service. By default, they are all domains that
  603. # this server is willing to relay mail to.
  604. #
  605. #fast_flush_domains = $relay_domains
  606.  
  607. # SHOW SOFTWARE VERSION OR NOT
  608. #
  609. # The smtpd_banner parameter specifies the text that follows the 220
  610. # code in the SMTP server's greeting banner. Some people like to see
  611. # the mail version advertised. By default, Postfix shows no version.
  612. #
  613. # You MUST specify $myhostname at the start of the text. That is an
  614. # RFC requirement. Postfix itself does not care.
  615. #
  616. #smtpd_banner = $myhostname ESMTP $mail_name
  617. #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
  618.  
  619. # PARALLEL DELIVERY TO THE SAME DESTINATION
  620. #
  621. # How many parallel deliveries to the same user or domain? With local
  622. # delivery, it does not make sense to do massively parallel delivery
  623. # to the same user, because mailbox updates must happen sequentially,
  624. # and expensive pipelines in .forward files can cause disasters when
  625. # too many are run at the same time. With SMTP deliveries, 10
  626. # simultaneous connections to the same domain could be sufficient to
  627. # raise eyebrows.
  628. #
  629. # Each message delivery transport has its XXX_destination_concurrency_limit
  630. # parameter. The default is $default_destination_concurrency_limit for
  631. # most delivery transports. For the local delivery agent the default is 2.
  632.  
  633. #local_destination_concurrency_limit = 2
  634. #default_destination_concurrency_limit = 20
  635.  
  636. # DEBUGGING CONTROL
  637. #
  638. # The debug_peer_level parameter specifies the increment in verbose
  639. # logging level when an SMTP client or server host name or address
  640. # matches a pattern in the debug_peer_list parameter.
  641. #
  642. debug_peer_level = 2
  643.  
  644. # The debug_peer_list parameter specifies an optional list of domain
  645. # or network patterns, /file/name patterns or type:name tables. When
  646. # an SMTP client or server host name or address matches a pattern,
  647. # increase the verbose logging level by the amount specified in the
  648. # debug_peer_level parameter.
  649. #
  650. #debug_peer_list = 127.0.0.1
  651. #debug_peer_list = some.domain
  652.  
  653. # The debugger_command specifies the external command that is executed
  654. # when a Postfix daemon program is run with the -D option.
  655. #
  656. # Use "command .. & sleep 5" so that the debugger can attach before
  657. # the process marches on. If you use an X-based debugger, be sure to
  658. # set up your XAUTHORITY environment variable before starting Postfix.
  659. #
  660. debugger_command =
  661. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  662. ddd $daemon_directory/$process_name $process_id & sleep 5
  663.  
  664. # If you can't use X, use this to capture the call stack when a
  665. # daemon crashes. The result is in a file in the configuration
  666. # directory, and is named after the process name and the process ID.
  667. #
  668. # debugger_command =
  669. # PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
  670. # echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
  671. # >$config_directory/$process_name.$process_id.log & sleep 5
  672. #
  673. # Another possibility is to run gdb under a detached screen session.
  674. # To attach to the screen sesssion, su root and run "screen -r
  675. # <id_string>" where <id_string> uniquely matches one of the detached
  676. # sessions (from "screen -list").
  677. #
  678. # debugger_command =
  679. # PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
  680. # -dmS $process_name gdb $daemon_directory/$process_name
  681. # $process_id & sleep 1
  682.  
  683. # INSTALL-TIME CONFIGURATION INFORMATION
  684. #
  685. # The following parameters are used when installing a new Postfix version.
  686. #
  687. # sendmail_path: The full pathname of the Postfix sendmail command.
  688. # This is the Sendmail-compatible mail posting interface.
  689. #
  690. sendmail_path = /usr/local/sbin/sendmail
  691.  
  692. # newaliases_path: The full pathname of the Postfix newaliases command.
  693. # This is the Sendmail-compatible command to build alias databases.
  694. #
  695. newaliases_path = /usr/local/bin/newaliases
  696.  
  697. # mailq_path: The full pathname of the Postfix mailq command. This
  698. # is the Sendmail-compatible mail queue listing command.
  699. #
  700. mailq_path = /usr/local/bin/mailq
  701.  
  702. # setgid_group: The group for mail submission and queue management
  703. # commands. This must be a group name with a numerical group ID that
  704. # is not shared with other accounts, not even with the Postfix account.
  705. #
  706. setgid_group = maildrop
  707.  
  708. # html_directory: The location of the Postfix HTML documentation.
  709. #
  710. html_directory = /usr/local/share/doc/postfix
  711.  
  712. # manpage_directory: The location of the Postfix on-line manual pages.
  713. #
  714. manpage_directory = /usr/local/man
  715.  
  716. # sample_directory: The location of the Postfix sample configuration files.
  717. # This parameter is obsolete as of Postfix 2.1.
  718. #
  719. sample_directory = /usr/local/etc/postfix
  720.  
  721. # readme_directory: The location of the Postfix README files.
  722. #
  723. readme_directory = /usr/local/share/doc/postfix
  724. inet_protocols = ipv4
Advertisement
Add Comment
Please, Sign In to add comment