On Tue, 14 Jan 2025 22:02:58 -0800 Nat Taylor <[email protected]> wrote:
> What distro? Is your firewall blocking you? What firewall are you using? endeavor os which is arch based no firewall > > On Tue, Jan 14, 2025 at 9:59 PM <[email protected]> wrote: > > > Hi, > > > > I'm trying to set up msmtp as a local mail agent just for my machine so > > that i can get mail from, for example, cron jobs > > I keep getting this error > > > > cannot connect to localhost, port 465: Connection refused > > > > and can find nothing as to how I might fix it which is really odd as i'm > > using the standard msmtprc config file and you'd think if it has this > > problem out of the box it would be relatively common. > > > > Any ideas ? > > > > -- > > Brian > > > > > > the config file > > --- > > account default > > > > # The SMTP smarthost > > host localhost > > > > # Use TLS on port 465. On this port, TLS starts without STARTTLS. > > port 465 > > tls on > > tls_starttls off > > > > # Construct envelope-from addresses of the form "[email protected]" > > from %U@localhost > > > > # Do not allow programs to override this envelope-from address via -f > > allow_from_override off > > # Always set a From header that matches the envelope-from address > > set_from_header on > > > > # Syslog logging with facility LOG_MAIL instead of the default LOG_USER > > syslog LOG_MAIL > > -- Brian
