README-main 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $OpenBSD: README-main,v 1.4 2015/02/25 15:07:38 jca Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. Using sendmail as the default mailer.
  6. =====================================
  7. Deactivate smtpd
  8. ----------------
  9. Running smtpd(8) and sendmail at the same time is not supported:
  10. # rcctl disable smtpd
  11. Tweaking /etc/mailer.conf
  12. -------------------------
  13. Two scripts are provided along with this package. Run sendmail-enable
  14. to adjust your mailer.conf(5), and sendmail-disable to revert your
  15. changes.
  16. Client mail queue ownership
  17. ---------------------------
  18. This package ensures that /var/spool/clientmqueue is owned by
  19. _smmsp:_smmsp, mode 0770. You should verify that your submit.cf
  20. configuration is not using the previous default settings (smmsp:smmsp).
  21. Activate the queue runner
  22. -------------------------
  23. To process the mails in /var/spool/clientmqueue, the following entry
  24. should be added to root's crontab(5):
  25. */30 * * * * ${PREFIX}/libexec/sendmail/sendmail -L sm-msp-queue -Ac -q
  26. This will start the queue runner every 30 minutes. Adjust according to
  27. your needs.
  28. Enable sendmail at startup time
  29. -------------------------------
  30. Remember to add sendmail to pkg_scripts:
  31. # rcctl enable sendmail
  32. By default, the flags are set for a basic, localhost-only, setup.
  33. To listen to external addresses, they will need changing, e.g.
  34. # rcctl set sendmail flags -L sm-mta -bd -q30m