Giter Club home page Giter Club logo

Comments (7)

ikedas avatar ikedas commented on June 23, 2024

Great documentation!

Helping makemap

I guess, if sympa_newaliases.pl feeds PATH environment variable, there may be no need for helper script:

--- a/src/sbin/sympa_newaliases.pl.in
+++ b/src/sbin/sympa_newaliases.pl.in
@@ -120,6 +120,10 @@ if ($aliases_program =~ m{\A/}) {
     $log->syslog('debug2', 'Executing "%s %s %s < %s"',
         q{--MAKEMAP--}, $aliases_db_type, $aliases_file, $aliases_file);
 
+    # Since makemap(8) of OpenSMTPD reinvokes itself without full path, we
+    # have to feed PATH environment.  Helpful to OpenBSD and Debian.
+    $ENV{PATH} = '/usr/sbin';
+
     unless (open STDIN, '<', $aliases_file) {
         $log->syslog('err', 'Canot open %s', $aliases_file);
         exit 1;

Tracking feature

Sendmail command of OpenSMTPD seems not supporting options for DSN (-N) and envelope ID (-V). These options are used by message tracking feature of Sympa. I suppose sympa_smtpc may be used as a replacement of sendmail command to support this feature (adding a line such as

sendmail /path/to/sympa_smtpc --esmtp localhost

to sympa.conf).

(Unfortunately, currently sympa_smtpc looks disabled on Debian package).


Update: Correct sympa_smtpc setting.

from sympa.

koolfy avatar koolfy commented on June 23, 2024

Updated a ton of typos that were pointed out to me.

I agree for the PATH env, but in my case at the first aliases.db generation the chmod was still necessary… so for now it'll only remove one line

from sympa.

ikedas avatar ikedas commented on June 23, 2024

I agree for the PATH env, but in my case at the first aliases.db generation the chmod was still necessary… so for now it'll only remove one line

Maybe it's a bug: Perhaps umask (027) set by sympa.pl is applied to aliases.db (mode 640), but it should be readable by MTA user. I'll submit PR in a few days.

from sympa.

ikedas avatar ikedas commented on June 23, 2024

I agree for the PATH env, but in my case at the first aliases.db generation the chmod was still necessary… so for now it'll only remove one line

Maybe it's a bug: Perhaps umask (027) set by sympa.pl is applied to aliases.db (mode 640), but it should be readable by MTA user. I'll submit PR in a few days.

I found that at least Postfix doesn't mind permission: It can access to aliases.db owned by sympa:sympa and having mode 640. I'll investigate a bit to find the method not making aliases.db world-readable, if possible.

from sympa.

ikedas avatar ikedas commented on June 23, 2024

Maybe I found solution.

  1. If aliases file does not exist, create it.
# touch /etc/mail/sympa/aliases
  1. Make sympa_aliases writable/readable by sympa, readable by smtpd and not accessible by any other users:
# chmod 640 /etc/mail/sympa/aliases
# chown sympa:smtpd /etc/mail/sympa/aliases
  1. Use makemap to update table.
    Add following line to sympa.conf:
aliases_program /usr/sbin/makemap

from sympa.

ikedas avatar ikedas commented on June 23, 2024

@koolfy, could you contribute your work for Sympa documentation?
https://github.com/sympa-community/sympa-community.github.io

from sympa.

ikedas avatar ikedas commented on June 23, 2024

Let's continue on the new project: sympa-community/sympa-community.github.io#2

This issue is closed.

from sympa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.