I'm writing a Ruby on Rails app that uses the mailman and fssm gems to monitor the appropriate Maildir/new. There are virtual mailboxes and subdomains involved, but nonetheless, Postfix properly delivers incoming mail to the correct subdirectory. Fssm alerts mailman when a new email is received in Maildir/new, and mailman grabs the email and hands it off to my app to process. All of this is working wonderfully.
My problem is that after mailman grabs the email, some postfix process kicks off that attempts to communicate with the original mail server that sent the email. That communication results in a forwarding loop and a bounced email warning. I can't seem to figure out what process is attempting to forward the email after we grab it from Maildir/new. I don't want the message to be forwarded anywhere. Postfix's job is done when the email reaches Maildir/new. I thought the problem might have been dovecot, but I've since disabled dovecot with no results. Does anyone have any suggestions on how to configure postfix to forget about the email once delivered? One last thought, mailman does move a copy of the email from /new to /cur after the process is done. Is this something Postfix watches for? Thanks in advance.