Debian still defaults to exim (not sure about Ubuntu) so I would start by looking at the configuration for that if you don't want postfix.
The docs are great: https://wiki.debian.org/Exim
This command will help configure for most simple uses: dpkg-reconfigure exim4-config
If you're not sending all the mail on to an existing smarthost for delivery you should make sure you have SPF, DKIM and DMARC all setup to help you avoid the spam filters and make it hard for spammers to use your domain.
Cheers, Dennis
On Thu, Sep 15, 2022 at 10:49 AM Mark Rogers mark@more-solutions.co.uk wrote:
I always seem to struggle with this most simple of configuration tasks!
Starting from a clean install of (say) Ubuntu/Debian, and with a set of SMTP server credentials in your hand, what's the best/simplest way to get email set up so that emails from cron jobs get sent, and so that there's a minimal "mail" client at the commandline?
I don't want the overheads of postfix + MySQL that things like mailutils bring in. (Or maybe I should accept those overheads?)
The broader objective is that I can set the recipient address for email to root or other users, and the sender address from which emails get sent by default. -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0344 251 1450 Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER _______________________________________________ To unsubscribe send an email to main-leave@lists.alug.org.uk http://www.alug.org.uk/ Unsubscribe? See message headers or the web site above!