Guest User

main.cf

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