مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-18 22:09:46 +00:00
feat: new configuration system (and schema) (#2819)
هذا الالتزام موجود في:
@@ -8,5 +8,5 @@ If you didn't request this, you can ignore this e-mail.
|
||||
|
||||
Thanks,
|
||||
|
||||
<%= Postal.smtp_from_name %>
|
||||
<%= Postal.smtp_from_address %>
|
||||
<%= Postal::Config.smtp.from_name %>
|
||||
<%= Postal::Config.smtp.from_address %>
|
||||
|
||||
@@ -13,5 +13,5 @@ You can view more information about this server at:
|
||||
|
||||
Thanks,
|
||||
|
||||
<%= Postal.smtp_from_name %>
|
||||
<%= Postal.smtp_from_address %>
|
||||
<%= Postal::Config.smtp.from_name %>
|
||||
<%= Postal::Config.smtp.from_address %>
|
||||
|
||||
@@ -13,5 +13,5 @@ You can view more information about this server at:
|
||||
|
||||
Thanks,
|
||||
|
||||
<%= Postal.smtp_from_name %>
|
||||
<%= Postal.smtp_from_address %>
|
||||
<%= Postal::Config.smtp.from_name %>
|
||||
<%= Postal::Config.smtp.from_address %>
|
||||
|
||||
@@ -8,5 +8,5 @@ Reason: <%= @server.actual_suspension_reason %>
|
||||
|
||||
Thanks,
|
||||
|
||||
<%= Postal.smtp_from_name %>
|
||||
<%= Postal.smtp_from_address %>
|
||||
<%= Postal::Config.smtp.from_name %>
|
||||
<%= Postal::Config.smtp.from_address %>
|
||||
|
||||
@@ -10,5 +10,5 @@ If you don't agree, just ignore this e-mail.
|
||||
|
||||
Thanks,
|
||||
|
||||
<%= Postal.smtp_from_name %>
|
||||
<%= Postal.smtp_from_address %>
|
||||
<%= Postal::Config.smtp.from_name %>
|
||||
<%= Postal::Config.smtp.from_address %>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
%p.pageContent__text
|
||||
You need to add a TXT record at the apex/root of your domain (@) with the following
|
||||
content. If you already send mail from another service, you may just need to add
|
||||
<b>include:#{Postal.config.dns.spf_include}</b> to your existing record.
|
||||
<b>include:#{Postal::Config.dns.spf_include}</b> to your existing record.
|
||||
%pre.codeBlock.u-margin= @domain.spf_record
|
||||
|
||||
%h3.pageContent__subTitle DKIM Record
|
||||
@@ -78,7 +78,7 @@
|
||||
%p.pageContent__text
|
||||
This is optional but we recommend adding this to improve deliverability. You should add
|
||||
a <b>CNAME</b> record at <b>#{@domain.return_path_domain}</b> to point to the hostname below.
|
||||
%pre.codeBlock.u-margin= Postal.config.dns.return_path
|
||||
%pre.codeBlock.u-margin= Postal::Config.dns.return_path_domain
|
||||
|
||||
|
||||
%h3.pageContent__subTitle MX Records
|
||||
@@ -99,6 +99,4 @@
|
||||
If you wish to receive incoming e-mail for this domain, you need to add the following MX records
|
||||
to the domain. You don't have to do this and we'll only tell you if they're set up or not. Both
|
||||
records should be priority <b>10</b>.
|
||||
%pre.codeBlock.u-margin= Postal.config.dns.mx_records.join("\n")
|
||||
|
||||
|
||||
%pre.codeBlock.u-margin= Postal::Config.dns.mx_records.join("\n")
|
||||
|
||||
@@ -36,6 +36,5 @@
|
||||
%dl.pageContent__definitions
|
||||
%dt MX Records
|
||||
%dd
|
||||
- for mx in Postal.config.dns.mx_records
|
||||
- for mx in Postal::Config.dns.mx_records
|
||||
%p.pageContent__definitionCode= mx
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
Mail servers can be enabled to send mail from any domain by the administrator.
|
||||
%li
|
||||
If a message cannot be delivered, the system will not send you a bounce message but dispatch a webhook (if you set one up).
|
||||
If a message delivery fails but can be retried, the system will try #{Postal.config.general.maximum_delivery_attempts} times to deliver it before giving up.
|
||||
If a message delivery fails but can be retried, the system will try #{Postal::Config.postal.default_maximum_delivery_attempts} times to deliver it before giving up.
|
||||
.u-margin
|
||||
%h2.pageContent__subTitle Sending using SMTP
|
||||
%p.pageContent__text
|
||||
@@ -27,10 +27,10 @@
|
||||
%dl.pageContent__definitions
|
||||
%dt SMTP Server Address
|
||||
%dd
|
||||
%p.pageContent__definitionCode= Postal.config.dns.smtp_server_hostname
|
||||
%p.pageContent__definitionCode= Postal::Config.postal.smtp_hostname
|
||||
%dt Port
|
||||
%dd
|
||||
%p.pageContent__definitionCode= Postal.config.smtp_server.port
|
||||
%p.pageContent__definitionCode= Postal::Config.smtp_server.default_port
|
||||
%p.pageContent__definitionText
|
||||
The SMTP service supports STARTTLS if you wish to send messages securely. Be aware that security
|
||||
cannot guaranteed all the way to their final destination.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
- else
|
||||
%p.pageContent__intro.u-margin
|
||||
When messages cannot be delivered, addresses are added to the suppression list which stops
|
||||
future messages to the same recipient being sent through. Recipients are removed from the list after #{Postal.config.general.suppression_list_removal_delay} days.
|
||||
future messages to the same recipient being sent through. Recipients are removed from the list after #{Postal::Config.postal.default_suppression_list_automatic_removal_days} days.
|
||||
%ul.suppressionList
|
||||
- for suppression in @suppressions[:records]
|
||||
%li.suppressionList__item
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
= f.select :domain_id, domain_options_for_select(@server, @track_domain.domain), {}, :class => 'input input--select routeNameInput__domain', :disabled => @track_domain.persisted?
|
||||
%p.fieldSet__text
|
||||
This is the domain that requests for tracked links will be directed through when you use click tracking. We recommend using something like
|
||||
<b>click.yourdomain.com</b>. You will need to a CNAME record to point to <b>#{Postal.config.dns.track_domain}</b> for this once you've added it.
|
||||
<b>click.yourdomain.com</b>. You will need to a CNAME record to point to <b>#{Postal::Config.dns.track_domain}</b> for this once you've added it.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :ssl_enabled, :class => 'fieldSet__label'
|
||||
@@ -47,4 +47,3 @@
|
||||
|
||||
.fieldSetSubmit.buttonSet
|
||||
= f.submit @track_domain.new_record? ? "Create Track Domain" : "Save Track Domain", :class => 'button button--positive js-form-submit'
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم