I want to write my own postfix transport as I can't find much information online on what I need to do. I need to be able to have full control over what happens to mail on a per mailbox basis. (Virtual users) Some mail is spam filtered and then spam is put in a folder. some mail is spam filtered and then forwarded to another email, some mail is not spam filtered but put through a custom app etc etc...
So I just want to write my own custom transport that will handle all of this. Probably going to use C++.
I am looking for information on what the requirements are for this, such as what the various parameters in master.cf are, how the transport should handle the mail, what environment variables that are available, how to write to Maildir etc etc...
Where could I find this information? I've searched for weeks and can't find anything whatsoever. Any help would be appreciated. In fact, Postfix/dovecot documentation as a whole is rather scarce. It's one of the reasons I just want to write my own system, as the existing solutions like sieve that MIGHT do what I need barely have proper documentation. Not enough details are provided.
So I just want to write my own custom transport that will handle all of this. Probably going to use C++.
I am looking for information on what the requirements are for this, such as what the various parameters in master.cf are, how the transport should handle the mail, what environment variables that are available, how to write to Maildir etc etc...
Where could I find this information? I've searched for weeks and can't find anything whatsoever. Any help would be appreciated. In fact, Postfix/dovecot documentation as a whole is rather scarce. It's one of the reasons I just want to write my own system, as the existing solutions like sieve that MIGHT do what I need barely have proper documentation. Not enough details are provided.