Quote:
Originally Posted by tamarian
If so, there might be an alternative solution. Exim allows forwarding through .forward file and can use pipe the emails to the shell. So if the symlink for some reason doesn't work, you might be able to capture the emails to an alternative file within your public_html space.
|
Well that's basically what I'm doing anyway by moving the spool once per day. I'm quite happy to process the rejects daily. That bit works now.
To answer your other question - yes, the file had exactly one rejected e-mail in it that i did as a test.
The reject headers are ;
Code:
From MAILER-DAEMON Sun Jun 26 22:13:31 2005
Return-path: <>
Envelope-to: mailrejects@mydomain.com
Delivery-date: Sun, 26 Jun 2005 22:13:31 +0100
Received: from mailnull by xxxxxxxx.miniserver.com with local (Exim 4.43)
id 1DmeRW-0002OX-Eq
for mailrejects@mydomain.com; Sun, 26 Jun 2005 22:13:30 +0100
X-Failed-Recipients: this-should-be-rejected@failed.com
Auto-Submitted: auto-generated
From: Mail Delivery System <Mailer-Daemon@xxxxxxxx.miniserver.com>
To: mailrejects@mydomain.com
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1DmeRW-0002OX-Eq@xxxxxxxx.miniserver.com>
Date: Sun, 26 Jun 2005 22:13:30 +0100
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
this-should-be-rejected@failed.com
SMTP error from remote mailer after RCPT TO:<this-should-be-rejected@failed.com>:
host smtpin.failed.com [81.xx.xx.xx]: 550 Invalid recipient:
<this-should-be-rejected@failed.com>
------ This is a copy of the message, including all the headers. ------
(Some addresses changed obviously)