Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Postfix smtp (saslauth/rimap) login failures [SOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ocbMaurice
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Fri Feb 14, 2003 2:32 pm
Location: Switzerland

Postfix smtp (saslauth/rimap) login failures [SOLVED]

  • Quote

Post by ocbMaurice » Wed Feb 04, 2026 10:39 pm

Just wanted to post this here, since it took me an evening to finally discover why my mail setup didn't want to accept my smtp passwords anymore.

I'm using Postfix via cyrus-sasl, which is in turn configured to check authentication via remote imap server (rimap mech to courier-imap to be exact).

After enabling all kind of log-levels, I finally found that `testsaslauthd -f /var/run/saslauthd/mux -u user@domain -p XXX`logged:

`auth_rimap: [user@domain] saslauthd NO STARTTLS required`

The message is a bit confusing to digest, but after consulting the cyrus-sasl code, it was clear that courier-imap was saying "NO STARTTLS required".
It's still pretty confusing, as it turns out it is actually meaning "NO STARTTLS command was given, but it is required".
After consulting the courier-imap docs, I found that there is a`IMAP_TLS_REQUIRED` option for courier-imap.

So adding `IMAP_TLS_REQUIRED=0` to `/etc/courier-imap/imapd` finally solved the authentication issue.

No idea when this was enfored, but pretty sure my setup was working OK a few months ago ...

Hope this post may help someone else saving some time and headache.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Wed Feb 04, 2026 11:25 pm

So adding `IMAP_TLS_REQUIRED=0` to `/etc/courier-imap/imapd` finally solved the authentication issue.
This looks like an absolutely terrible idea. Revert it immediately, then go to "receive mail" settings in your mail client and put something sane there. E.g. enable starttls.
And once you're done with those, you should probably change your password too.


One exception to this is if you're using a proxy for terminating SSL, so your connection is secure, but courrier doesn't know about it.
TBH, this wouldn't really look that great either.
Make Pipewire a system service
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic