Sample Header Ad - 728x90

Simple way to send email to Dovecot mailbox from Unix scripts?

1 vote
2 answers
1306 views
I'm looking to send emails to myself from various scripts on my Linux (Debian 10) system. My thought was to install just Dovecot, and not an MTA like Postfix, to avoid the complexity of configuring the MTA. All I want to do is drop myself the odd email from a script, and then connect to my mail server with Thunderbird and pull those emails. I used to run my own email server, however, and the way I sent scripts on there was to use /usr/sbin/sendmail. This binary seems to have been supplied by Postfix, because it isn't there with just a Dovecot install. Assuming I have already set up Dovecot to successfully allow retrieval of email from local user mailboxes via eg. POP3, what's the simplest way (least configuration, basically) for me to send email to those local mailboxes from a unix script? I'd like to avoid installing a full-on MTA, or ideally, anything else at all. I'd like some sort of equivalent to:
/usr/sbin/sendmail "to@address.com" <
Asked by Jez (1026 rep)
Jan 20, 2022, 10:31 AM
Last activity: Jan 6, 2024, 02:15 PM