2

I'm trying to use ssmtp to send a simple email from a server. There are loads of examples out there for configuring a gmail account and that's what I'm using. My /etc/ssmtp/ssmtp.conf tile contains the line:

mailhub=smtp.gmail.com:587

But when I try and send an email I get the error:

ssmtp: Cannot open mailhub:25

I've not a clue where it's pulling the port 25 from. I had installed postfix thinking of setting it up in satellite mode but removed it for ssmtp, thinking it was simpler given the limited requirements I have. So postfix was removed, don't know if that's had an effect.

heemayl
  • 93,925
jwhitmore
  • 121

1 Answers1

0

Aragh...

I was trying to specify a subject with "-u" option. Don't know where I got that from probably another email utility.

ssmtp no subject works fine. Sorry about the noise.

jwhitmore
  • 121