courier-imap für tls konfigurieren

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

courier-imap für tls konfigurieren

Post by andy-stoltze »

Hallo liebe User,
nachdem ich erfolgreich den postfix für tls konfiguriert habe, wollte ich jetzt den courier-imap für tls konfigurieren.
Leider ist bis jetzt keine Lösung in Sicht. Eine vernünftige howto konnte ich auch nicht finden.
Wenn ich jetzt mails versende, komen diese zwar an werden aber nicht in den Ordner "versendet" kopiert und ich bekomme die Nachricht "Mail konnte nicht versendet werden".
Ich gehe mal ganz stark davon aus, dass das daran liegt dass courier-imap noch kein tls kann.

Kann mir jemand ein verständliches howto empfehlen bzw. mir weiterhelfen?

System: openSUSE 12.2
Postfix
courier-imap


vielen Dank im voraus!!!
Andreas
ddm3ve
Moderator
Moderator
Posts: 1237
Joined: 2011-07-04 10:56
 

Re: courier-imap für tls konfigurieren

Post by ddm3ve »

Hi,

warum ausgerechnet courier-imap?
Dovecot ist meiner Meinung nach mind. genau so gut. Hier könnte ich Dich bezüglich SSL sogar unterstützen.
02:32:12 21.12.2012 und dann sind Deine Probleme alle unwichtig.
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

Re: courier-imap für tls konfigurieren

Post by andy-stoltze »

habe meinen Server mit ispcp omega aufgesetzt.
Habe Angst, dass wenn ich courier gegen Dovecot tausche gar nichts mehr läuft :|
ddm3ve
Moderator
Moderator
Posts: 1237
Joined: 2011-07-04 10:56
 

Re: courier-imap für tls konfigurieren

Post by ddm3ve »

Ok, das ist ein plausibler Grund.
02:32:12 21.12.2012 und dann sind Deine Probleme alle unwichtig.
User avatar
nyxus
Posts: 626
Joined: 2002-09-13 08:41
Location: Lübeck
Contact:
 

Re: courier-imap für tls konfigurieren

Post by nyxus »

ob das jetzt mit dem ispcp irgendwie anders läuft weiß ich nicht, aber manuell sind es nur ein paar Anpassungen in der /etc/courier/imapd-ssl (dort liegt es unter Debian):

Code: Select all

# diese Datei beinhaltet das root- und das evtl. intermediate-Zertifikat
TLS_TRUSTCERTS=/etc/ssl/2013/ca-certs.crt
# Diese Datei beinhaltet Dein Zertifikat und Dein private Key:
TLS_CERTFILE=/etc/ssl/2013/ssl.crt
Last edited by nyxus on 2013-07-24 22:03, edited 1 time in total.
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

Re: courier-imap für tls konfigurieren

Post by andy-stoltze »

Danke für dein Reply
meine imap-ssl sieht momentan wie folgt aus

Code: Select all

SSLPORT=993

SSLADDRESS=127.0.0.1

SSLPIDFILE=/var/run/imapd-ssl.pid
SSLLOGGEROPTS="-name=imapd-ssl"
IMAPDSSLSTART=YES
IMAPDSTARTTLS=YES
IMAP_TLS_REQUIRED=0

COURIERTLS=/usr/sbin/couriertls
TLS_CIPHER_LIST="SSLv3:TLSv1:HIGH:!LOW:!MEDIUM:!EXP:!NULL:!aNULL@STRENGTH"
TLS_CERTFILE=/etc/ssl/private/imapd.pem
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_TRUSTCERTS=/etc/ssl/certs
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/var/couriersslcache
TLS_CACHESIZE=524288
MAILDIRPATH=Maildir
den port habe ich freigegeben (firewall) aber thunderbird will sich nicht verbinden ](*,)
obwohl der dienst läuft
Last edited by andy-stoltze on 2013-07-24 22:35, edited 1 time in total.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: courier-imap für tls konfigurieren

Post by Joe User »

SSLADDRESS muss noch angepasst werden.

Unabhängig davon, hat Courier-IMAP nichts mit dem Versenden von Mails zu tun. Das ist Aufgabe von Postfix.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

Re: courier-imap für tls konfigurieren

Post by andy-stoltze »

Hallo Joe User,
habe die SSLADDRESS=0 eingetragen. Ergebiss: Thunderbird verbindet nicht auf Port 993
Mit telnet ist der Port aber erreichbar. 8-[
Postfix (also der versant) funktioniert tadellos mit tls allerdings wird die versendete mail nicht nach versendet verschoben und es wird eine meldung ausgegeben, dass die mail nicht versendet werden konnte (die Mail kommt aber trotzdem an!!!)

beste Grüße
Andreas
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: courier-imap für tls konfigurieren

Post by Joe User »

SSLADDRESS muss auf die externe IP zeigen.

Das andere Problem kann mehrere Ursachen haben, daher wären Logfiles und Configs hilfreich.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

Re: courier-imap für tls konfigurieren

Post by andy-stoltze »

Hab mir mal den status aufgerufen und ganz unten ein Problem festgestellt.
Nur eine Lösung finde ich nicht :-?

Code: Select all

/etc/init.d/courier-imap-ssl status
redirecting to systemctl
courier-imap-ssl.service - LSB: Courier-IMAP server for SSL connections
          Loaded: loaded (/etc/init.d/courier-imap-ssl)
          Active: active (running) since Sun, 28 Jul 2013 23:35:57 +0200; 8h ago
          CGroup: name=systemd:/system/courier-imap-ssl.service
                  ├ 2974 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -name=imapd-ssl /usr/lib/courier-imap/cou...
                  └ 2975 /usr/lib/courier-imap/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -nodnslookup -noidentlookup 9...

Jul 28 23:33:11 s1 courier-imap-ssl[2345]: /etc/rc.status: line 57: /dev/stderr: No such device or address
Jul 28 23:35:57 s1 courier-imap-ssl[2345]: Starting Courier-IMAP (SSL)..done
/dev/stderr verweist auf /dev/rc/2 und das verweist wiederum auf /dev/null
Last edited by andy-stoltze on 2013-07-29 08:56, edited 1 time in total.
User avatar
andy-stoltze
Posts: 38
Joined: 2013-01-31 20:12
Contact:
 

Re: courier-imap für tls konfigurieren

Post by andy-stoltze »

Problem gelöst :-BD
IMAPDSTARTTLS=YES
TLS_CERTFILE=/etc/ssl/private/imapd.pem
in die imapd und nicht in die imapd-ssl
Post Reply