Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Using remote SMTP is described here:
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:

set smtp_url="smtp://username@localhost:8025/"

BTW. Using remote POP/IMAP here:

share|improve this answer
good advice. I was wrong though, I didn't even need an SSH tunnel, just TLS. – devin May 11 '09 at 20:05
oh, you should have asked ;-) I've though that you're doing poor man's VPN ;-) – vartec May 11 '09 at 20:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.