J
J
Jordan_Belforts2021-07-09 13:58:42
linux
Jordan_Belforts, 2021-07-09 13:58:42

SMTP server with RestAPI?

Hello. Such a question, maybe someone came across or was just interested in this topic. Is there a smpt server with api or does anyone know some wrappers for postfix for example? Or from postfix it is possible to pull a file with a script somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-07-09
@Jordan_Belforts

You can add a line like
test to /etc/aliases: "|/usr/local/bin/processmail.php"
so the body of the email with all the headers for the user test will be sent via the pipe to the script /usr/local/bin/processmail.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question