my SMTP is not working:
telnet localhost 25 ---> connection refused...
i got confixx on my V Server....
cannot receive and send emails...
SMTP
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
Roger Bailey
- Forum Newbie
- Posts: 3
- Joined: Mon Oct 27, 2003 4:52 pm
- Location: Cape Town, South Africa
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.
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.
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