Dino Ciuffetti wrote:
> Hi. Thanks everybody for yesterday replay that solved my problem!!
>
> Is it possible to make courier automagically failing back to plain text
> for broken smtp hosts that advertise STARTTLS but are broken on STARTTLS
> command returning something like: "454 TLS not available: missing RSA
> private key (#4.3.0)"?
>
> I googled for it but I found only an old mail of this list saying this is
> not possible with courier.
>
> Thanks, Dino.
>   

Hi!

You might find this Perl script I wrote useful.

It monitors courier's maillog in real time (requires File::Tail from 
CPAN), and when this typical TLS failure occurs, adds an exception for 
the misconfigured domain to esmtproutes, e.g.:

bad-tls-domain.com:/SECURITY=NONE

During the next retry the original message should go through because 
STARTTLS won't be attempted.

The script also sends a notification about the problem to the postmaster 
of that domain (if that mail bounces to you, you could report the domain 
to "RFC Ignorant" postmaster blacklist: 
http://www.rfc-ignorant.org/tools/submit_form.php?table=postmaster).

Note: you have to customize the script a bit - change your own 
postmaster address (the $our_postmaster variable) and change the message 
template (it currently contains my own signature).

I'm running this script since 2005 and I've already got 290 domains in 
/etc/courier/esmtproutes.

-- 
Best Regards,
    Aleksander Adamowski
        GG#: 274614
        ICQ UIN: 19780575 
        http://olo.org.pl

--
Aleksander Adamowski
    Administrator systemów korporacyjnych; Instruktor
    Altkom Akademia S.A. http://www.altkom.pl
    Warszawa, ul. Chłodna 51
    tel. brak
    kom. +48 601-318-080

Sąd Rejonowy dla m.st. Warszawy w Warszawie, XII Wydział Gospodarczy Krajowego 
Rejestru Sądowego,
KRS: 0000120139, NIP 118-00-08-391, Kapitał zakładowy: 1000 000 PLN.  Adres 
rejestrowy Firmy - ul. Stawki 2, 00-193 Warszawa.
Niniejsza wiadomość zawiera informacje zastrzeżone i stanowiące tajemnicę 
przedsiębiorstwa firmy Altkom Akademia S.A.
Ujawnianie tych informacji osobom trzecim lub nieuprawnione wykorzystanie ich 
do własnych celów jest zabronione.
Jeżeli otrzymaliście Państwo niniejszą wiadomość omyłkowo, prosimy o 
niezwłoczne skontaktowanie się z nadawcą oraz usunięcie wszelkich kopii 
niniejszej wiadomości.
This message contains proprietary information and trade secrets of Altkom 
Akademia S.A. company.
Unauthorized use or disclosure of this information to any third party is 
prohibited.
If you received this message by mistake, please contact the sender immediately 
and delete all copies of this message. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to