Error sending mail out
Hi,
I finally got sendmail to receive messages. It works fine now!.... But I have run into some other trouble with sendmail.... I can't send mail out. Upon checking the mail queue I see that the message says "defered: connection refused by <my domain name>". The machine is behind a router and I have put it in the DMZ. Is there something I need to set in the router? What could cause sendmails connection to be refused locally? Regards |
It could be a number of things. Do you have a firewall running? What about your /etc/hosts.allow and /etc/hosts.deny files? What do they look like?
You should also mention what distro you are using. |
I am using Mandrake 9.1, both my hosts allow and deny fine are below. I don't know of any firewall that is running other then the router and security setting in Mandrake with @ install I set to standerd.
--------------------------------------------------------- [nrm@lsu nrm]$ more /etc/hosts.allow # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # [nrm@lsu nrm]$ more /etc/hosts.deny # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # # The portmap line is redundant, but it is left to remind you that # the new secure portmap uses hosts.deny and hosts.allow. In particular # you should know that NFS uses portmap! [nrm@lsu nrm]$ ------------------------------------------------------------------------- Thanks |
Well either your router or your firewall is not letting the messages out. Check the routers configuration and see if you have a fireall running:
chkconfig --list iptables chkconfig --list ipchains chkconfig --list ip6tables See if any of those services are on. |
No one of them are on...... What do I need to check in th routers config?
|
See if it allows sendmail access out. It should allow everything from the lan out by default.
|
hum......... this I think could shed some light on this. Accoring to mailq the connection is being refused by "lsu.homelinux.com" my domain. All local connections to this machine can only be access using its host name "localhost". I.E ssh conncections from this machine to this machine can only be established by using "localhost" as the server name.... using the domain "lsu.homelinux.com" it says "connection refused on port 22". Is there anyway to get sendmail to use the localhost instead of the domain name?
Regards. |
What does your /etc/hosts file look like? Messing with the sendmail configuration files is a daunting task.
|
All times are GMT -5. The time now is 06:34 PM. |