Re: Dealing with Bounced Email



>> >"mail($To,$Subject,$Msg,$header­s, '-f'.$returnaddress);
>> >
>> >where $returnaddress = your email. "
>>
>> this would not help as the action is not automated... try setting up
>> an account that will be monitored by a script:
>> On receving mail, remove sender's adress from database, also search
>> body for e-mail adresses and remove them.
>
>Okay, but, how does one set up a PHP script to monitor bounced email
>coming back to the account I've already set up? That's the part I have
>no idea how to do.
>

There are several approaches:

(1) If you have a system which supports it (e.g. Linux or UNIX using
sendmail, smail, Exim, etc.), you can forward mail received by a
user into a pipe by specifying this in a .forward file in the user's
home directory. The program (which could be written in just about
anything: standalone PHP, Perl, sh, C, or whatever) will be invoked
with the email text (including the headers) on stdin. Details of
what user the program will run as or what the current working
directory will be may vary. Whether or not the admin has turned
this off or not may vary also. It is up to the program to go
through the headers and body to figure out what to do with it.

(2) You could set up a cron job which periodically invokes a program
which polls a mailbox using POP3, IMAP, or just opens the mailbox
file directly. For example, fetchmail can be used to transfer the
mailbox contents to a local file. Then a program could look at
what came in. The host with the program doesn't have to be the same
host as the one with the mailbox, in the case of POP3 or IMAP polling.

Gordon L. Burditt
.



Relevant Pages

  • Re: deleting user account: disposition of users files?
    ... All of this is managed automatically by a password aging script. ... user doesn't change his password after 65 days, his account is expired. ... and the host monitor runs every 6 hours. ... Martin E. Meserve - K7MEM ...
    (comp.unix.solaris)
  • Re: how to detect mailbox snooping?
    ... and not asking the admin to change it for them. ... Then, I would monitor the mailboxes in question, ... They could easily and quickly add themselves with full mailbox ... account, and would be using a backup account or some other account to gain ...
    (microsoft.public.exchange.admin)
  • Re: Store event sink wont fire
    ... Sometimes I've seen antivirus programs quarantine the script code so you end ... to test this is try creating an outlook profile to the mailbox with the ... event sink using the account that your Com object is running under and see ... I'd also make sure the account has full mailbox access (not ...
    (microsoft.public.exchange2000.development)
  • Error no: -2147024809 / ID no: c1032227
    ... I wrote an VB script for enabling user accounts and creating mailbox for it ... The error occures on the "CreateMailbox" line of code, ... What's strange - account is correctly ...
    (microsoft.public.exchange.admin)
  • Re: Creation of a New Mailbox on a existing User
    ... Currently I have to do it manually>via the Exchange Tasks wizzard and Create Mailbox task. ... But the extra information that I had to add to each>account was what took up all the time. ... >>I have created a script that will add in that extra information but I>also want it to go and create the mailbox account. ...
    (microsoft.public.exchange.admin)