On 01/19/2018 04:58 PM, Grant Edwards wrote:
That would require seperate outbound transports that are selected based on how the mail was read: smtp vs. /usr/bin/sendmail (the real one).
Okay....
I get the impression from exim and postfix docs that outbound routing based on input method aren't possible (I may be wrong about that).
Depending on what exactly you're needing, I might be able to think of a way to do this with Sendmail. - This may be one of the exceedingly rare times that Sendmail's splitting MTA and MSA roles may actually be beneficial (other than for the security reasons).
I'm going to need to ponder this.
Unless it's possible to run two separate instances -- one to relay SMTP --> my_custom_sendmail_utility and one to hanlde outbound mail generated locally standard_usr_bin_sendmail --> SMTP.
That's certainly possible to do with Sendmail. Or at least it used to be. Granted, it's annoying ... to make sure that the various queues are separated.
I'm trying to think through this to see if there is a way to leverage the existing separation between the MTA (which has the features for your listening SMTP daemon) and the MSA (which I think prefers to talk SMTP to a smart host, usually the local MTA).
Am I regurgitating this properly?1) You want incoming SMTP connections to go out via your custom mailer script. 2) You want messages originated locally and piped into $commandTBD to go out via SMTP.
Would I be correct in assuming that the path and / or name of the sendmail like script that interfaces with the Exchange server could change if necessary? I.e. you could name it /usr/local/bin/sendmail_to_exchange_gateway if you needed to.
Question: What name are your scripts currently calling to interface with msmtp? - Can that name change if necessary?
I'm trying to juggle the various pieces as I understand them to see if everything can work together.
Note: I'm not trying to push Sendmail. - I know I'm strange in my predilection for it. - I'm simply trying to solve the problem (as I understand it) with the tools that I know.
Well I have several msmtp "accounts" set up and run multiple mutt configurations that use those different accounts for outbound mail.
The different accounts outbound may complicate things. Are those accounts configured as part of msmtp? Or are they configured in the things using msmtp?
-- Grant. . . . unix || die
smime.p7s
Description: S/MIME Cryptographic Signature