The Mutt E-Mail Client : Reference : Configuration variables : preconnect
Previous: postponed
Next: print

## 6.3.201. preconnect

Type: string
Default: ""

If set, a shell command to be executed if mutt fails to establish a connection to the server. This is useful for setting up secure connections, e.g. with ssh(1). If the command returns a nonzero status, mutt gives up opening the server. Example:

preconnect="ssh -f -q -L 1234:mailhost.net:143 mailhost.net sleep 20 < /dev/null > /dev/null"

Mailbox 'foo' on mailhost.net can now be reached as '{localhost:1234}foo'.

NOTE: For this example to work, you must be able to log in to the remote machine without having to enter a password.

The Mutt E-Mail Client : Reference : Configuration variables : preconnect
Previous: postponed
Next: print