Im at a loss here. I have 5 machines, 4 of them (should be) forwarding any mail generated by scripts to the 5th. Its not happening.
When I go to the mail machine, my main machine, I can do
telnet localhost 25
and it connects. When I do the same command on the other 4 machines, it can not connect. Now Im using my own sendmail.mc nad submit.mc, but have made multiple changes with no effect.
WHAT controls the connection to localhost?
And just for completeness, NO there is no firewall running on the machines in question.
Any help would be appreciated.
On Tue, Jan 26, 2010 at 7:05 PM, reg@dwf.com wrote:
Im at a loss here. I have 5 machines, 4 of them (should be) forwarding any mail generated by scripts to the 5th. Its not happening.
When I go to the mail machine, my main machine, I can do
telnet localhost 25
and it connects. When I do the same command on the other 4 machines, it can not connect. Now Im using my own sendmail.mc nad submit.mc, but have made multiple changes with no effect.
WHAT controls the connection to localhost?
And just for completeness, NO there is no firewall running on the machines in question.
Any help would be appreciated.
why you don't try postfix ?
Itamar Reis Peixoto itamar@ispbrasil.com.br writes:
why you don't try postfix ?
;-)
On Tue, Jan 26, 2010 at 7:05 PM, reg@dwf.com wrote:
Im at a loss here. I have 5 machines, 4 of them (should be) forwarding any mail generated by scripts to the 5th. Its not happening.
Does /var/log/messages or /var/log/maillog say anything unusual about the failing machines. Since you have your own mc files, might there be some problem with the selinux contexts? (eg. do a "restorecon -rv /etc/path-to-sendmail-config" to fix.)
If all fails, postfix works well. ;-) Sorry, couldn't resist.
(Slave only configs are very easy to do there too. I've used sendmail far longer than postfix and I can say hacking postfix configs is far less error-prone than sendmail configs.)
-wolfgang
On Tue, 2010-01-26 at 14:05 -0700, reg@dwf.com wrote:
Im at a loss here. I have 5 machines, 4 of them (should be) forwarding any mail generated by scripts to the 5th. Its not happening.
When I go to the mail machine, my main machine, I can do
telnet localhost 25
and it connects. When I do the same command on the other 4 machines, it can not connect.
Most likely, sendmail is only *listening* to the local loopback, and not to external network interfaces. That's been the default for quite some time.
Now Im using my own sendmail.mc nad submit.mc, but have made multiple changes with no effect.
You should post the files so people can see what you've done. We can only guess, otherwise. And many people will unwilling to even respond until you do so.
e.g. My **old** sendmail.mc file has this in it:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
And that causes the daemon to only listen to that address. Adding the following line to the configuration file, just below the above one, allows it to listen to any machine on my LAN:
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.2, Name=MTA')dnl
Be careful when opening up a mail daemon that you don't open it up to everyone (the internet, or any others on your LAN that shouldn't have access, etc.). Configure the daemon to be appropriately restrictive, do not rely on a firewall to isolate it.