On 2018-01-19, Ralph Seichter <[email protected]> wrote: > 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.
Yes, that's what the command-line MTA utility does. > Also, I have no idea why you would not want Postfix to do its job, Becuase postfix doesn't implement the protocols used by that command-line utility to transfer the mail to another server via the network. > but anyway: Postfix can pass incoming mail to a binary during local > delivery. And it will do 'local delivery' for any and all recipient addresses? There are no local email users. > You can for example set up an alias > (http://www.postfix.org/aliases.5.html): But that says it's for local recipients. There are no local recipients. > # /etc/aliases > mybinary: |/path/to/binary And that binary will be passed command-line options and arguments compatible with /usr/bin/sendmail? > Make sure to configure 'alias_database' accordingly. Sending mail to > [email protected] should then be enough to invoke the binary > (with default values for 'mydestination'). -- Grant Edwards grant.b.edwards Yow! We have DIFFERENT at amounts of HAIR -- gmail.com
