configure Mysql and postfix on mailman3
Hello all ,
I configured mailman3 following this contributer guide http://docs.mailman3.org/en/latest/devsetup.html but i'am still getting problem with the configuration of MySQL and postfix . Is this section is enough for MySQL configurations ?
[database] class: mailman.database.mysql.MySQLDatabase url: mysql+pymysql://myuser:mypassword@mymysqlhost/mailman?charset=utf8&use_unicode=1htmlI will appreciated if there are some documents to provide to cotinue the intergration of mailman3 .
Is there any tuto for postfix config ?
Thanks in advance Ouerheni Nouha
Hi,
On Wed, Aug 2, 2017, at 02:02 AM, ouerheni.nouha@gmail.com wrote:
Hello all ,
I configured mailman3 following this contributer guide http://docs.mailman3.org/en/latest/devsetup.html but i'am still getting problem with the configuration of MySQL and postfix . Is this section is enough for MySQL configurations ?
You need to configure the Core and Web Frontend (in Django) separately to use MySQL. The configuration below is enough for Core. For Django, have a look at https://docs.djangoproject.com/en/1.11/ref/settings/#databases .
[database] class: mailman.database.mysql.MySQLDatabase url: mysql+pymysql://myuser:mypassword@mymysqlhost/mailman?charset=utf8&use_unicode=1htmlI will appreciated if there are some documents to provide to cotinue the intergration of mailman3 .
Is there any tuto for postfix config ?
Thanks in advance Ouerheni Nouha
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj
Hello, Ouerheni Nouha and all list
Did you found answer about postfix integration?
In my case, i want to store mailman data from the following postfix maps in mysql (e.g. for reading them from multiple postfix servers): transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
On Tue, Feb 20, 2018, at 5:21 AM, a.matveev@lan-project.ru wrote:
Hello, Ouerheni Nouha and all list
Did you found answer about postfix integration?
For now, there are only two type of postfix configuration that Core produces, regular expressions and simple maps. Storing that in MySQL can be tricky.
One _hack_ that I can think of is that when using maps for postfix, Core calls the "postmap" command to generate the maps from the files that it generates. You can potentially provide a script that updates the MySQL database with the same configuration instead of generating maps and specify that script in configuration to be called by Core instead of "postmap".
I should mention that this is not the intended use, but it can get the work done.
thanks,
In my case, i want to store mailman data from the following postfix maps in mysql (e.g. for reading them from multiple postfix servers): transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Abhilash Raj maxking@asynchronous.in
On 02/20/2018 10:01 AM, Abhilash Raj wrote:
One _hack_ that I can think of is that when using maps for postfix, Core calls the "postmap" command to generate the maps from the files that it generates. You can potentially provide a script that updates the MySQL database with the same configuration instead of generating maps and specify that script in configuration to be called by Core instead of "postmap".
More information on how to do this. On mail.python.org we want to do some manipulations to the various maps, so we have a script to do this. The first step is in your mailman.cfg file, add an [mta] section if there isn't one and in that section add
configuration: /path/to/your/postfix.cfg
That file is a copy of mailman/config/postfix.cfg except you change the line
postmap_command: /usr/sbin/postmap
to
postmap_command: /path/to/your/script
While you could just edit mailman/config/postfix.cfg directly, this is not advisable as your edits will be lost in an upgrade.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (5)
-
a.matveev@lan-project.ru
-
Abhilash Raj
-
Abhilash Raj
-
Mark Sapiro
-
ouerheni.nouha@gmail.com