Trouble with contact form after moving to linux server - help!

I've recently moved my drupal site from a windows server to a linux one. After a few teething problems everything seems to be fine except for a problem with the contacts module. When I try to send a message through it I get a "message sent" report but nothing turns up at the other end. I've checked that the address drupal is sending to is correct, it is. Would greatly appreciate if anyone could give me some pointers. Posted message on drupal.org but not had any responce. Cheers, Darren
hunthunthunt's picture

VPS/Dedicated or Shared

Are you on a VPS/Dedicated or a shared Linux server? Assuming you are on VPS/dedicated you need to have a Mail Transfer Agent (MTA) such as Postfix installed and configured, you also need to edit the sendmail path in php.ini If you are on Shared, the issue is most likely in the hands of your hosting company. Shared hosts IPs are often blacklisted, so that any server generated emails are tagged as spam. When testing emails, did you look to see if the email was in your spam folder? If the issue persists, contact your hosting company and advise them that you need to use PHPs mail() function.

It's on a shared server.

It's on a shared server. Checked my spam folder (why i didn't do this before i don't know) and the messages are there, so issue resolved. I'm also having a bit of a problem with the .htaccess files which cause a server error. Have deleted them for now but intend to go through it line by line to which bit is causing problems. Is this the best way to do it? Thanks loads for your help!
hunthunthunt's picture

.htaccess

You can edit the .htacess file, though I think your energy would be better spent working out what the issue with your hosting environment is. From experience, Drupal does not like cheap, shared hosting. Generally there is tiny amounts of RAM available, MySQL is slow and and the LAMP stack can't be customised. If your budget only allows for shared hosting, I advise finding a host recommend by other Drupal users.
websesame's picture

How is Admin>Site

How is Admin>Site Information configured ? What do you have in the email address field ? www.websesame.com
darren's picture

Try SMTP module

If you are still having problems with your site sending email try the SMTP module. http://drupal.org/project/smtp It bypasses the use of PHP's built in mail() function to use a more reliable SMTP server that you specify in the settings.
hunthunthunt's picture

Great suggestion Darren

I'd just installed postfix on a server and was taking a performance hit as a result (Well I think it was postfix) I'm using Google Apps for email so the SMTP Authentication Support module is a no-brainer!