On Thu, Aug 06, 2020 at 09:44:24AM +0300, Otto Kekäläinen wrote:
> Is it possible to send email using the Postfix provided
> /usr/sbin/sendmail command on a system where Postfix is installed, but
> not running permanently as a service?

Sure, the sendmail command will just deposit the mail into the maildrop
queue.

> I have a resource constrained system where I want to avoid running
> excess processes, and it rarely sends email. When it sends, it just
> relays to a proper Postfix host accessible on the local network. There
> is no incoming nor local mail delivery needs on that system.

What do you mean with "resource constrained"?  An idle postfix starts
master, qmgr and tlsproxy.  There are not much resources involved.

> I have been using msmtp for this need, but its handling of multiple
> recipients in the same mail is too simple and I'd rather use Postfix
> that parses and validates recipients properly.

Don't.  Use some specialized null mailer, I usually use "nullmailer".
It will send all e-mail to exactly one smart host.

>                                                              but
> ideally I'd like an invocation of /usr/sbin/sendmail to immediately
> send off the email to the relay host and not depend on a permanently
> running Postfix daemon. Is this possible?

No, it is not possible.  Postfix is no single service.

Bastian

-- 
Youth doesn't excuse everything.
                -- Dr. Janice Lester (in Kirk's body), "Turnabout Intruder",
                   stardate 5928.5.

Reply via email to