Re: newbie: sending email from PHP doesn't work



On Mon, 11 Jan 2010 02:40:02 -0800 (PST), Jivanmukta wrote:
root@pecet:/var/log# cat mail.*|grep robert@pecet|tail -50
Jan 4 13:54:48 pecet postfix/qmgr[5260]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 13:54:48 pecet postfix/qmgr[5260]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 4 13:54:53 pecet postfix/qmgr[5471]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 4 13:54:53 pecet postfix/qmgr[5471]: 4E1D5B55EB:
from=<robert@pecet>, size=296, nrcpt=1 (queue active)
Jan 4 13:54:53 pecet postfix/qmgr[5471]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 13:54:53 pecet postfix/qmgr[5471]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 4 18:16:03 pecet postfix/qmgr[5315]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 4 18:16:03 pecet postfix/qmgr[5315]: 4E1D5B55EB:
from=<robert@pecet>, size=296, nrcpt=1 (queue active)
Jan 4 18:16:04 pecet postfix/qmgr[5315]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 18:16:04 pecet postfix/qmgr[5315]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 4 18:16:06 pecet postfix/qmgr[5315]: 4E1D5B55EB:
from=<robert@pecet>, status=expired, returned to sender
Jan 4 18:16:07 pecet postfix/qmgr[5462]: 4E1D5B55EB:
from=<robert@pecet>, size=296, nrcpt=1 (queue active)
Jan 4 18:16:08 pecet postfix/qmgr[5462]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 4 18:16:08 pecet postfix/qmgr[5462]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 18:16:08 pecet postfix/qmgr[5462]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 4 18:16:09 pecet postfix/local[5466]: 95FB5B55EE:
to=<robert@pecet>, relay=local, delay=3, delays=1.8/0.53/0/0.59,
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 4 20:55:25 pecet postfix/qmgr[5287]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 4 20:55:25 pecet postfix/qmgr[5287]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 20:55:25 pecet postfix/qmgr[5287]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 4 20:55:29 pecet postfix/qmgr[5434]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 4 20:55:29 pecet postfix/qmgr[5434]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 4 20:55:29 pecet postfix/qmgr[5434]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 5 03:01:02 pecet postfix/qmgr[5254]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 5 03:01:02 pecet postfix/qmgr[5254]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 5 03:01:03 pecet postfix/qmgr[5254]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 03:01:09 pecet postfix/qmgr[5499]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 5 03:01:09 pecet postfix/qmgr[5499]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 03:01:09 pecet postfix/qmgr[5499]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 5 04:09:31 pecet postfix/qmgr[5404]: 528EEB55F0:
from=<robert@pecet>, size=298, nrcpt=1 (queue active)
Jan 5 04:09:31 pecet postfix/qmgr[5404]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 04:09:31 pecet postfix/qmgr[5404]: 2C733B55EF:
from=<robert@pecet>, size=302, nrcpt=1 (queue active)
Jan 5 04:09:32 pecet postfix/qmgr[5404]: 528EEB55F0:
from=<robert@pecet>, status=expired, returned to sender
Jan 5 04:09:33 pecet postfix/qmgr[5404]: 2C733B55EF:
from=<robert@pecet>, status=expired, returned to sender
Jan 5 04:09:35 pecet postfix/qmgr[5600]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 04:09:36 pecet postfix/local[5598]: 31B66B55EE:
to=<robert@pecet>, relay=local, delay=2.9, delays=2.2/0.02/0/0.71,
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 5 04:09:36 pecet postfix/local[5604]: 30DEDB55EB:
to=<robert@pecet>, relay=local, delay=4.3, delays=2.8/0.03/0/1.6,
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 5 06:00:53 pecet postfix/qmgr[5397]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 06:01:01 pecet postfix/qmgr[5634]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 08:34:01 pecet postfix/qmgr[6043]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 08:34:07 pecet postfix/qmgr[6285]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 13:08:45 pecet postfix/qmgr[5293]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 13:08:49 pecet postfix/qmgr[5450]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 13:22:40 pecet postfix/qmgr[5450]: 7C0F8B55EE:
from=<robert@pecet>, size=289, nrcpt=1 (queue active)
Jan 5 13:22:40 pecet postfix/local[6379]: 7C0F8B55EE:
to=<robert@pecet>, relay=local, delay=0.17, delays=0.1/0.06/0/0.01,
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 5 14:18:48 pecet postfix/qmgr[5450]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 5 14:22:09 pecet postfix/qmgr[5450]: 0C8C7B55EF:
from=<robert@pecet>, size=299, nrcpt=1 (queue active)
Jan 5 14:22:09 pecet postfix/local[7813]: 0C8C7B55EF:
to=<robert@pecet>, relay=local, delay=0.05, delays=0.04/0.01/0/0.01,
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 6 12:09:37 pecet postfix/qmgr[6516]: 9A9DBB55F2:
from=<robert@pecet>, size=297, nrcpt=1 (queue active)
Jan 6 12:09:38 pecet postfix/qmgr[6516]: 9A9DBB55F2:
from=<robert@pecet>, status=expired, returned to sender
Jan 6 12:09:39 pecet postfix/local[6619]: 8366FB55EE:
to=<robert@pecet>, relay=local, delay=1.2, delays=0.3/0.15/0/0.75,
dsn=2.0.0, status=sent (delivered to mailbox)

But
root@pecet:/var/log# mail -u robert
No mail for robert

So something disposed of the email to robert. Email client picked it up,
or it got further processed into a junkmail folder or something. Let's
see what happened to a whole message. Try

grep 9A9DBB55F2 /var/log/mail*

--
91. I will not ignore the messenger that stumbles in exhausted and
obviously agitated until my personal grooming or current
entertainment is finished. It might actually be important.
--Peter Anspach's list of things to do as an Evil Overlord
.