Postfix's Transport Encryption under Control of the User
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mail_template.html 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <html>
  2. <body>
  3. <div id="mail_body" style="padding: 10px;">
  4. <!-- Header -->
  5. <div id="header" style="margin: 0; padding: 0; background: #3f93ad; height: 5px;"></div>
  6. <p style="font-size: 14px; font-weight: bold;">Hi!</p>
  7. <p style="font-size: 14px;">This is your mail server. I'm afraid, but I couldn't send the following email to the mentioned recipients securely:</p>
  8. <ul>
  9. <li style='font-size: 14px;'>Recipient(s): {{ recipients }}</li>
  10. <li style='font-size: 14px;'>Date: {{ date }}</li>
  11. <li style='font-size: 14px;'>Subject: {{ subject }}</li>
  12. </ul>
  13. {% if deleted %}
  14. <p style="font-size: 14px;">Since our company policy requires TLS
  15. encryption for the recipient(s) mentioned above, your mail was deleted.
  16. Please find a different - and secure - channel for communication.</p>
  17. {% else %}
  18. <p style="font-size: 14px;">Please tell me how you want me to handle this case:</p>
  19. <p>
  20. <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=redirect' style='text-decoration: none;'>
  21. <button style="font-size: 14px; color: black; cursor: pointer; margin-left: 0px; margin-top: 10px; border: 0; border-radius: 4px; background: rgb(220, 220, 220); padding: 10px;">Send unencrypted</button>
  22. </a>
  23. <a href='https://{{postfix_tls_host}}:8080/?queue_id={{queue_id}}&action=delete' style='text-decoration: none;'>
  24. <button style="font-size: 14px; color: black; cursor: pointer; margin-left: 0px; margin-top: 10px; border: 0; border-radius: 4px; background: rgb(220, 220, 220); padding: 10px;">Delete message</button>
  25. </a>
  26. </p>
  27. {% endif %}
  28. <p style='font-size: 14px; margin-top: 25px;'>If you have any questions, please contact your <a href="mailto:{{postfix_sysadmin_mail_address}}" style="color: black;">System Administrator</a>.</p>
  29. <!-- Footer -->
  30. <div id="footer" style="font-size: 12px; margin: 0; padding: 0; color: grey;">
  31. This message was sent by <a href="https://posttls.com" style="color: grey;">PostTLS</a>.<br>
  32. PostTLS is Open Source Software and available under the MIT License.
  33. </div>
  34. </div>
  35. </body>
  36. </html>