I want to be able to send email from mutt through an SSH tunnel I can SSH into the SMTP server, but I don't know how to tell mutt how to use the tunnel to send e-mail.
Can someone help me out, please?
I want to be able to send email from mutt through an SSH tunnel I can SSH into the SMTP server, but I don't know how to tell mutt how to use the tunnel to send e-mail.
Can someone help me out, please?
Using remote SMTP is described here: https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/Sendmail
So with the tunnel you'd set up your SMTP to localhost, but with the tunnel port. Eg. you create tunnel 8025->25 on remote:
And in Mutt configuration (
.muttrc
) you put:BTW. Using remote POP/IMAP here: https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/RemoteFolder
You don't need to have ssh with local port forwarding running on your own. Both mutt and Neomutt have config option
tunnel
.example: