On Thu, Nov 05, 2020 at 09:41:55AM +0100, Matthias Apitz wrote:
El día miércoles, noviembre 04, 2020 a las 09:33:34a. m. -0800, Kevin J. McCarthy escribió:On Wed, Nov 04, 2020 at 01:17:44PM +0100, Matthias Apitz wrote: >We use mutt in batch mode to assemble mails with all attachments etc. >and pipe the assembled mail to /usr/lib/sendmail -t which works also >fine. But is complaining on STDERR that the mail could not be sent with > >Could not send the message.
Thanks for the reply. The used mutt is version 1.18.3 (see debug log below). I put a tee command between mut and sendmail to see what mutt is spilling out to sendmail: ... | mutt -d4 .... | tee -a acqmail.log | sendmail -t
Sorry I didn't look closely enough at your original email. It sounds like you are expecting the stdout of mutt to be the formatted message which you are then piping to sendmail. Is that correct?
As far as I know, that mode of operation isn't supported by Mutt. I'm confused how it is working, to be honest. Mutt expects either $sendmail or $smtp_url to be set, and it controls the sending itself.
-- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature