On 19.01.18 19:45, Grant Edwards wrote:

> Let's not worry about how the command-line MTA works. It has the same
> usage as /usr/bin/sendmail and it works. What I am asking for is an
> SMTP relay server that will relay incoming my by invoking it.

"Relaying" implies passing mail to another server via network. Also, I
have no idea why you would not want Postfix to do its job, but anyway:
Postfix can pass incoming mail to a binary during local delivery. You
can for example set up an alias (http://www.postfix.org/aliases.5.html):

  # /etc/aliases
  mybinary: |/path/to/binary

Make sure to configure 'alias_database' accordingly. Sending mail to
mybin...@host.domain.tld should then be enough to invoke the binary
(with default values for 'mydestination').

-Ralph

Reply via email to