SMTP

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
knuppel
Forum Newbie
Posts: 5
Joined: Wed Dec 03, 2003 2:43 pm

SMTP

Post by knuppel »

my SMTP is not working:

telnet localhost 25 ---> connection refused...

i got confixx on my V Server....

cannot receive and send emails...
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Not a PHP - Theory and Design topic, moved to the Miscellaneous forum.

Mac
Roger Bailey
Forum Newbie
Posts: 3
Joined: Mon Oct 27, 2003 4:52 pm
Location: Cape Town, South Africa

Post 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.
Post Reply