Advertisement
SipriusPT

main.cf

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