using mutt with postfix and localhost:25
Ofer Inbar
cos at aaaaa.org
Sun Sep 12 23:14:30 UTC 2021
> All I do is:
>
> sudo ssh -L 25:mailhub:25 username at your_server
>
> And then, configuring 'localhost' as my smtp server on port 25 gets my mail sent directly forward through the SSH link.
Ahh, you left out a key piece of information: Postfix is *not* running
on your local host. Instead, you are setting up an ssh port forward
to the mail server where postfix is running. Perhaps that server uses
this as a form of authentication/security - if you have been instructed
to do this by the admins, maybe they're using this as a way to allow
people who have ssh login accounts (and thus the ability to create
these ssh port tunnels) to submit mail as if it were submitted from
the local host.
Because of this unusual setup, you can't use mutt's default, because
that would try to deliver mail using the mail server on your actual
local host. So now your question makes sense. You need mutt to send
mail via the ssh tunnel; you cannot submit it locally, because that
remote server running postfix would never see it if you did so.
-- Cos
More information about the Mutt-users
mailing list