LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Error sending mail out (https://www.linuxquestions.org/questions/linux-networking-3/error-sending-mail-out-50485/)

nrmx 03-18-2003 01:55 PM

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

Crashed_Again 03-18-2003 01:58 PM

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.

nrmx 03-18-2003 02:04 PM

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

Crashed_Again 03-18-2003 02:22 PM

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.

nrmx 03-18-2003 02:25 PM

No one of them are on...... What do I need to check in th routers config?

Crashed_Again 03-18-2003 02:27 PM

See if it allows sendmail access out. It should allow everything from the lan out by default.

nrmx 03-18-2003 05:06 PM

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.

Crashed_Again 03-18-2003 05:33 PM

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.