Grant Edwards: > I'm trying to figure out how to set up an SMTP server that accepts > incoming mail and relays it by invoking a command-line MTA > (e.g. /usr/bin/sendmail or equivalent) instead of connecting to a > 'smarthost' SMTP server. > > Can Postfix do that?
Sure. Just set up the TIS toolkit smap program as an SMTP receiver, and have smapd hand off the message to /usr/sbin/sendmail. https://docstore.mik.ua/orelly/networking/puis/ch22_02.htm I ran Sendmail like that about 20 years ago, before I switched to Postfix. But, since Postfix already solves the problems that smap/smapd were designed to solve, I don't see why one would want to do that with the Postfix sendmail command. Wietse