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.
> >
> >I looked into the source send.c and the error message is triggered by
> >some internal FCC error, perhaps just due to the missing ~/Mail dir or
> >something the like. The mail is sent fine.
> 
> You didn't mention what version of Mutt you are using on the server. 
> There has been a fair amount of refactoring in this part of the code the 
> past few releases, but looking at 1.8.0 (corresponding to your header) 
> the check is:
> 
>    if (fcc_error || (i = send_message (msg)) < 0)
> 
> If there were an fcc_error, the conditional would short-circuit and 
> send_message() wouldn't be invoked.
> 
> I would double check the problem is with Fcc, if the emails are in fact 
> sent out.  If you're sure that's the problem, perhaps try invoking mutt 
> with something like:
> 
>    mutt -e 'unset record' ...

Kevin,

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

The file says at the end:

$ tail acqmail.log
...
ISBN/ISSN:
Preis:                    9.99 EUR
Sonstiges:

*************************************************************************

Mit freundlichen Grüßen

i.A.Debugging auf Ebene 4.
Konnte Nachricht nicht verschicken.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

That there is no \n between "i.A." and "Debugging auf Ebene 4." is
caused by the mail source piped into mutt is lacking an \n on its last
line.

The debug log contains only:

$ cat ~/.muttdebug0
[2020-11-05 09:25:06] Mutt/1.8.3 (2017-05-23) debugging at level 4
[2020-11-05 09:25:06] getdnsdomainname(): dev.xxxxxxxxx.org
[2020-11-05 09:25:06] Reading configuration file 
'/usr/local/sisis-pap/etc/Muttrc'.
[2020-11-05 09:25:06] send.c:1235: mutt_mktemp returns 
"/tmp/mutt-srap38dxr1-900118-29444-247126431730400576".
[2020-11-05 09:25:06] sendlib.c:2743: mutt_mktemp returns 
"/tmp/mutt-srap38dxr1-900118-29444-154600781884627193".
[2020-11-05 09:25:06] mwoh: pfx=[(null)], tag=[Subject], flags=0 value=[Neue 
Bestellung =?utf-8?Q?h=C3=BCff-001688?= =?utf-8?Q?4?= der Bibliothek Bibliothek 
der xxxxxxxxx GmbH]
[2020-11-05 09:25:06] send.c:974: mutt_mktemp returns 
"/tmp/mutt-srap38dxr1-900118-29444-2253970281884134976".
[2020-11-05 09:25:06] mwoh: pfx=[(null)], tag=[Subject], flags=0 value=[Neue 
Bestellung =?utf-8?Q?h=C3=BCff-001688?= =?utf-8?Q?4?= der Bibliothek Bibliothek 
der xxxxxxxxx GmbH]
[2020-11-05 09:25:06] mutt_free_body: unlinking 
/tmp/mutt-srap38dxr1-900118-29444-247126431730400576.

I've no clue why this message "Konnte Nachricht nicht verschicken."
(English: "Could not send the message.") is raised.

        matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich 
Lenin)
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)

Reply via email to