smtprelay.ini 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. ; smtprelay configuration
  2. ;
  3. ; All config parameters can also be provided as environment
  4. ; variables in uppercase and the prefix "SMTPRELAY_".
  5. ; (eg. SMTPRELAY_LOGFILE, SMTPRELAY_LOG_FORMAT)
  6. ; Logfile (blank/default is stderr)
  7. ;logfile =
  8. ; Log format: default, plain (no timestamp), json
  9. ;log_format = default
  10. ; Log level: panic, fatal, error, warn, info, debug, trace
  11. ;log_level = info
  12. ; Hostname for this SMTP server
  13. ;hostname = localhost.localdomain
  14. ; Welcome message for clients
  15. ;welcome_msg = <hostname> ESMTP ready.
  16. ; Listen on the following addresses for incoming
  17. ; unencrypted connections.
  18. ;listen = 127.0.0.1:25 [::1]:25
  19. ; STARTTLS and TLS are also supported but need a
  20. ; SSL certificate and key.
  21. ;listen = tls://127.0.0.1:465 tls://[::1]:465
  22. ;listen = starttls://127.0.0.1:587 starttls://[::1]:587
  23. ;local_cert = smtpd.pem
  24. ;local_key = smtpd.key
  25. ; Enforce encrypted connection on STARTTLS ports before
  26. ; accepting mails from client.
  27. ;local_forcetls = false
  28. ; Only use remotes where FROM EMail address in received
  29. ; EMail matches remote_sender.
  30. ;strict_sender = false
  31. ; Socket timeout for read operations
  32. ; Duration string as sequence of decimal numbers,
  33. ; each with optional fraction and a unit suffix.
  34. ; Valid time units are "ns", "us", "ms", "s", "m", "h".
  35. ;read_timeout = 60s
  36. ; Socket timeout for write operations
  37. ; Duration string as sequence of decimal numbers,
  38. ; each with optional fraction and a unit suffix.
  39. ; Valid time units are "ns", "us", "ms", "s", "m", "h".
  40. ;write_timeout = 60s
  41. ; Socket timeout for DATA command
  42. ; Duration string as sequence of decimal numbers,
  43. ; each with optional fraction and a unit suffix.
  44. ; Valid time units are "ns", "us", "ms", "s", "m", "h".
  45. ;data_timeout = 5m
  46. ; Max concurrent connections, use -1 to disable
  47. ;max_connections = 100
  48. ; Max message size in bytes
  49. ;max_message_size = 10240000
  50. ; Max RCPT TO calls for each envelope
  51. ;max_recipients = 100
  52. ; Networks that are allowed to send mails to us
  53. ; Defaults to localhost. If set to "", then any address is allowed.
  54. ;allowed_nets = 127.0.0.0/8 ::1/128
  55. ; Regular expression for valid FROM EMail addresses
  56. ; If set to "", then any sender is permitted.
  57. ; Example: ^(.*)@localhost.localdomain$
  58. ;allowed_sender =
  59. ; Regular expression for valid TO EMail addresses
  60. ; If set to "", then any recipient is permitted.
  61. ; Example: ^(.*)@localhost.localdomain$
  62. ;allowed_recipients =
  63. ; File which contains username and password used for
  64. ; authentication before they can send mail.
  65. ; File format: username bcrypt-hash [email[,email[,...]]]
  66. ; username: The SMTP auth username
  67. ; bcrypt-hash: The bcrypt hash of the pasword
  68. ; email: Comma-separated list of allowed "from" addresses:
  69. ; - If omitted, user can send from any address
  70. ; - If @domain.com is given, user can send from any address @domain.com
  71. ; - Otherwise, email address must match exactly (case-insensitive)
  72. ; E.g. "[email protected],@appsrv.example.com"
  73. ;allowed_users =
  74. ; Relay all mails to this SMTP servers.
  75. ; If not set, mails are discarded.
  76. ;
  77. ; Format:
  78. ; protocol://[user[:password]@][netloc][:port][/remote_sender][?param1=value1&...]
  79. ;
  80. ; protocol: smtp (unencrypted), smtps (TLS), starttls (STARTTLS)
  81. ; user: Username for authentication
  82. ; password: Password for authentication
  83. ; remote_sender: Email address to use as FROM
  84. ; params:
  85. ; skipVerify: "true" or empty to prevent ssl verification of remote server's certificate
  86. ; auth: "login" to use LOGIN authentication
  87. ; GMail
  88. ;remotes = starttls://user:[email protected]:587
  89. ; Mailgun.org
  90. ;remotes = starttls://user:[email protected]:587
  91. ; Mailjet.com
  92. ;remotes = starttls://user:[email protected]:587
  93. ; Ignore remote host certificates
  94. ;remotes = starttls://user:pass@server:587?skipVerify
  95. ; Login Authentication method on outgoing SMTP server
  96. ;remotes = smtp://user:pass@server:2525?auth=login
  97. ; Sender e-mail address on outgoing SMTP server
  98. ;remotes = smtp://user:pass@server:2525/[email protected]?auth=login
  99. ; Multiple remotes, space delimited
  100. ;remotes = smtp://127.0.0.1:1025 starttls://user:[email protected]:587
  101. ; Pipe messages to external command
  102. ;command = /usr/local/bin/script