Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. cat /etc/pmta/config
  2. #
  3. # $Id: config 14069 2012-08-13 16:13:16Z juan $
  4. # Sample PowerMTA configuration file
  5. #
  6.  
  7. #
  8. # E-mail address for mailer's administrator (please specify!)
  9. #
  10. #postmaster you@your.domain
  11.  
  12. #
  13. # IP address(es) and port(s) on which to listen for incoming SMTP connections
  14. #
  15. smtp-listener 0/0:2525 # listens on all local IPs
  16.  
  17. #
  18. # Settings per source IP address (for incoming SMTP connections)
  19. #
  20. #<source 127.0.0.1>
  21. # always-allow-relaying yes # allow feeding from 127.0.0.1
  22. # process-x-virtual-mta yes # allow selection of a virtual MTA
  23. # max-message-size unlimited
  24. # smtp-service yes # allow SMTP service
  25. #</source>
  26.  
  27. <source 186.123.5.163> # matches all
  28. always-allow-relaying yes # allow feeding from 127.0.0.1
  29. process-x-virtual-mta yes # allow selection of a virtual MTA
  30. max-message-size unlimited
  31. smtp-service yes # allow SMTP service
  32. log-connections yes
  33. log-commands yes # WARNING: verbose!
  34. log-data no # WARNING: even more verbose!
  35. </source>
  36.  
  37. #
  38. # SMTP users (authenticated via SMTP AUTH)
  39. #
  40. #<smtp-user API>
  41. # password "changeme"
  42. #</smtp-user>
  43.  
  44. #
  45. # Settings per outgoing domain
  46. #
  47. <domain *>
  48. max-smtp-out 800
  49. route 5.181.234.238:22400
  50. retry-after 10m
  51. </domain>
  52. #
  53. #<domain test.port25.com>
  54. # max-smtp-out 1
  55. # log-connections yes
  56. # log-commands yes # WARNING: verbose!
  57. # log-resolution no # WARNING: verbose!
  58. # log-data no # WARNING: even more verbose!
  59. #</domain>
  60.  
  61. #<domain *>
  62. # max-smtp-out 20 # max. connections *per domain*
  63. # bounce-after 4d12h # 4 days, 12 hours
  64. # retry-after 10m # 10 minutes
  65. #</domain>
  66.  
  67. #
  68. # Port used for HTTP management interface
  69. #
  70. http-mgmt-port 8080
  71.  
  72. #
  73. # IP addresses allowed to access the HTTP management interface, one
  74. # per line
  75. #
  76. #http-access 127.0.0.1 monitor
  77. #http-access ::1 monitor
  78. #http-access 10.1.0.10 none
  79. http-access 181.46.137.14 admin
  80. http-access 181.46.137.14 monitor
  81.  
  82. #
  83. # Whether to run the PowerMTA deamon as root
  84. #
  85. run-as-root no
  86.  
  87. #
  88. # Logging file name
  89. #
  90. log-file /var/log/pmta/pmta.log # logrotate is used for rotation
  91.  
  92. #
  93. # Accounting file(s)
  94. #
  95. <acct-file /var/log/pmta/acct.csv>
  96. # move-to /opt/myapp/pmta-acct # configure as fit for your application
  97. move-interval 5m
  98. max-size 50M
  99. delete-after 8d
  100. </acct-file>
  101.  
  102. #
  103. # Spool directories
  104. #
  105. <spool /var/spool/pmta>
  106. deliver-only no
  107. </spool>
  108.  
  109. # EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement