Schlagwort-Archive: TLS/SSL

msmtp hängt bei der Nutzung von TLS/SSL

Gerade habe ich msmtp eingerichtet, einen Mail Transfer Agent (MTA). Damit dieser auch eine sichere Verbindung zum SMTP-Server aufbaut, habe ich in meiner Konfiguration TLS auf on gesetzt. Leider es damit noch nicht ganz geklappt. Der Versand der Mail mittels msmtp bliebt hängen mit der Meldung „reading recipients from the command line„. Eine nicht ganz aussagekräftige Fehlermeldung…

Das Problem lässt sich jedoch schnell beheben, da man in diesem Fall wohl StartTLS noch nicht abgeschaltet hat, diese Option ist laut Dokumentation standardmäßig aktiviert. Der Befehl dazu lautet tls_starttls off.

Meine Konfigurationsdatei sieht nun so aus:

# Default Settings
defaults
auth             on
tls              on
tls_trust_file   path/to/certificate/ca.pem
tls_starttls     off

# First address
account          provider
host             smtp.provider.example
port             465
from             username@provider.example
user             username
password         password