In nginx there is a mail{...} directive mail{...}
How to make incoming letters to ***@example.com go to php for processing?
The fact is that Nginx proxies everything, including, probably, SMTP / IMAP / POP3 in asynchronous mode using epoll (under Linux), that is, chunks. Most likely, you will have to write a module in C, which collects the entire letter and sends it to the PHP module for processing. It's complicated. Moreover, they have no C API documentation anywhere. Worse than PHP even.
Source: https://ru.stackoverflow.com/questions/713617/
All Articles