PDA

View Full Version : FormMail.pl gets configuration errors



ccwebb
03-03-2004, 03:06 PM
I just set up a new 2.0 domain.

Then I installed FormMail thru manager.

When I send off a form it fails on a configuration error.

I am thinking that perhaps because this is a new domain FormMail is failing because I need some kind of permissions to be set to use the cgi-bin.

The reason that I am think this is because I then went to another domain of mine, downloaded a working copy of FormMail from it, uploaded it to the new domain and it also fails with a configuration error. (Before uploading it I added the necessary referers and recipients.)

I then set the form in the new domain to access FormMail in my other domain and that works just fine.

Any thoughts before I contact support. I figured that asking all of you was a faster path to a fix.

Thanks

Charlie

jalal
03-03-2004, 04:00 PM
Probably help us to help you if you told us what the error was!

If you just have a new WH2 installation, then all the permissions are set correctly.

ccwebb
03-03-2004, 07:32 PM
Here is what I get



Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, Postmaster@artandmusicexperience.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.27 Server at www.artandmusicexperience.com Port 80




Charlie

jalal
03-04-2004, 08:26 AM
Check that the email you are sending to is either off-site or goes to an existing email account that has a home directory!

I suspect that that is the error you are having.

HTH[/b]

ccwebb
03-04-2004, 01:47 PM
Jalal:

Thanks for your help. After getting your latest response I went into manager and set up a catchall. That took care of the problem.

Want to try to explain to me why that makes a difference? Shouldn't the email just bounce rather than crash FormMail? I guess the question would be: bounce to where? - as it is being created on site and being sent to on site.

Thanks again for your help...

Charlie

jalal
03-04-2004, 02:03 PM
To put is simply, when sendmail receives an email to deliver, itchecks for a valid user name. (Before this, it checks whether the email is being sent to an alias and then resolves the alias to a user account). If it is not to a valid user, then it gets bounced. If you have a catchall, then you always have a valid user.

The bit with the home directory is a little tricky, but if I understand correctly, if the email comes from the outside then sendmail checks in the virtusertable for a valid user. If the email has been routed internally (as it is from formmail.pl) then the virtusertable isn't checked and instead sendmail looks for a home directory for that user. Sendmail has nowhere to bounce it back to and so just errors (and saves the email in /dead.letter I think).

Unfortunately formmail.pl doesn't pass back the sendmail error, it just barfs and confuses the hell out of everybody 8}

Once I started to use NMS formmail (a plugin replacement) which has a debug mode, then I could see what was happening.
I recommend NMS formmail if you are having trouble with formmail, I use it on most of my sites now.