older article that I’ve revived.
Problem
The problem: you have a laptop and you’re not always connected to the Internet. Still you want to sent mail even when you’re offline. You cannot use just any mail server out there, ‘cause a lot of them don’t relay. So you must use your own mail server.
You'll need:
- postfix, only used for queuing and forwarding the mail
- openSSH, for setting up a tunnel
OpenSSH config You will need to create a ssh tunnel to your mail server. This is the command I use: