Tim Prepscius: > Hello, > > This has probably been answered in some thread, however I'm having a > hard time finding it. > I'm reading through the documentation, and it is not clear how I would > fashion a configuration. > > > > I would like to run postfix in the following fashion: > > 1. post fix receives mail from anyuser@anydomain TO > someotheruser@anyotherdomain using SSL (PFS kind) > > 2. after mail is received, my java or native handler program is > executed with the *entire* mail sent text via a > pipe/file/env/whatever. > > It would be great if the mail never touched disk. I could guarantee > the mail handler returns almost instantaneously. > > > 3. it would be nice, but not necessary, that if the above handler > program exits with an error, PostFix bounces with some generic > message. > > > > But with the following additional needs: > > 1. I don't want to make user accounts in the file system or actually > anywhere. I don't want to write them down. > 2. I don't want to register the *real* domain name anywhere. (in any > file or account, etc) > > Is this possible? > > To reiterate: > Postfix would only do the protocol of receiving mail, mail would then > be sent to a handler program I have written.
It's easy enough to send all mail into a pipe(8) command. /etc/postfix/main.cf: transport_maps = static:javapipe /etc/postfix/master.cf: javapipe .... pipe user=xx flags=yy argv=/some/where/java-program $sender $recipient However: - How would Postfix know what domains to receive? It's a bad idea to accept mail from any client to any destination. That would be an open relay. - How would Postfix know what recipients are valid? It's a bad idea to accept-then-bounce mail for non-existent recipients. Wietse