Stan Haimes, MD via Exim-users <exim-users@???> (Fr 30 Apr 2021 07:42:51 CEST):
> I have a need for a slightly different implementation of Opportunistic TLS
> in EXIM. I am also willing to provide compensation for its development and
> would be happy to donate the code to public distribution if it would be
> useful to others.
>
> For most messages, sending the outgoing email by Opportunistic TLS would be
> desirable and perfect.
>
> However, if the Subject field contains "[Secure]", I would like that to
> trigger different message handling by EXIM. The presence of this character
> string in the Subject field would indicate that the sender was requiring
> that this message be sent via TLS or not at all. As a result, if the email
> could be sent via Forced (Mandatory) TLS, the email submission would
> complete in the usual manner. However, if the attempted TLS connection was
> not successful, the email would be redirected to the sender with an
> indication that the secure TLS email transmission was not successful.
your're looking for something like this?:
begin transports
smtp:
driver = smtps
hosts_require_tls = ${if match{$h_subject:}{\N^\[secure\]\N}{*}}
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -