Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Teemu Likonen
* 2022-09-18 09:00:49-0400, Greg Wooledge wrote: > In normal usage, scripts should always be calling mailx or an > equivalent program which is *designed* to create the e-mail headers > correctly. This is especially true if you're sending attachments. > Writing the MIME headers and attachment

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Greg Wooledge
On Sun, Sep 18, 2022 at 09:27:46AM +0200, Yvan Masson wrote: > So the `mailutils` package with `mail` command is optional: `sendmail` could > be used directly in scripts (but it might be a bit less practical to use, > see for example https://www.computerhope.com/unix/usendmai.htm#examples). If

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Yvan Masson
Le 18/09/2022 à 00:32, Greg Wooledge a écrit : On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: My question is: how cron daemon and mail command know that they should contact openSMTPd, and how? Do they try by default on localhost:25 or /run/smtpd.sock? I could not find any clue,

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Greg Wooledge
On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: > My question is: how cron daemon and mail command know that they should > contact openSMTPd, and how? Do they try by default on localhost:25 or > /run/smtpd.sock? I could not find any clue, nor in cron manpages nor in > mailutils online

How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Yvan Masson
Hi, I have some servers successfully configured to send notification emails, but I do not exactly understand how it works :-) I have installed openSMTPd and configured it to forward email to a relay (another SMTP server, the one from my email provider). I have also set up aliases in