Jump to content

[SOLVED] Mail form


AV1611

Recommended Posts

Mail forms and Backscatter

 

I currently do not allow mailforms on my server that allow the form to ender a TO or FROM as I have been backscatter exploited in the past.

 

I also don't allow open relay and never will.

 

That means the from is always static (system@mydomain.com)

 

Question:

 

How can I ensure that the TO on the form only contains a SINGLE to?  And how do I keep robots from just bouncing off it?

 

Thanks.

Link to comment
Share on other sites

I suppose a strict regex would keep anyone from putting the characters to send to multiple people at once. As far as protecting it from robots, the issue is a bit more difficult. What is your system for? I can't really think of a system where you would allow anyone to email to anyone without any form of authentication. Do you have a login associated with it?

Link to comment
Share on other sites

Well,

 

Good question.

 

Currently I host several domains, so the to would always be a designated local user, but what if the account wanted the mail send to for example name@gmail.com?

 

I guess that the issue...

 

I guess as long as I hard code the to: then the from doesn't matter?

 

I just have been overreacting since I got exploited last year... I have worked VERY hard to keep my server off the spam lists and have done a good job... I just don't wanna risk it.

Link to comment
Share on other sites

If there's a set number of users you want the emails sent to, the users shouldn't even have to deal with emails, or even, if possible, see them. A perfect implementation would have users entering/selecting a person's username and the script does all of the work of insuring the username exists/there is an email associated with it/sending the email.

 

And I don't blame you, not being blacklisted as a spammer is a huge concern for non-spammers unfortunately.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.