Send mail to SMTP server on same LAN from CLI (confused with Mutt and Postfix)
- You don't need postfix on your machine. You can configure mutt to use any SMTP server. This should be minimal mutt config.
set from = [email protected]
set smtp_url = smtp[s]://[user[:pass]@]host[:port]
set smtp_user = user # if not specified in the smtp_url
set smtp_pass = password # if not specified in the smtp_url
- You can create muttrc in your home directory. Remember the cron you want to send e-mails must be executed by the same user.