• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Source-code for tcp-env?

T

Teej

Guest
I'm having some problems with courier-imap and STARTTLS not being enabled.

The problem is that the env-vars in '/etc/courier-imap/imapd' aren't being expanded and result in:

IMAP_CAPABILITY_TLS='$IMAP_CAPABILITY AUTH=PLAIN'
IMAP_CAPABILITY_TLS_ORIG='$IMAP_CAPABILITY_ORIG AUTH=PLAIN'

being passed to /usr/sbin/imaplogin.

After a lot of debugging I've discovered part of the reason is a non-standard version of tcp-env (/usr/bin/tcp-env) that takes an undocumented argument "-f file", where 'file' contains environmental variables.

The service definition in /etc/xinetd.d/courier-imap has this:

server = /usr/bin/tcp-env
server_args = -R -f /etc/courier-imap/imapd /usr/sbin/imaplogin /usr/lib/courier-imap/authlib/authpsa /usr/bin/imapd Maildir

By peeking at the the binary using

$ hexdump -C /usr/bin/tcp-env

I can see the additional argument: "rRt:f:.PROTO."

I've checked the qmail source, and the Plesk patches including patch-z04-tcp-env.

Where can I find the source-code for the modified tcp-env ?
 
Back
Top