# Parts of the configuration were taken from exymple 1:
# This first example is similar to the default configuration (allows for mail from users and daemons on the local machine, as well as permitting email to remote servers), but all outgoing mail is forwarded to a remote SMTP server.
# -> In the default config of Arch Linux, they use localhost
# -> NixOS example config uses lo. https://search.nixos.org/options?channel=23.05&show=services.opensmtpd.serverConfiguration&from=0&size=50&sort=relevance&type=packages
# -> In the NUR, they use lo. https://github.com/nix-community/nur-combined/blob/2bfaab7c1ff891f540618370c2d184d0f000adb0/repos/priegger/modules/services/opensmtpd-relay/default.nix#L16C1-L16C17
# -> `ip addr` returns `lo` on NixOS.
listenonlo
#listen on lo0
#listen on localhost
# Send local mail.
#
# mbox: Deliver the message to the user's mbox with mail.local(8).
# With mail.local: Reads the standard input up to an end-of-file and appends it to each user's mail file.
# With mail files being stored in: /var/mail/user
# maildir: Deliver the message to the maildir in pathname if specified, or by default to ~/Maildir.