* Ofer Inbar <c...@aaaaa.org> [2021-09-13 02:15]:
> > All I do is:
> > 
> > sudo  ssh -L 25:mailhub:25 username@your_server
> > 
> > And then, configuring 'localhost' as my smtp server on port 25
> > gets my mail sent directly forward through the SSH link.

I have just tried the method and mutt somehow got the certificate from
port 25, I had to accept it (once) and then it started authenticating.

>From Mutt manual:

    Since all protocols supported by Mutt support/require authentication,
     login credentials may be specified in the URL. This has the advantage
     that multiple IMAP, POP3 or SMTP servers may be specified (which isn't
     possible using, for example, $imap_user). The username may contain the
     "@" symbol being used by many mail systems as part of the login name.
     The special characters "/" (%2F), ":" (%3A) and "%" (%25) have to be
     URL-encoded in usernames using the %-notation.

How I see that case of forwarding port 25 which is normally not used
with authentication on localhost, is that you should better forward
the other port like 587 which is normally used WITH authentication,
and then use that port to submit emails.

As the manual says "since all protocols supported by Mutt
support/require authentication"


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/

Reply via email to