Rudolf Adamkovič Personal site


Configuration: SMTP (sendmail.el)

(with-eval-after-load 'sendmail
  (setq send-mail-function #'smtpmail-send-it))
(with-eval-after-load 'smtpmail
  (let ((server "smtp.fastmail.com"))
    (setq smtpmail-smtp-server server
          smtpmail-servers-requiring-authorization (regexp-quote server)
          smtpmail-smtp-service 465
          smtpmail-stream-type 'ssl)))

Put the SMTP credentials to the ‘~/.authinfo.gpg’ file:

echo \
    machine smtp.fastmail.com \
    login rudolf@adamkovic.org \
    password "$(pass fastmail+mail)" \
    | gpg \
          --batch \
          --encrypt \
          --recipient rudolf@adamkovic.org \
          --trust-model always \
          --output ~/.authinfo.gpg

Workaround. Load ‘smtpmail’ to avoid errors all over Emacs, from ‘list-packages’ to Magit and Notmuch.

(require 'smtpmail)

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.