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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tying web form to sendmail 1

Status
Not open for further replies.

Tricon

Programmer
Sep 19, 2006
2
US
Greetings,

I get a plethora of spam at a certain email address at my domain. We have the email address tied to a form on our website. We only need emails to this address to come from this form.

Is there a way that I can setup a rule in sendmail with the folling rules:

*) If mail is to mail@mydomain.com do the following {
1) Check the domain it orginated from. If not from @mydomain.com, then reject.
}

Thank you for looking!

-Tricon
 
Hi Tricon,

what you could do is to reject all mail from all domains except for yours. This is done in /etc/mail/access than makemap and restart sendmail. Works fine for me.

ogmedia
 
Thanks for the response. I just resolved this earlier this morning using /etc/mail/access. Thank you for the confirmation =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top