Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting around "smtp relay denied"

Status
Not open for further replies.

DoubleV

Programmer
Jan 11, 2002
358
US
there's an online form that, when submitted, the results get emailed to a specified email address within our company.
what we'd like to do, is to be able to send a copy of the form results to a person who filled it out. so we're basically using our smpt server to send emails to domains other then ours. and this is what is not working. the error i get basically says "smtp relay denied". the script is written in MivaScript and I already posted to a miva users list where i was assured that my script is perfectly fine and that i have to figure the email relay thing out. so how do i do that? what do i need to do to allow this one particular script send emails to any domain?


--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
i'm assuming that the web-email client you're using is on a different machine from the sendmail distribution ...

localhost should automatically be allowed to send email via sendmail ...

you need to look at your access.db file and add the ip address of the machine you want to be able to send mail, or the ip addresses of your machine cluster if necessary.
 
Add the following to your access.db
127.0.0.1 RELAY
localhost RELAY
xxx.xxx.xxx.xxx RELAY (your network block goes here)

Then re-hash the database
makemap hash /etc/mail/access.db < /etc/mail/access

Now any machine on your network can send mail to your mail server and it will relay out.

There is no God, only 10001010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top