From f844164aa85de886de5d67b8d40071bc2f8695be Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Mon, 11 Sep 2017 10:34:04 +0200 Subject: [PATCH 01/24] sympa 6.2.19 beta 2 --- SPECS/sympa-6.2.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 1d7414c..5657112 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -4,11 +4,11 @@ %global use_systemd 0 %endif -%global pre_rel b.1 +%global pre_rel b.2 Name: sympa Version: @VERSION@ -Release: %{?pre_rel:0.}1%{?pre_rel:.%pre_rel}@REV@%{?dist} +Release: %{?pre_rel:0.}2%{?pre_rel:.%pre_rel}@REV@%{?dist} Summary: Powerful multilingual List Manager Summary(fr): Gestionnaire de listes électroniques Summary(ja): 高機能で多言語対応のメーリングリスト管理ソフトウェア From 696fd251508932228ae03446d2394179c7892efe Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 14 Sep 2017 14:11:54 +0200 Subject: [PATCH 02/24] Add changelog entry --- SPECS/sympa-6.2.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 5657112..32662af 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -684,6 +684,9 @@ fi %changelog +* Thu Sep 14 2017 Xavier Bachelot 6.2.19-0.2.b.2 +- Rework spec to better comply with Fedora packaging guidelines. + * Sat Aug 19 2017 IKEDA Soji 6.2.19b.1-1 - Added --bindir to install sympa_smtpc under libexecdir. From 9abd9323897ca5963ade1634d6f596ac4e34c349 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 14 Sep 2017 21:38:36 +0200 Subject: [PATCH 03/24] Ignore test suite results on F25 and F26, earlier and later releases are fine --- SPECS/sympa-6.2.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 32662af..36896e9 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -349,8 +349,8 @@ install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa %check -%if ! 0%{?fedora} -#### Temporarily disabling tests, failing on F25/F26 +%if 0%{?fc25}%{?fc26} +#### Temporarily ignoring tests results, failing on F25 and F26 ## Failed test 'file, nothing else: ok' ## at t/tools_file.t line 23. # @@ -360,6 +360,8 @@ install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa #t/tools_file.t ........... #Dubious, test returned 2 (wstat 512, 0x200) #Failed 2/23 subtests +make check || true +%else make check %endif %if 0%{?do_authorcheck} From fffa16736ca3af4718f3dc6336cf8671d147dedc Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:46:08 +0200 Subject: [PATCH 04/24] Use %make_build and %make_install --- SPECS/sympa-6.2.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 36896e9..cd92eb2 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -275,7 +275,7 @@ export PATH --with-aliases_file=%{_localstatedir}/lib/sympa/sympa_aliases \ --with-perl=%{_bindir}/perl \ INSTALL_DATA='install -c -p -m 644' -make %{?_smp_mflags} +%make_build # cancel workaround in Makefile getting previous version. rm -f previous_sympa_version @@ -285,7 +285,7 @@ pushd po/web_help; rm -f stamp-po; make; popd %install -make install DESTDIR=%{buildroot} +%make_install %find_lang %{name} %find_lang web_help From 28644ae821821f36667323f58885ff8a10cfe364 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:47:00 +0200 Subject: [PATCH 05/24] Don't override PATH --- SPECS/sympa-6.2.spec.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index cd92eb2..a9d3786 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -247,8 +247,6 @@ Sympa の nginx 対応。 autoreconf --install %endif -PATH=/bin:/usr/bin -export PATH # Give install "-p" preserving mtime to prevent unexpected update of CSS. %configure \ --enable-fhs \ From c370756c7f9b44240fbd0f1dc5bb589724ffad56 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:32:43 +0200 Subject: [PATCH 06/24] Move rsyslog conf installation next to logrotate conf installation --- SPECS/sympa-6.2.spec.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index a9d3786..79cdcef 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -324,10 +324,6 @@ install -m 0755 %{SOURCE104} %{buildroot}%{_initrddir}/wwsympa install -m 0755 %{SOURCE105} %{buildroot}%{_initrddir}/sympasoap %endif -# Copy rsyslog config -mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d -install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf - # Copy docs. mv %{buildroot}%{_docdir}/%{name} __doc cp -p AUTHORS.md CONTRIBUTING.md NEWS.md OChangeLog ONEWS README.md __doc/ @@ -341,6 +337,10 @@ cp -p %{SOURCE112} __doc/README.RPM.md cp -p %{SOURCE114} %{SOURCE115} %{buildroot}%{_sysconfdir}/sympa/ chmod 644 %{buildroot}%{_sysconfdir}/sympa/aliases.sympa.* +# Copy rsyslog config +mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d +install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf + # Create logrotate item mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa From 158c0128fe495f2df7952acf0608c609b9426339 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:44:23 +0200 Subject: [PATCH 07/24] Remove useless ca-bundle.crt --- SPECS/sympa-6.2.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 79cdcef..e78ef97 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -291,6 +291,9 @@ pushd po/web_help; rm -f stamp-po; make; popd # Fix perm to prevent warning by rpmlint. chmod a-x %{buildroot}%{_datadir}/%{name}/bin/create_db.Sybase +# Remove useless ca-bundle.crt +rm %{buildroot}%{_datadir}/%{name}/default/ca-bundle.crt + # Save version info. mv %{buildroot}%{_sysconfdir}/sympa/data_structure.version \ %{buildroot}%{_sysconfdir}/sympa/data_structure.current_version From b29bd763a857baf83437de3e29b3a97173c2c054 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 16:14:01 +0200 Subject: [PATCH 08/24] Move README to doc dir --- SPECS/sympa-6.2.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index e78ef97..7c24795 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -335,6 +335,7 @@ cp -p %{SOURCE113} __doc/README.RPM.md %else cp -p %{SOURCE112} __doc/README.RPM.md %endif +mv %{buildroot}%{_sysconfdir}/sympa/README __doc/ # Copy robot aliases. cp -p %{SOURCE114} %{SOURCE115} %{buildroot}%{_sysconfdir}/sympa/ @@ -625,7 +626,6 @@ fi %{_sysconfdir}/smrsh/* %config(noreplace) %{_sysconfdir}/rsyslog.d/* %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/ -%config(noreplace,missingok) %attr(444,root,root) %{_sysconfdir}/sympa/README %config(noreplace) %attr(0640,sympa,sympa) %{_sysconfdir}/sympa/sympa.conf %config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail %config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix From 353d936f1d92f47f56606d5db2d297d11eed4885 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 19:07:28 +0200 Subject: [PATCH 09/24] Add note to unbundle fonts --- SPECS/sympa-6.2.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 7c24795..88cfa95 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -294,6 +294,12 @@ chmod a-x %{buildroot}%{_datadir}/%{name}/bin/create_db.Sybase # Remove useless ca-bundle.crt rm %{buildroot}%{_datadir}/%{name}/default/ca-bundle.crt +# FIXME: Unbundle static_content/external/font-awesome +# fontawesome-fonts{,-web} (available in Fedora and EPEL) + +# FIXME: Unbundle static_content/fonts/Raleway +# impallari-raleway-fonts (available only in Fedora) + # Save version info. mv %{buildroot}%{_sysconfdir}/sympa/data_structure.version \ %{buildroot}%{_sysconfdir}/sympa/data_structure.current_version From 878a7be78f66da9d749e27c4ebdf67c2e5e0343d Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 19:10:15 +0200 Subject: [PATCH 10/24] Don't ship bogus smtpc.1.md --- SPECS/sympa-6.2.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 88cfa95..0ff218a 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -342,6 +342,8 @@ cp -p %{SOURCE113} __doc/README.RPM.md cp -p %{SOURCE112} __doc/README.RPM.md %endif mv %{buildroot}%{_sysconfdir}/sympa/README __doc/ +# Remove smtpc.1.md (this should be made a manpage instead) +rm __doc/smtpc.1.md # Copy robot aliases. cp -p %{SOURCE114} %{SOURCE115} %{buildroot}%{_sysconfdir}/sympa/ From 497f4ea52d8a3fe1ec443bf0c7900f4ca0cdc287 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Mon, 11 Sep 2017 17:24:23 +0200 Subject: [PATCH 11/24] Fix create_cookie to only replace the cookie config and not random comments in the conf file --- SPECS/sympa-6.2.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 0ff218a..c62cdc9 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -430,7 +430,7 @@ function create_cookie { dd if=/dev/urandom bs=2048 count=1 2>/dev/null | md5sum | \ cut -d" " -f1 > $cook fi - perl -i -pe '/^#*\s*cookie\s/ and $_ = "cookie ".`cat '$cook'`."\n"' \ + perl -i -pe '/^#cookie\s/ and $_ = "cookie ".`cat '$cook'`."\n"' \ %{_sysconfdir}/sympa/sympa.conf fi rm -f $cook From 45958f3592811ea0c8dc8fc0a6a13ea4b3327ead Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 14 Sep 2017 14:41:46 +0200 Subject: [PATCH 12/24] Use mktemp to create temporary cookie file in %post --- SPECS/sympa-6.2.spec.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index c62cdc9..3f5e3fc 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -417,10 +417,7 @@ function fix_conf_and_robots_owner { # create cookie function create_cookie { - cook=%{_sysconfdir}/sympa/current_cookie.$$ - touch $cook - chown sympa:sympa $cook - chmod 640 $cook + cook=`mktemp` perl -ne 'chomp $_; print $1 if /^cookie\s+(\S.*)/' \ %{_sysconfdir}/sympa/sympa.conf > $cook if [ '!' -s $cook ]; then From 69491c4be0eede9d6d87b41bc7caa51e2d03dbfd Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:21:34 +0200 Subject: [PATCH 13/24] Remove function to migrate legacy /etc/sysconfig/sympa --- SPECS/sympa-6.2.spec.in | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 3f5e3fc..d261457 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -498,40 +498,6 @@ function upgrade_data_structure { fi } -# Migrate /etc/sysconfig/sympa from previous RPM releases. -function migrate_sysconfig_sympa { - [ -f %{_sysconfdir}/sysconfig/sympa ] || return - grep -q '^aliases_program' %{_sysconfdir}/sympa/sympa.conf && return - . %{_sysconfdir}/sysconfig/sympa - - newaliases_program= - - case "$NEWALIASES_PROGRAM" in - postfix) - newaliases_program=postalias - ;; - postfix-postmap|postmap) - newaliases_program=postmap - ;; - sendmail|newaliases) - newaliases_program=newaliases - ;; - sendmail-makemap|makemap) - newaliases_program=makemap - ;; - *) - newaliases_program="$NEWALIASES_PROGRAM" - ;; - esac - [ "x$newaliases_program" = "x" ] && return - - ( - echo '' - echo '# Migrated from %{_sysconfdir}/sysconfig/sympa' - echo "aliases_program $newaliases_program" - ) >> %{_sysconfdir}/sympa/sympa.conf -} - # Install if [ $1 -eq 1 ]; then create_cookie @@ -548,7 +514,6 @@ fi if [ $1 -gt 1 ]; then fix_conf_and_robots_owner upgrade_data_structure - migrate_sysconfig_sympa fi From ecaa5cf349265ddb16cb79b3ca50737f594bf03a Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:26:54 +0200 Subject: [PATCH 14/24] Remove un-necessary owner/group fixup of main and robot confs --- SPECS/sympa-6.2.spec.in | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index d261457..f3c0437 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -401,20 +401,6 @@ exit 0 /sbin/chkconfig --add sympa %endif -# make etc directory and its contents writable by system user. -function fix_conf_and_robots_owner { - chown sympa:sympa %{_sysconfdir}/sympa - chown sympa:sympa %{_sysconfdir}/sympa/sympa.conf - [ -e %{_sysconfdir}/sympa/data_structure.version ] && \ - chown sympa:sympa %{_sysconfdir}/sympa/data_structure.version - for robotdir in %{_sysconfdir}/sympa/*/; do - if [ -d "$robotdir" -a -f "$robotdir/robot.conf" ]; then - chown sympa:sympa "$robotdir" - chown sympa:sympa "$robotdir"/robot.conf - fi - done -} - # create cookie function create_cookie { cook=`mktemp` @@ -512,7 +498,6 @@ fi # Update if [ $1 -gt 1 ]; then - fix_conf_and_robots_owner upgrade_data_structure fi From 392f86634df5ccf336e59136bdf2698a02b0c00e Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 17:03:57 +0200 Subject: [PATCH 15/24] Don't hide intranet choices --- SPECS/sympa-6.2.spec.in | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index f3c0437..d20c312 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -425,24 +425,6 @@ function create_config { ## create site configurations cp -p %{_sysconfdir}/sympa/data_structure.current_version \ %{_sysconfdir}/sympa/data_structure.version - ## Hide sample ``intranet'' choices. - # create_list.conf - if [ '!' -e %{_sysconfdir}/sympa/create_list.conf ]; then - cp -p %{_datadir}/sympa/default/create_list.conf \ - %{_sysconfdir}/sympa/create_list.conf - cd %{_datadir}/sympa/default/create_list_templates - for template in *intranet*; do - ( echo ''; echo "$template hidden" ) \ - >> %{_sysconfdir}/sympa/create_list.conf - done - fi - # scenari - cd %{_datadir}/sympa/default/scenari - for scenario in *intranet*; do - if [ '!' -e %{_sysconfdir}/sympa/scenari/$scenario ]; then - touch %{_sysconfdir}/sympa/scenari/$scenario:ignore - fi - done ## create sympa_aliases if [ '!' -e %{_localstatedir}/lib/sympa/sympa_aliases ]; then touch %{_localstatedir}/lib/sympa/sympa_aliases From 8992f829341afbe38e9170f5cfbb85bb810da957 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:40:43 +0200 Subject: [PATCH 16/24] Re-order %files --- SPECS/sympa-6.2.spec.in | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index d20c312..59a4c57 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -545,32 +545,12 @@ fi %files -f %{name}.lang %doc __doc/* %license COPYING -%attr(-,sympa,sympa) %{_localstatedir}/lib/sympa/ -%attr(-,sympa,sympa) %{_localstatedir}/spool/sympa/ -%{_sbindir}/* -%dir %{_libexecdir}/sympa/ -%attr(4755,sympa,sympa) %{_libexecdir}/sympa/bouncequeue -%attr(4755,sympa,sympa) %{_libexecdir}/sympa/familyqueue -%attr(4755,sympa,sympa) %{_libexecdir}/sympa/queue -%attr(4750,root,sympa) %{_libexecdir}/sympa/sympa_newaliases-wrapper -%attr(0750,sympa,sympa) %{_libexecdir}/sympa/sympa_smtpc -%{_mandir}/man1/* -%{_mandir}/man3/* -%{_mandir}/man5/* -%{_mandir}/man8/* -%{_datadir}/sympa/ -%config(noreplace) %{_sysconfdir}/logrotate.d/sympa -%{_sysconfdir}/smrsh/* -%config(noreplace) %{_sysconfdir}/rsyslog.d/* %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/ %config(noreplace) %attr(0640,sympa,sympa) %{_sysconfdir}/sympa/sympa.conf -%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail -%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix %config(missingok) %{_sysconfdir}/sympa/create_list_templates %config(missingok) %{_sysconfdir}/sympa/custom_actions %config(missingok) %{_sysconfdir}/sympa/custom_conditions %config(missingok) %{_sysconfdir}/sympa/data_sources -%config(missingok) %{_sysconfdir}/sympa/data_structure.current_version %config(missingok) %{_sysconfdir}/sympa/families %config(missingok) %{_sysconfdir}/sympa/global_task_models %config(missingok) %{_sysconfdir}/sympa/list_task_models @@ -578,6 +558,27 @@ fi %config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mail_tt2 %config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/scenari %config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/web_tt2 +%config(missingok) %{_sysconfdir}/sympa/data_structure.current_version +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/aliases +%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail +%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix +%{_sysconfdir}/smrsh/* +%config(noreplace) %{_sysconfdir}/rsyslog.d/* +%config(noreplace) %{_sysconfdir}/logrotate.d/sympa +%{_sbindir}/* +%dir %{_libexecdir}/sympa/ +%attr(4755,sympa,sympa) %{_libexecdir}/sympa/bouncequeue +%attr(4755,sympa,sympa) %{_libexecdir}/sympa/familyqueue +%attr(4755,sympa,sympa) %{_libexecdir}/sympa/queue +%attr(4750,root,sympa) %{_libexecdir}/sympa/sympa_newaliases-wrapper +%attr(0750,sympa,sympa) %{_libexecdir}/sympa/sympa_smtpc +%attr(-,sympa,sympa) %{_localstatedir}/lib/sympa/ +%attr(-,sympa,sympa) %{_localstatedir}/spool/sympa/ +%{_datadir}/sympa/ +%{_mandir}/man1/* +%{_mandir}/man3/* +%{_mandir}/man5/* +%{_mandir}/man8/* %if %{use_systemd} %{_unitdir}/sympa.service %{_unitdir}/sympa-outgoing.service From 5221a70127f60968e3d59d4658d2a66f4fa5e1f1 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:04:02 +0200 Subject: [PATCH 17/24] Fix creation of directory structure for overiding default configs --- SPECS/sympa-6.2.spec.in | 46 +++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 59a4c57..dcd97f2 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -357,6 +357,21 @@ install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa +# Create configuration override structure +for conffile in \ + auth.conf charset.conf crawlers_detection.conf create_list.conf \ + edit_list.conf nrcpt_by_domain.conf topics.conf \ + mime.types sympa.wsdl ; + do cp -a %{buildroot}%{_datadir}/%{name}/default/$conffile \ + %{buildroot}%{_sysconfdir}/%{name}/; +done +for confdir in \ + create_list_templates global_task_models list_task_models scenari \ + mail_tt2 web_tt2 custom_actions custom_conditions data_sources families \ + search_filters ; + do mkdir %{buildroot}%{_sysconfdir}/$confdir +done + %check %if 0%{?fc25}%{?fc26} @@ -547,17 +562,26 @@ fi %license COPYING %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/ %config(noreplace) %attr(0640,sympa,sympa) %{_sysconfdir}/sympa/sympa.conf -%config(missingok) %{_sysconfdir}/sympa/create_list_templates -%config(missingok) %{_sysconfdir}/sympa/custom_actions -%config(missingok) %{_sysconfdir}/sympa/custom_conditions -%config(missingok) %{_sysconfdir}/sympa/data_sources -%config(missingok) %{_sysconfdir}/sympa/families -%config(missingok) %{_sysconfdir}/sympa/global_task_models -%config(missingok) %{_sysconfdir}/sympa/list_task_models -%config(missingok) %{_sysconfdir}/sympa/search_filters -%config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mail_tt2 -%config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/scenari -%config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/web_tt2 +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/auth.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/charset.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/crawlers_detection.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/create_list.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/edit_list.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/nrcpt_by_domain.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/topics.conf +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mime.types +%config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/sympa.wsdl +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/create_list_templates +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/global_task_models +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/list_task_models +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/scenari +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mail_tt2 +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/web_tt2 +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/custom_actions +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/custom_conditions +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/data_sources +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/families +%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/search_filters %config(missingok) %{_sysconfdir}/sympa/data_structure.current_version %config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/aliases %config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail From 447299a2f9fe5e62bf83b59a16e595d4e964c22d Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 27 Sep 2017 18:24:51 +0200 Subject: [PATCH 18/24] data_structure.current_version needs to be owned by user and group sympa --- SPECS/sympa-6.2.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index dcd97f2..2c8f12c 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -582,7 +582,7 @@ fi %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/data_sources %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/families %dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/search_filters -%config(missingok) %{_sysconfdir}/sympa/data_structure.current_version +%config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/data_structure.current_version %config(noreplace) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/aliases %config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail %config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix From af4808c43d4f03aced385f1ab85e3279babc41ec Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Mon, 18 Sep 2017 17:28:29 +0200 Subject: [PATCH 19/24] Replace deprecated fcgid directives with their new names --- SOURCES/sympa-httpd-fcgid-el6.conf | 6 +++--- SOURCES/sympa-httpd-fcgid-el7.conf | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SOURCES/sympa-httpd-fcgid-el6.conf b/SOURCES/sympa-httpd-fcgid-el6.conf index cf11a66..e6d4fbd 100644 --- a/SOURCES/sympa-httpd-fcgid-el6.conf +++ b/SOURCES/sympa-httpd-fcgid-el6.conf @@ -2,10 +2,10 @@ ## Definition of Sympa FastCGI server. - IPCCommTimeout 300 + FcgidIOTimeout 300 # You wish to increase the value in following line, don't you? - MaxProcessCount 5 - MaxRequestLen 131072 + FcgidMaxProcesses 5 + FcgidMaxRequestLen 131072 # If you changed wwsympa_url in sympa.conf, change this path too. diff --git a/SOURCES/sympa-httpd-fcgid-el7.conf b/SOURCES/sympa-httpd-fcgid-el7.conf index 28eb572..89e3c62 100644 --- a/SOURCES/sympa-httpd-fcgid-el7.conf +++ b/SOURCES/sympa-httpd-fcgid-el7.conf @@ -2,10 +2,10 @@ ## Definition of Sympa FastCGI server. - IPCCommTimeout 300 + FcgidIOTimeout 300 # You wish to increase the value in following line, don't you? - MaxProcessCount 5 - MaxRequestLen 131072 + FcgidMaxProcesses 5 + FcgidMaxRequestLen 131072 # If you changed wwsympa_url in sympa.conf, change this path too. From f3b6ba3c8f91543300f1dad7b29fd805ef0077b9 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Tue, 19 Sep 2017 15:22:42 +0200 Subject: [PATCH 20/24] FcgidMaxProcesses should be set in /etc/httpd/conf.d/fcgid.conf if needed, but not in sympa.conf --- SOURCES/sympa-httpd-fcgid-el6.conf | 2 -- SOURCES/sympa-httpd-fcgid-el7.conf | 2 -- 2 files changed, 4 deletions(-) diff --git a/SOURCES/sympa-httpd-fcgid-el6.conf b/SOURCES/sympa-httpd-fcgid-el6.conf index e6d4fbd..0682b2e 100644 --- a/SOURCES/sympa-httpd-fcgid-el6.conf +++ b/SOURCES/sympa-httpd-fcgid-el6.conf @@ -3,8 +3,6 @@ ## Definition of Sympa FastCGI server. FcgidIOTimeout 300 - # You wish to increase the value in following line, don't you? - FcgidMaxProcesses 5 FcgidMaxRequestLen 131072 # If you changed wwsympa_url in sympa.conf, change this path too. diff --git a/SOURCES/sympa-httpd-fcgid-el7.conf b/SOURCES/sympa-httpd-fcgid-el7.conf index 89e3c62..957edce 100644 --- a/SOURCES/sympa-httpd-fcgid-el7.conf +++ b/SOURCES/sympa-httpd-fcgid-el7.conf @@ -3,8 +3,6 @@ ## Definition of Sympa FastCGI server. FcgidIOTimeout 300 - # You wish to increase the value in following line, don't you? - FcgidMaxProcesses 5 FcgidMaxRequestLen 131072 # If you changed wwsympa_url in sympa.conf, change this path too. From 139c03c3273ede1fac24ebd03196c021d153620e Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 27 Sep 2017 18:20:51 +0200 Subject: [PATCH 21/24] Rename httpd conf according to httpd version --- .../{sympa-httpd-fcgid-el6.conf => sympa-httpd22-fcgid.conf} | 0 .../{sympa-httpd-fcgid-el7.conf => sympa-httpd24-fcgid.conf} | 0 SPECS/sympa-6.2.spec.in | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename SOURCES/{sympa-httpd-fcgid-el6.conf => sympa-httpd22-fcgid.conf} (100%) rename SOURCES/{sympa-httpd-fcgid-el7.conf => sympa-httpd24-fcgid.conf} (100%) diff --git a/SOURCES/sympa-httpd-fcgid-el6.conf b/SOURCES/sympa-httpd22-fcgid.conf similarity index 100% rename from SOURCES/sympa-httpd-fcgid-el6.conf rename to SOURCES/sympa-httpd22-fcgid.conf diff --git a/SOURCES/sympa-httpd-fcgid-el7.conf b/SOURCES/sympa-httpd24-fcgid.conf similarity index 100% rename from SOURCES/sympa-httpd-fcgid-el7.conf rename to SOURCES/sympa-httpd24-fcgid.conf diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index 2c8f12c..b666aca 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -17,8 +17,8 @@ URL: http://www.sympa.org Source0: https://github.com/sympa-community/sympa/releases/download/%{version}%{?pre_rel}/%{name}-%{version}%{?pre_rel}.tar.gz -Source100: sympa-httpd-fcgid-el6.conf -Source101: sympa-httpd-fcgid-el7.conf +Source100: sympa-httpd22-fcgid.conf +Source101: sympa-httpd24-fcgid.conf Source102: sympa-lighttpd.conf Source103: sympa-nginx-spawn_fcgi.conf Source104: sympa-nginx-wwsympa-6.2.init From 8a89be99fb59233f4e11754f9f505a20b45064f3 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 13 Sep 2017 18:51:06 +0200 Subject: [PATCH 22/24] Rename README.RPM.md --- ...a-6.2.18-el7-README.RPM.md => sympa-systemd-README.RPM.md} | 0 ...-6.2.18-el6-README.RPM.md => sympa-sysvinit-README.RPM.md} | 0 SPECS/sympa-6.2.spec.in | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename SOURCES/{sympa-6.2.18-el7-README.RPM.md => sympa-systemd-README.RPM.md} (100%) rename SOURCES/{sympa-6.2.18-el6-README.RPM.md => sympa-sysvinit-README.RPM.md} (100%) diff --git a/SOURCES/sympa-6.2.18-el7-README.RPM.md b/SOURCES/sympa-systemd-README.RPM.md similarity index 100% rename from SOURCES/sympa-6.2.18-el7-README.RPM.md rename to SOURCES/sympa-systemd-README.RPM.md diff --git a/SOURCES/sympa-6.2.18-el6-README.RPM.md b/SOURCES/sympa-sysvinit-README.RPM.md similarity index 100% rename from SOURCES/sympa-6.2.18-el6-README.RPM.md rename to SOURCES/sympa-sysvinit-README.RPM.md diff --git a/SPECS/sympa-6.2.spec.in b/SPECS/sympa-6.2.spec.in index b666aca..fbc585f 100644 --- a/SPECS/sympa-6.2.spec.in +++ b/SPECS/sympa-6.2.spec.in @@ -25,8 +25,8 @@ Source104: sympa-nginx-wwsympa-6.2.init Source105: sympa-nginx-sympasoap-6.2.init Source106: sympa-rsyslog.conf Source107: sympa-logrotate.conf -Source112: sympa-6.2.18-el6-README.RPM.md -Source113: sympa-6.2.18-el7-README.RPM.md +Source112: sympa-sysvinit-README.RPM.md +Source113: sympa-systemd-README.RPM.md Source114: aliases.sympa.sendmail Source115: aliases.sympa.postfix Source129: sympa.service.d-dependencies.conf From 001e622474f0d514612644d588a00b8efdd55b08 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Thu, 14 Sep 2017 13:38:17 +0200 Subject: [PATCH 23/24] Fix typos in README.RPM.md --- SOURCES/sympa-systemd-README.RPM.md | 4 ++-- SOURCES/sympa-sysvinit-README.RPM.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SOURCES/sympa-systemd-README.RPM.md b/SOURCES/sympa-systemd-README.RPM.md index 6a79929..e711431 100644 --- a/SOURCES/sympa-systemd-README.RPM.md +++ b/SOURCES/sympa-systemd-README.RPM.md @@ -4,7 +4,7 @@ Post-install instruction for RPM package by IKEDA Soji If you are reading this text, you may have successfully installed sympa -package. A bunch of works is needed to start your Sympa service. +package. A bunch of work is needed to start your Sympa service. 1 Run sympa_wizard ================== @@ -53,7 +53,7 @@ a. MySQL or MariaDB N.B.: MySQL/MariaDB 5.5.3 or later provides ``utf8mb4`` character set which covers full range of Unicode including such as chinese ideographs used for persons' names. As of Sympa-6.2a.33 r8753, both ``utf8`` and -``utf8mb4`` character sets are supported. To use ``utf8mb4`` charcter +``utf8mb4`` character sets are supported. To use ``utf8mb4`` character set, you might want to replace ``utf8`` in SQL statement above with ``utf8mb4``. diff --git a/SOURCES/sympa-sysvinit-README.RPM.md b/SOURCES/sympa-sysvinit-README.RPM.md index 3acc9d2..e2a9a6f 100644 --- a/SOURCES/sympa-sysvinit-README.RPM.md +++ b/SOURCES/sympa-sysvinit-README.RPM.md @@ -4,7 +4,7 @@ Post-install instruction for RPM package by IKEDA Soji If you are reading this text, you may have successfully installed sympa -package. A bunch of works is needed to start your Sympa service. +package. A bunch of work is needed to start your Sympa service. 1 Run sympa_wizard ================== @@ -53,7 +53,7 @@ a. MySQL or MariaDB N.B.: MySQL/MariaDB 5.5.3 or later provides ``utf8mb4`` character set which covers full range of Unicode including such as chinese ideographs used for persons' names. As of Sympa-6.2a.33 r8753, both ``utf8`` and -``utf8mb4`` character sets are supported. To use ``utf8mb4`` charcter +``utf8mb4`` character sets are supported. To use ``utf8mb4`` character set, you might want to replace ``utf8`` in SQL statement above with ``utf8mb4``. From d65ddc70505fb1cb7a7b501d2667a8895f1b16b2 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Wed, 27 Sep 2017 18:28:51 +0200 Subject: [PATCH 24/24] doc: Setup MTA before DB to receive mail sent by 'sympa.pl --health_check' --- SOURCES/sympa-systemd-README.RPM.md | 202 +++++++++++++-------------- SOURCES/sympa-sysvinit-README.RPM.md | 202 +++++++++++++-------------- 2 files changed, 202 insertions(+), 202 deletions(-) diff --git a/SOURCES/sympa-systemd-README.RPM.md b/SOURCES/sympa-systemd-README.RPM.md index e711431..ce167b4 100644 --- a/SOURCES/sympa-systemd-README.RPM.md +++ b/SOURCES/sympa-systemd-README.RPM.md @@ -13,7 +13,107 @@ package. A bunch of work is needed to start your Sympa service. Sympa and updates site configuration files. In this process you must choose e-mail(s) of listmaster, database settings and so on. -2 Setup database +2 Configure mail server +======================= + +a. Sendmail +----------- + + * Edit /etc/sympa/aliases.sympa.sendmail file as you prefer. + + * Edit /etc/mail/sendmail.cf: + + * Add following paths to AliasFile: + + * /etc/sympa/aliases.sympa.sendmail + + * /var/lib/sympa/sympa_aliases + + * Or, if you are generating sendmail.cf by cf package, edit sendmail.mc + to add paths above to argument of ``ALIAS_FILE`` macro. + + * Run ``newaliases``. + + * Run ``systemctl restart sendmail.service``. + +N.B.: This instruction is to use newaliases(1) maintainance tool. If you +wish to use makemap(1), edit /etc/sympa/sympa.conf to add a line +``aliases_program makemap``. + +b. Postfix +---------- + + * Edit /etc/sympa/sympa.conf to add following line: + ``` + aliases_program postalias + ``` + + * Edit /etc/sympa/aliases.sympa.postfix file as you prefer. + + * Edit /etc/postfix/main.cf: + + * Add following maps to $alias_maps: + + * hash:/etc/sympa/aliases.sympa.postfix + + * hash:/var/lib/sympa/sympa_aliases + + * Add following map to $alias_database: + + * hash:/etc/sympa/aliases.sympa.postfix + + * Add following line: + ``` + recipient_delimiter = + + ``` + + * Run ``newaliases``. + + * Run ``su sympa -c /usr/sbin/sympa_newaliases.pl``. + + * Run ``systemctl restart postfix.service``. + +N.B.: This instruction is to use postalias(1) maintainance tool. If you +wish to use postmap(1), edit /etc/sympa/sympa.conf to add a line +``aliases_program postmap``. + +c. Other MTAs +------------- + +About setting with exim and qmail, see following FAQ answers: + + * http://www.sympa.org/faq/exim (English) + + * http://www.sympa.org/faq/qmail (English) + +(Optional) Virtual domains +-------------------------- + +About virtual domain settings see following pages: + + * http://www.sympa.org/manual/mail-aliases#virtual_domains (English) + + * http://www.sympa.org/ja/manual/mail-aliases#virtual_domains (Japanese) + +More sophisticated virtual domain setting on Postfix is described at +following page: + + * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29/Real_Virtual_Domain + (English) + + * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29 (Japanese) + +(Optional) Automatic lists +-------------------------- + +See following page: + + * http://www.sympa.org/manual/list-families (English) + +If you want to use sympa-milter, you may install ``sympa-milter`` package. +Note that sympa-milter 0.7 or later is required. + +3 Setup database ================ * Appropriate DBI driver (DBD) should be installed: DBD::mysql, DBD::Pg, @@ -145,106 +245,6 @@ See following page: * http://www.sympa.org/manual/database (English) -3 Configure mail server -======================= - -a. Sendmail ------------ - - * Edit /etc/sympa/aliases.sympa.sendmail file as you prefer. - - * Edit /etc/mail/sendmail.cf: - - * Add following paths to AliasFile: - - * /etc/sympa/aliases.sympa.sendmail - - * /var/lib/sympa/sympa_aliases - - * Or, if you are generating sendmail.cf by cf package, edit sendmail.mc - to add paths above to argument of ``ALIAS_FILE`` macro. - - * Run ``newaliases``. - - * Run ``systemctl restart sendmail.service``. - -N.B.: This instruction is to use newaliases(1) maintainance tool. If you -wish to use makemap(1), edit /etc/sympa/sympa.conf to add a line -``aliases_program makemap``. - -b. Postfix ----------- - - * Edit /etc/sympa/sympa.conf to add following line: - ``` - aliases_program postalias - ``` - - * Edit /etc/sympa/aliases.sympa.postfix file as you prefer. - - * Edit /etc/postfix/main.cf: - - * Add following maps to $alias_maps: - - * hash:/etc/sympa/aliases.sympa.postfix - - * hash:/var/lib/sympa/sympa_aliases - - * Add following map to $alias_database: - - * hash:/etc/sympa/aliases.sympa.postfix - - * Add following line: - ``` - recipient_delimiter = + - ``` - - * Run ``newaliases``. - - * Run ``su sympa -c /usr/sbin/sympa_newaliases.pl``. - - * Run ``systemctl restart postfix.service``. - -N.B.: This instruction is to use postalias(1) maintainance tool. If you -wish to use postmap(1), edit /etc/sympa/sympa.conf to add a line -``aliases_program postmap``. - -c. Other MTAs -------------- - -About setting with exim and qmail, see following FAQ answers: - - * http://www.sympa.org/faq/exim (English) - - * http://www.sympa.org/faq/qmail (English) - -(Optional) Virtual domains --------------------------- - -About virtual domain settings see following pages: - - * http://www.sympa.org/manual/mail-aliases#virtual_domains (English) - - * http://www.sympa.org/ja/manual/mail-aliases#virtual_domains (Japanese) - -More sophisticated virtual domain setting on Postfix is described at -following page: - - * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29/Real_Virtual_Domain - (English) - - * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29 (Japanese) - -(Optional) Automatic lists --------------------------- - -See following page: - - * http://www.sympa.org/manual/list-families (English) - -If you want to use sympa-milter, you may install ``sympa-milter`` package. -Note that sympa-milter 0.7 or later is required. - 4 Configure HTTP server ======================= diff --git a/SOURCES/sympa-sysvinit-README.RPM.md b/SOURCES/sympa-sysvinit-README.RPM.md index e2a9a6f..80527cf 100644 --- a/SOURCES/sympa-sysvinit-README.RPM.md +++ b/SOURCES/sympa-sysvinit-README.RPM.md @@ -13,7 +13,107 @@ package. A bunch of work is needed to start your Sympa service. Sympa and updates site configuration files. In this process you must choose e-mail(s) of listmaster, database settings and so on. -2 Setup database +2 Configure mail server +======================= + +a. Sendmail +----------- + + * Edit /etc/sympa/aliases.sympa.sendmail file as you prefer. + + * Edit /etc/mail/sendmail.cf: + + * Add following paths to AliasFile: + + * /etc/sympa/aliases.sympa.sendmail + + * /var/lib/sympa/sympa_aliases + + * Or, if you are generating sendmail.cf by cf package, edit sendmail.mc + to add paths above to argument of ``ALIAS_FILE`` macro. + + * Run ``newaliases``. + + * Run ``service sendmail condrestart``. + +N.B.: This instruction is to use newaliases(1) maintainance tool. If you +wish to use makemap(1), edit /etc/sympa/sympa.conf to add a line +``aliases_program makemap``. + +b. Postfix +---------- + + * Edit /etc/sympa/sympa.conf to add following line: + ``` + aliases_program postalias + ``` + + * Edit /etc/sympa/aliases.sympa.postfix file as you prefer. + + * Edit /etc/postfix/main.cf: + + * Add following maps to $alias_maps: + + * hash:/etc/sympa/aliases.sympa.postfix + + * hash:/var/lib/sympa/sympa_aliases + + * Add following map to $alias_database: + + * hash:/etc/sympa/aliases.sympa.postfix + + * Add following line: + ``` + recipient_delimiter = + + ``` + + * Run ``newaliases``. + + * Run ``su sympa -c /usr/sbin/sympa_newaliases.pl``. + + * Run ``service postfix condrestart``. + +N.B.: This instruction is to use postalias(1) maintainance tool. If you +wish to use postmap(1), edit /etc/sympa/sympa.conf to add a line +``aliases_program postmap``. + +c. Other MTAs +------------- + +About setting with exim and qmail, see following FAQ answers: + + * http://www.sympa.org/faq/exim (English) + + * http://www.sympa.org/faq/qmail (English) + +(Optional) Virtual domains +-------------------------- + +About virtual domain settings see following pages: + + * http://www.sympa.org/manual/mail-aliases#virtual_domains (English) + + * http://www.sympa.org/ja/manual/mail-aliases#virtual_domains (Japanese) + +More sophisticated virtual domain setting on Postfix is described at +following page: + + * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29/Real_Virtual_Domain + (English) + + * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29 (Japanese) + +(Optional) Automatic lists +-------------------------- + +See following page: + + * http://www.sympa.org/manual/list-families (English) + +If you want to use sympa-milter, you may install ``sympa-milter`` package. +Note that sympa-milter 0.7 or later is required. + +3 Setup database ================ * Appropriate DBI driver (DBD) should be installed: DBD::mysql, DBD::Pg, @@ -145,106 +245,6 @@ See following page: * http://www.sympa.org/manual/database (English) -3 Configure mail server -======================= - -a. Sendmail ------------ - - * Edit /etc/sympa/aliases.sympa.sendmail file as you prefer. - - * Edit /etc/mail/sendmail.cf: - - * Add following paths to AliasFile: - - * /etc/sympa/aliases.sympa.sendmail - - * /var/lib/sympa/sympa_aliases - - * Or, if you are generating sendmail.cf by cf package, edit sendmail.mc - to add paths above to argument of ``ALIAS_FILE`` macro. - - * Run ``newaliases``. - - * Run ``service sendmail condrestart``. - -N.B.: This instruction is to use newaliases(1) maintainance tool. If you -wish to use makemap(1), edit /etc/sympa/sympa.conf to add a line -``aliases_program makemap``. - -b. Postfix ----------- - - * Edit /etc/sympa/sympa.conf to add following line: - ``` - aliases_program postalias - ``` - - * Edit /etc/sympa/aliases.sympa.postfix file as you prefer. - - * Edit /etc/postfix/main.cf: - - * Add following maps to $alias_maps: - - * hash:/etc/sympa/aliases.sympa.postfix - - * hash:/var/lib/sympa/sympa_aliases - - * Add following map to $alias_database: - - * hash:/etc/sympa/aliases.sympa.postfix - - * Add following line: - ``` - recipient_delimiter = + - ``` - - * Run ``newaliases``. - - * Run ``su sympa -c /usr/sbin/sympa_newaliases.pl``. - - * Run ``service postfix condrestart``. - -N.B.: This instruction is to use postalias(1) maintainance tool. If you -wish to use postmap(1), edit /etc/sympa/sympa.conf to add a line -``aliases_program postmap``. - -c. Other MTAs -------------- - -About setting with exim and qmail, see following FAQ answers: - - * http://www.sympa.org/faq/exim (English) - - * http://www.sympa.org/faq/qmail (English) - -(Optional) Virtual domains --------------------------- - -About virtual domain settings see following pages: - - * http://www.sympa.org/manual/mail-aliases#virtual_domains (English) - - * http://www.sympa.org/ja/manual/mail-aliases#virtual_domains (Japanese) - -More sophisticated virtual domain setting on Postfix is described at -following page: - - * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29/Real_Virtual_Domain - (English) - - * http://sympa-ja.org/wiki/Virtual_domain_%28Postfix%29 (Japanese) - -(Optional) Automatic lists --------------------------- - -See following page: - - * http://www.sympa.org/manual/list-families (English) - -If you want to use sympa-milter, you may install ``sympa-milter`` package. -Note that sympa-milter 0.7 or later is required. - 4 Configure HTTP server =======================