sSMTP: "send-mail: Cannot open mail.mydomain.local:25"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

sSMTP: "send-mail: Cannot open mail.mydomain.local:25"

Post by ^rooker »

[PROBLEM]
I'm dealing with a setup, where I need to be able to send notification mails from clients in different subnets, but the mailserver is only accessible on one of them.
I've setup a machine which is multi-homed in all available networks, and also has alias-IPs for shared physical networks. Let's call it "Babylon".

The plan is to use sSMTP on Babylon, to forward it to the local mailserver.

It works to send mails locally on Babylon, but when I try to send mails from another machine through Babylon, I get the following error:
send-mail: Cannot open babylon.office.local:25
Can't send mail: sendmail process failed with error code 1
[SOLUTION]
Well, sSMTP can't relay, so it won't listen on SMTP-ports.
Had to use Exim4 instead.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply