README 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. $OpenBSD: README,v 1.9 2016/11/04 10:22:26 landry Exp $
  2. +-----------------------------------------------------------------------
  3. | Running ${FULLPKGNAME} on OpenBSD
  4. +-----------------------------------------------------------------------
  5. SYMPA is now installed, and sample configuration files was created in
  6. ${SYMPA_HOME}${SYSCONFDIR}/sympa.conf
  7. Basic configuration
  8. ===================
  9. You should first edit them to suit your needs, at least http_host,
  10. domain, listmaster, db_type, db_host, db_user, db_passwd, wwsympa_url
  11. settings in ${SYMPA_HOME}${SYSCONFDIR}/sympa.conf, and then configure the needed
  12. database. For SQLite, you need to manually create the database file and make
  13. sure _sympa user can write to it.
  14. You should also install the corresponding p5-DBD-{mysql,SQLite,Pg} module.
  15. Moreover, p5-ldap package is needed if you plan to use LDAP features
  16. and p5-SOAP-Lite package is needed if you plan to use sympa_soap_server.
  17. WWSympa configuration
  18. =====================
  19. To enable WWSympa within nginx once wwsympa.fcgi has been spawned,
  20. a sample configuration for nginx follows.
  21. ----<>----<>----<>----<>----<>----
  22. server {
  23. server_name sympa.example.com;
  24. location /static-sympa {
  25. alias /var/www/sympa/;
  26. }
  27. location / {
  28. fastcgi_pass localhost:1026;
  29. fastcgi_split_path_info ^(/sympa)(.+)$;
  30. include fastcgi_params;
  31. fastcgi_param PATH_INFO $fastcgi_path_info;
  32. fastcgi_param SCRIPT_FILENAME ${LOCALBASE}/libexec/sympa/wwsympa-wrapper.fcgi;
  33. }
  34. }
  35. ----<>----<>----<>----<>----<>----
  36. With that, WWSympa should be available at http://sympa.example.com/sympa/
  37. Startup/Shutdown configuration
  38. ==============================
  39. You can control sympa/wwsympa.fcgi daemons using the rc scripts in
  40. ${RCDIR}.
  41. Mail aliases configuration
  42. ==========================
  43. Add systemwide robot aliases to your aliases file:
  44. sympa: "| ${TRUEPREFIX}/libexec/sympa/queue sympa@domain.tld"
  45. listmaster: "| ${TRUEPREFIX}/libexec/sympa/queue listmaster@domain.tld"
  46. bounce+*: "| ${TRUEPREFIX}/libexec/sympa/bouncequeue sympa@domain.tld"
  47. abuse-feedback-report: "| ${TRUEPREFIX}/libexec/sympa/bouncequeue sympa@domain.tld"
  48. sympa-request: postmaster
  49. sympa-owner: postmaster
  50. if you're using sendmail, you should declare ${SYMPA_HOME}/sympa_aliases
  51. as an additional alias file in your sendmail.mc :
  52. define(`ALIAS_FILE', `/etc/mail/aliases,${SYMPA_HOME}/sympa_aliases')dnl
  53. If you're using postfix, edit main.cf and set :
  54. alias_database = hash:/etc/mail/aliases, hash:${SYMPA_HOME}/sympa_aliases
  55. alias_maps = hash:/etc/mail/aliases, hash:${SYMPA_HOME}/sympa_aliases
  56. Security considerations
  57. =======================
  58. Note that the following binaries are installed with particular modes/owner/group :
  59. - the following are 4755 _sympa:_sympa
  60. ${TRUEPREFIX}/libexec/sympa/bouncequeue
  61. ${TRUEPREFIX}/libexec/sympa/familyqueue
  62. ${TRUEPREFIX}/libexec/sympa/queue
  63. - the following are 6755 _sympa:_sympa
  64. ${TRUEPREFIX}/libexec/sympa/sympa_soap_server-wrapper.fcgi
  65. ${TRUEPREFIX}/libexec/sympa/wwsympa-wrapper.fcgi
  66. - the following is 4750 root:_sympa
  67. ${TRUEPREFIX}/libexec/sympa/sympa_newaliases-wrapper
  68. For the various set-uid sympa wrappers to work fine, you have to make
  69. sure ${SYMPA_HOME} is in a partition mounted without nosuid.
  70. Now refer to http://www.sympa.org/manual/index for more information.