Yes, I tried that, and it did not work. A line with just a period did work to terminate it, though.bob wrote:Did you try "^D" which is a classic eof? however, using sendmail is probably not the right solution anyway, there are a ton of front-ends to sendmail. mail, mailx, pine, elm, etc. Sendmail is the transport program, but is normally accessed from some sort of front end.
I guess in this case the ICS should be considered the front end. It prepares the files that should be sent, complete with header lines for addressee and subject. These are then offered to sendmail for dispatching, by placing them in a spooler directory.
The ICS software cannot invoke sendmail directly, as for safety reasons its access to the system is usually restricted, by running it inside a chroot jail. The spooler directory lives inside this jail, but sendmail is outside it. So you need to run a separate script, which monitors the spooler directory, and then offers anything that appears in it to sendmail.
But it all works now. The only problem is that it puts a strange address for the sender, and if this address starts with "root@", that the smarthost of my provider actually refuses to forward the mail. So I cannot run the mailer-demon script as root. But I chown'ed all the files it needs, so that is OK now.