hello folks!

We have a social network which has the ability of messaging between
users. this users have the option, to fw this system messages to their
personal email address. Since the number of users is pretty big, and
smoetimes their email servers are not working (or their email addreses
are wrong) we get loads of bounce emails.

i would like to catch the bounce (which at the momment is going to
postmaster in our domain) , parse, check who's email was bounced and
warn him using our system messages so he updates his email.

my initial appraoch was to use a pipe for the bounce transport...but
it's not really working.

master.cf:
bounce    unix -       n       n       -       10      pipe -v
user=postfix argv=/etc/postfix/bounce.pl

bounce.pl:
it's a quick test script, nothing fancy. it simply reads standard
input and checks for "From:" field to then put it on a log. if I test
the sript with an email (bounce.pl < mail_test) works like a champ!

as you can see i set the debug to see what was going on .. the log
doesnt really tell me much!

Test sending an email and receving a bounce to see if i can manage it:

Nov 15 18:29:52 home postfix/smtp[3156]: C991427F21:
to=<[EMAIL PROTECTED]>, relay=none, delay=177,
delays=176/0.19/0.22/0, dsn=5.4.4, status=bounced (Host or domain name
not found. Name service error for name=home.kisero.com type=A: Host
found but no data record of requested type)
Nov 15 18:29:52 home postfix/pipe[3157]: bounce socket: wanted attribute: flags
Nov 15 18:29:52 home postfix/pipe[3157]: input attribute name: nrequest
Nov 15 18:29:52 home postfix/pipe[3157]: warning: unexpected attribute
nrequest in input from bounce socket
Nov 15 18:29:52 home postfix/pipe[3157]: warning: deliver_request_get:
error receiving common attributes
Nov 15 18:29:52 home postfix/pipe[3157]: deliver_request_final: send: "" -1
Nov 15 18:29:52 home postfix/pipe[3157]: send attr status =

googling didnt help much...

does anyone know if this is possible?
what could be wrong here?
of course, after analizing the bounce, we plan to discard it../dev/null...

many many thanks chaps!
have a good one.
esteban

Reply via email to