On 19.01.18 19:03, Grant Edwards wrote: > I need to setup an SMTP relay server. > > It needs to accept messages as an SMTP server (using SSL and AUTH on a > non-standard port) from a single user and single source and then relay > them by passing them to a command-line MTA (e.g. /usr/bin/sendmail > replacement provided by msmtp).
Based on your description you seem to have things backward. Sendmail is used to inject mail into an MTA on the local machine, and the MTA can then use SMTP to transfer said mail to another server. If the final recipient (i.e. mailbox) is on the same server the mail is generated on, the MTA can use a local transport mechanism to store mail instead of passing it on via SMTP. I suggest you clarify your goal, and ask on the Postfix mailing list (or Exim, etc.) for more information. -Ralph