Page 1 of 1
SMTP
Posted: Sat Dec 20, 2003 7:16 am
by knuppel
my SMTP is not working:
telnet localhost 25 ---> connection refused...
i got confixx on my V Server....
cannot receive and send emails...
Posted: Mon Dec 22, 2003 4:52 am
by twigletmac
Not a PHP - Theory and Design topic, moved to the Miscellaneous forum.
Mac
Posted: Tue Jan 13, 2004 3:37 pm
by Roger Bailey
Assuming you are using the sendmail smtp daemon you need to specify the hosts for which the server is to relay mail. Default instalations are generally setup to only relay mail from localhost.
Edit /etc/mail/access. Add a lines at the end specifying the networks that may use the server to relay mail. In the example below a line has been added to allow mail from 192.168.0.0/255.255.255.0.
Code: Select all
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0 RELAY
For RedHat 9.0 you can just restart sendmail and all will be well. For other installations you may need to run some utility to regenerate access.db before resarting. Check the doco.