I have a java-based web service that sends out daily transactional
emails to members using JavaMail to connect to a Postfix SMTP server
at e.mydomain.com. Since the transaction email server is basically
just an outgoing server (there are no mailboxes, etc.), the only real
incoming mail are bounces addressed to something like this:
bounce-7232-useremail=userdomain....@e.mydomain.com

I've been processing bounces manually and would like to automate the
process. So I implemented a simple SMTP server in java using
SubethaSMTP that only accepts bounced message email addresses and
processes them by updating bounce counters and such. My database
access is all via Hibernate, so I need to keep this process
Java-based. I'm calling this bounce.mydomain.com and it is currently
running on port 8025.
http://code.google.com/p/subethasmtp/

I'm more of a programmer type and not a Postfix expert. I'm trying to
figure out what the best configuration would be for these services. As
I see it, I have several options:

1. Change the VERP addresses to be @bounce.mydomain.com and set up
firewall rules that forward port 25 to 8025.  This option would take
Postfix out of the picture for processing bounce messages. I'm not
sure what advantages/disadvantages this would cause.

2. Configure postfix to forward bounce type emails to port 8025. I
don't know how to configure Postfix to do this. Any suggestions or
assistance would be appreciated.

3. Learn some other and better way to do this, possibly with a Postfix
policy service? I just learned about Postfix policy services from an
answer to my StackOverflow question, but haven't been able to find
enough information to determine how much work this would be or what is
involved.
http://serverfault.com/questions/180806/forwarding-only-bounce-messages-to-a-different-smtp-server

I'd love to hear from any Postix users out there which method would be
best and the reasons why. Thanks!
Tauren

Reply via email to