Not receiving email sent through PHP contact form.
Hoping someone here can help, I've got a contact forum on this website installed and working (in the sense that it produces a success message)
However, I don't receive the email? I have it configured to send to
I have postfix installed, my hostname is configured properly
root@server1:~# hostname -f
server1.cravenpublishing.com
Here's a pasta of my last few lines of mail.log (I filled out the contact form and submitted it on the site just before opening this)
May 30 09:27:33 cravenpublishing postfix/cleanup[15819]: 228581692B: message-id=<20120530092733.228581692B@cravenpublishing>
May 30 09:27:33 cravenpublishing postfix/bounce[15822]: CA8FB16927: sender non-delivery notification: 228581692B
May 30 09:27:33 cravenpublishing postfix/qmgr[19465]: 228581692B: from=<>, size=3363, nrcpt=1 (queue active)
May 30 09:27:33 cravenpublishing postfix/qmgr[19465]: CA8FB16927: removed
May 30 09:27:33 cravenpublishing postfix/local[15823]: 228581692B: to=<www-data@cravenpublishing>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
May 30 09:27:33 cravenpublishing postfix/qmgr[19465]: 228581692B: removed
May 30 09:29:24 cravenpublishing postfix/qmgr[19465]: 4B16916940: from=<www-data@cravenpublishing>, size=625, nrcpt=1 (queue active)
May 30 09:29:25 cravenpublishing postfix/smtp[15831]: 4B16916940: to=<franek@limestreet.pl>, relay=mail.limestreet.pl[178.33.51.231]:25, delay=4719, delays=4717/0.02/1.5/0.06, dsn=4.0.0, status=deferred (host mail.limestreet.pl[178.33.51.231] said: 421 Refused. The domain of your sender address has no mail exchanger (MX). (in reply to RCPT TO command))
May 30 09:32:52 cravenpublishing postfix/pickup[14131]: 67A7B16927: uid=33 from= <www-data>May 30 09:32:52 cravenpublishing postfix/cleanup[16245]: 67A7B16927: message-id=<216f97cb99a4fb956a5a6aee87a6c3bc@109.74.204.14>
May 30 09:32:52 cravenpublishing postfix/qmgr[19465]: 67A7B16927: from=<www-data@cravenpublishing>, size=1356, nrcpt=1 (queue active)
May 30 09:32:52 cravenpublishing postfix/smtp[16248]: 67A7B16927: to=<p.1f.ir.e.suced.1@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.27]:25, delay=0.46, delays=0.02/0.01/0.05/0.39, dsn=2.0.0, status=sent (250 2.0.0 OK 1338370372 j13si18545581wie.35)
May 30 09:32:52 cravenpublishing postfix/qmgr[19465]: 67A7B16927: removed</p.1f.ir.e.suced.1@gmail.com></www-data@cravenpublishing></www-data></franek@limestreet.pl></www-data@cravenpublishing></www-data@cravenpublishing>
Any ideas? Ta
7 Replies
However, the from lines list local user hostname only domain. Are you setting From header in your PHP app? Alternatively you might wish to fix the myorigin config of Postfix to list your full domain (cravenpublishing.com) if that's the only one it is sending for.
@Azathoth:
According to the log you listed, there were 3 mails sent, one to local user (www-data), another to a .pl email (refused because sender domain has not MX entry), and third to a gmail which apparently passed through.
However, the from lines list local user hostname only domain. Are you setting From header in your PHP app? Alternatively you might wish to fix the myorigin config of Postfix to list your full domain (cravenpublishing.com) if that's the only one it is sending for.
Not sure what you mean by 'sender domain doesnt have a MX entry' is MX not for incoming mails? What should I set it to to fix that error?
I fixed the myorigin config and cravenpublishing.com now displays.
The problem I'm having is that the email I submit from that contact form doesnt even show up in my mail.log??
@craven:
Not sure what you mean by 'sender domain doesnt have a MX entry' is MX not for incoming mails? What should I set it to to fix that error?
It means that the recipient of email sent from your server replied with 421 Refused, saying that the sender address (www-data@cravenpublishing) has no MX. MX is for incoming mails, yes, but spam filtering (recipient's) can, and in this case probably does, check for MX existence for sender domains, which in this case was invalid because it's not a fqdn.
> The problem I'm having is that the email I submit from that contact form doesnt even show up in my mail.log??
Check PHP error logs, possibly PHP had no permission to call Postfix' sendmail utility.
Edit: but seeing that the sender of emails in the log you presented is www-data@cravenpublishing, seems like PHP does send mail.
@craven:
The problem I'm having is that the email I submit from that contact form doesnt even show up in my mail.log??
Go back a few more lines in your mail log. That one with from=<> is your server bouncing a message as undeliverable, so there should be some log activity before that that might tell you more about why.
@Azathoth:
@craven:Not sure what you mean by 'sender domain doesnt have a MX entry' is MX not for incoming mails? What should I set it to to fix that error?
It means that the recipient of email sent from your server replied with 421 Refused, saying that the sender address (www-data@cravenpublishing) has no MX. MX is for incoming mails, yes, but spam filtering (recipient's) can, and in this case probably does, check for MX existence for sender domains, which in this case was invalid because it's not a fqdn.
> The problem I'm having is that the email I submit from that contact form doesnt even show up in my mail.log??Check PHP error logs, possibly PHP had no permission to call Postfix' sendmail utility.
Edit: but seeing that the sender of emails in the log you presented is www-data@cravenpublishing, seems like PHP does send mail.
Ah, I see. Well it has a fqdn now so that should be resolved.
Yeah, php is sending mail, and I can't see anything in my php log that would indicate an error. Here's a copy paste of my last few lines straight after I try and submit a contact form
[31-May-2012 07:03:43] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '6426' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:03:55] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '9325' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:04:26] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '385' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:05:13] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '13679' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:15:17] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '7337' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:17:13] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '12385' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:23:57] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '13461' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:24:28] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '8708' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:27:48] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '8419' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:30:44] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '9810' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:34:35] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '12351' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:38:26] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '11755' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:40:21] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '11045' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:41:19] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '3619' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:45:07] PHP Notice: XML error: EntityRef: expecting ';' at line 1297, column 93 in /var/www/ablemagazine.co.uk/wp-content/plugins/autoblogged/simplepie.php on line 778
[31-May-2012 07:46:11] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '1385' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:49:04] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '3453' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:50:59] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '12805' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:51:57] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '4090' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:52:54] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '12375' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 07:54:31] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '12633' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
[31-May-2012 08:06:06] WordPress database error Unknown column 'wp_posts.post_type' in 'where clause' for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = '6936' AND comment_approved = '1' AND wp_posts.post_type NOT IN ('shop_order') ORDER BY comment_date_gmt DESC LIMIT 15 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
As you can see,just looks like some errors generated from other wordpress sites on my server.
@Stever:
@craven:The problem I'm having is that the email I submit from that contact form doesnt even show up in my mail.log??
Go back a few more lines in your mail log. That one with from=<> is your server bouncing a message as undeliverable, so there should be some log activity before that that might tell you more about why.
Here's a copypasta of the last 15 minutes of my mail.log. I can't see anything?
May 31 07:53:10 cravenpublishing postfix/pickup[27448]: E62AB16953: uid=33 from= <www-data>May 31 07:53:10 cravenpublishing postfix/cleanup[32468]: E62AB16953: message-id= <a117b2309fe5fcb6083c93438f3db3ac@109.74.204.14>May 31 07:53:10 cravenpublishing postfix/qmgr[2360]: E62AB16953: from=<www-data@cravenpublishing.com>, size=1366, nrcpt=1 (queue active)
May 31 07:53:11 cravenpublishing postfix/smtp[32471]: E62AB16953: to=<b.roodu.rsuanut@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.27]:25, delay=0.81, delays=0.05/0.01/0.13/0.63, dsn=2.0.0, status=sent (250 2.0.0 OK 1338450791 l2si1350813wiw.41)
May 31 07:53:11 cravenpublishing postfix/qmgr[2360]: E62AB16953: removed
May 31 07:53:58 cravenpublishing postfix/pickup[27448]: 27C4716953: uid=33 from= <www-data>May 31 07:53:58 cravenpublishing postfix/cleanup[32468]: 27C4716953: message-id=<30bfd0b068d3a35b87b51751a428804a@109.74.204.14>
May 31 07:53:58 cravenpublishing postfix/qmgr[2360]: 27C4716953: from=<www-data@cravenpublishing.com>, size=1380, nrcpt=1 (queue active)
May 31 07:53:59 cravenpublishing postfix/smtp[32471]: 27C4716953: to=<lorettabaster84853@hotmail.com>, relay=mx1.hotmail.com[65.54.188.94]:25, delay=1, delays=0.01/0/0.42/0.57, dsn=2.0.0, status=sent (250 <30bfd0b068d3a35b87b51751a428804a@109.74.204.14> Queued mail for delivery)
May 31 07:53:59 cravenpublishing postfix/qmgr[2360]: 27C4716953: removed
May 31 07:54:08 cravenpublishing postfix/qmgr[2360]: 7747316926: from=<www-data@cravenpublishing>, size=1352, nrcpt=1 (queue active)
May 31 07:54:08 cravenpublishing postfix/qmgr[2360]: 19E8B16951: from=<www-data@cravenpublishing.com>, size=1358, nrcpt=1 (queue active)
May 31 07:54:08 cravenpublishing postfix/qmgr[2360]: AE85C1693B: from=<www-data@cravenpublishing.com>, size=1344, nrcpt=1 (queue active)
May 31 07:54:08 cravenpublishing postfix/smtp[32477]: 19E8B16951: host gmail-smtp-in.l.google.com[173.194.67.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450 4.2.1 visit http://support.google.com/mail/bin/answer.py?answer=6592 bo7si1350941wib.45 (in reply to RCPT TO command)
May 31 07:54:08 cravenpublishing postfix/smtp[32477]: 19E8B16951: to=<diasiashash@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25, delay=506, delays=505/0.02/0.15/0.09, dsn=4.2.1, status=deferred (host alt1.gmail-smtp-in.l.google.com[173.194.70.26] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450 4.2.1 visit http://support.google.com/mail/bin/answer.py?answer=6592 71si3001057wej.31 (in reply to RCPT TO command))
May 31 07:54:08 cravenpublishing postfix/smtp[32478]: AE85C1693B: to=<jopdopf@mail.ru>, relay=mxs.mail.ru[94.100.176.20]:25, delay=21411, delays=21410/0.02/0.21/0.47, dsn=4.0.0, status=deferred (host mxs.mail.ru[94.100.176.20] said: 451 You have exceeded message receiving limit for user jopdopf@mail.ru, and i will not accept any messages to this user within 1 minute (in reply to end of DATA command))
May 31 07:54:09 cravenpublishing postfix/smtp[32471]: connect to mail.ymcarockies.org[63.227.77.242]:25: Connection refused
May 31 07:54:09 cravenpublishing postfix/smtp[32471]: 7747316926: to=<baaexeytopay@ymail.org>, relay=none, delay=352805, delays=352804/0.01/0.91/0, dsn=4.4.1, status=deferred (connect to mail.ymcarockies.org[63.227.77.242]:25: Connection refused)
May 31 07:55:20 cravenpublishing postfix/pickup[27448]: 18A2916953: uid=33 from= <www-data>May 31 07:55:20 cravenpublishing postfix/cleanup[32468]: 18A2916953: message-id= <cd49d70cf8338f3519e2c77e5e8a3028@109.74.204.14>May 31 07:55:20 cravenpublishing postfix/qmgr[2360]: 18A2916953: from=<www-data@cravenpublishing.com>, size=1370, nrcpt=1 (queue active)
May 31 07:55:20 cravenpublishing postfix/smtp[32477]: 18A2916953: to=<departmentoftaxe.sm.a.n@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.27]:25, delay=0.41, delays=0.01/0/0.03/0.36, dsn=2.0.0, status=sent (250 2.0.0 OK 1338450920 bu7si1372652wib.9)
May 31 07:55:20 cravenpublishing postfix/qmgr[2360]: 18A2916953: removed
May 31 07:58:06 cravenpublishing postfix/pickup[27448]: 56DBB16953: uid=33 from= <www-data>May 31 07:58:06 cravenpublishing postfix/cleanup[426]: 56DBB16953: message-id= <db0325e9eb73182a5b25010459506285@end-of-term.co.uk>May 31 07:58:06 cravenpublishing postfix/qmgr[2360]: 56DBB16953: from=<www-data@cravenpublishing.com>, size=1540, nrcpt=1 (queue active)
May 31 07:58:06 cravenpublishing postfix/smtp[428]: 56DBB16953: to=<celticfca@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.26]:25, delay=0.53, delays=0.02/0.01/0.04/0.46, dsn=2.0.0, status=sent (250 2.0.0 OK 1338451086 dm4si1367094wib.42)
May 31 07:58:07 cravenpublishing postfix/qmgr[2360]: 56DBB16953: removed
May 31 07:58:44 cravenpublishing postfix/pickup[27448]: 7958716953: uid=33 from= <www-data>May 31 07:58:44 cravenpublishing postfix/cleanup[426]: 7958716953: message-id=<0fc8b9dcb479b6d6cae32ff1084fd809@109.74.204.14>
May 31 07:58:44 cravenpublishing postfix/qmgr[2360]: 7958716953: from=<www-data@cravenpublishing.com>, size=1360, nrcpt=1 (queue active)
May 31 07:58:45 cravenpublishing postfix/smtp[428]: 7958716953: to=<u.nioxi.agraica@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.67.26]:25, delay=0.66, delays=0.02/0/0.04/0.61, dsn=2.0.0, status=sent (250 2.0.0 OK 1338451125 f3si1372586wiz.35)
May 31 07:58:45 cravenpublishing postfix/qmgr[2360]: 7958716953: removed
May 31 07:59:08 cravenpublishing postfix/qmgr[2360]: 1443216949: from=<www-data@cravenpublishing.com>, size=1353, nrcpt=1 (queue active)
May 31 07:59:08 cravenpublishing postfix/qmgr[2360]: 84B8A16929: from=<www-data@cravenpublishing.com>, size=1358, nrcpt=1 (queue active)
May 31 07:59:08 cravenpublishing postfix/smtp[428]: 1443216949: to=<sdfsdfgghh@mail.ru>, relay=mxs.mail.ru[94.100.176.20]:25, delay=2279, delays=2278/0.01/0.21/0.59, dsn=4.0.0, status=deferred (host mxs.mail.ru[94.100.176.20] said: 451 You have exceeded message receiving limit for user sdfsdfgghh@mail.ru, and i will not accept any messages to this user within 1 minute (in reply to end of DATA command))
May 31 07:59:38 cravenpublishing postfix/smtp[434]: connect to e-mail.com[204.146.168.195]:25: Connection timed out
May 31 07:59:38 cravenpublishing postfix/smtp[434]: 84B8A16929: to=<jehztivanov@e-mail.com>, relay=none, delay=50864, delays=50834/0.01/30/0, dsn=4.4.1, status=deferred (connect to e-mail.com[204.146.168.195]:25: Connection timed out)
May 31 08:04:08 cravenpublishing postfix/qmgr[2360]: 19E8B16951: from=<www-data@cravenpublishing.com>, size=1358, nrcpt=1 (queue active)
May 31 08:04:08 cravenpublishing postfix/smtp[844]: 19E8B16951: host gmail-smtp-in.l.google.com[173.194.67.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450 4.2.1 visit http://support.google.com/mail/bin/answer.py?answer=6592 50si2968213wet.124 (in reply to RCPT TO command)
May 31 08:04:08 cravenpublishing postfix/smtp[844]: 19E8B16951: to=<diasiashash@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25, delay=1106, delays=1105/0.02/0.17/0.07, dsn=4.2.1, status=deferred (host alt1.gmail-smtp-in.l.google.com[173.194.70.26] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450 4.2.1 visit http://support.google.com/mail/bin/answer.py?answer=6592 d14si3003395wec.73 (in reply to RCPT TO command))
May 31 08:05:51 cravenpublishing postfix/pickup[27448]: 5502E16953: uid=33 from= <www-data>May 31 08:05:51 cravenpublishing postfix/cleanup[1266]: 5502E16953: message-id= <c8368658cc725fc95d1edaad3577b8d0@109.74.204.14>May 31 08:05:51 cravenpublishing postfix/qmgr[2360]: 5502E16953: from=<www-data@cravenpublishing.com>, size=1351, nrcpt=1 (queue active)
May 31 08:05:52 cravenpublishing postfix/smtp[1268]: 5502E16953: to=<glor@eamidas.com>, relay=eamidas.com[216.172.171.57]:25, delay=0.72, delays=0.02/0.01/0.57/0.11, dsn=5.0.0, status=bounced (host eamidas.com[216.172.171.57] said: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to MAIL FROM command))
May 31 08:05:52 cravenpublishing postfix/cleanup[1266]: 1121816955: message-id=<20120531080552.1121816955@cravenpublishing>
May 31 08:05:52 cravenpublishing postfix/bounce[1269]: 5502E16953: sender non-delivery notification: 1121816955
May 31 08:05:52 cravenpublishing postfix/qmgr[2360]: 1121816955: from=<>, size=3349, nrcpt=1 (queue active)
May 31 08:05:52 cravenpublishing postfix/qmgr[2360]: 5502E16953: removed
May 31 08:05:53 cravenpublishing postfix/smtp[1268]: 1121816955: to=<www-data@cravenpublishing.com>, relay=ASPMX.L.GOOGLE.com[173.194.66.26]:25, delay=1.2, delays=0/0/0.25/0.93, dsn=2.0.0, status=sent (250 2.0.0 OK 1338451553 d45si1371555wea.38)
May 31 08:05:53 cravenpublishing postfix/qmgr[2360]: 1121816955: removed
May 31 08:09:08 cravenpublishing postfix/qmgr[2360]: 9783016944: from=<www-data@cravenpublishing.com>, size=1357, nrcpt=1 (queue active)
May 31 08:09:08 cravenpublishing postfix/qmgr[2360]: D1E821692B: from=<www-data@cravenpublishing.com>, size=1357, nrcpt=1 (queue active)
May 31 08:09:08 cravenpublishing postfix/qmgr[2360]: 8BB9E1694A: from=<www-data@cravenpublishing.com>, size=1352, nrcpt=1 (queue active)
May 31 08:09:09 cravenpublishing postfix/smtp[1300]: connect to ikramatic.net[115.134.22.213]:25: Connection refused
May 31 08:09:09 cravenpublishing postfix/smtp[1300]: 8BB9E1694A: to=<boneedug@ikramatic.net>, relay=none, delay=4618, delays=4617/0.02/0.76/0, dsn=4.4.1, status=deferred (connect to ikramatic.net[115.134.22.213]:25: Connection refused)
May 31 08:09:16 cravenpublishing postfix/smtp[1298]: 9783016944: to=<sferewrfsdfdsf@mail.ru>, relay=mxs.mail.ru[94.100.176.20]:25, delay=4657, delays=4650/0.02/0.21/7.5, dsn=2.0.0, status=sent (250 OK id=1Sa0RX-0000ku-RF)
May 31 08:09:16 cravenpublishing postfix/qmgr[2360]: 9783016944: removed
May 31 08:09:18 cravenpublishing postfix/smtp[1299]: D1E821692B: to=<sadasdsadasddd@mail.ru>, relay=mxs.mail.ru[94.100.176.20]:25, delay=4752, delays=4742/0.02/0.21/10, dsn=4.0.0, status=deferred (host mxs.mail.ru[94.100.176.20] said: 451 You have exceeded message receiving limit for user sadasdsadasddd@mail.ru, and i will not accept any messages to this user within 1 minute (in reply to end of DATA command))</sadasdsadasddd@mail.ru></sferewrfsdfdsf@mail.ru></boneedug@ikramatic.net></www-data@cravenpublishing.com></www-data@cravenpublishing.com></www-data@cravenpublishing.com></www-data@cravenpublishing.com></glor@eamidas.com></www-data@cravenpublishing.com></c8368658cc725fc95d1edaad3577b8d0@109.74.204.14></www-data></diasiashash@gmail.com></www-data@cravenpublishing.com></jehztivanov@e-mail.com></sdfsdfgghh@mail.ru></www-data@cravenpublishing.com></www-data@cravenpublishing.com></u.nioxi.agraica@gmail.com></www-data@cravenpublishing.com></www-data></celticfca@gmail.com></www-data@cravenpublishing.com></db0325e9eb73182a5b25010459506285@end-of-term.co.uk></www-data></departmentoftaxe.sm.a.n@gmail.com></www-data@cravenpublishing.com></cd49d70cf8338f3519e2c77e5e8a3028@109.74.204.14></www-data></baaexeytopay@ymail.org></jopdopf@mail.ru></diasiashash@gmail.com></www-data@cravenpublishing.com></www-data@cravenpublishing.com></www-data@cravenpublishing></lorettabaster84853@hotmail.com></www-data@cravenpublishing.com></www-data></b.roodu.rsuanut@gmail.com></www-data@cravenpublishing.com></a117b2309fe5fcb6083c93438f3db3ac@109.74.204.14></www-data>
to=<www-data@cravenpublishing.com>, relay=ASPMX.L.GOOGLE.com</www-data@cravenpublishing.com>
Huh? I'm sorry, my bad, didn't realize you were using google apps. I'd recommend you set myorigin to $myhostname in Postfix, so that your local (system) users stay local and not get relayed to google.
You then have to fix your PHP scripts to put proper From header in the mail they send out, unless you're satisfied with www-data @ server1.cravenpublishing.com be the address recipients see messages coming from.
This, however, won't fix your problem of not seeing messages put through the contact form. Your PHP seems to be sending email fine (as www-data user), although the logs do look a bit spammy (misbehaving wp module?).
So at this point I'd check your contact form configuration, or your domain's php.ini. Are the www-data entries seen in the logs from virtual domains using different php.ini? Is the form using native PHP's mail, or opening a SMTP connection "manually"?