[Mailman-Users] Problems with mail delivery, configure Mailman with Postfix

Mark Sapiro mark at msapiro.net
Fri Aug 19 15:45:45 EDT 2016


On 08/19/2016 04:15 AM, Gines Granados Bayona wrote:
>
> I have made the settings you provided me Mark Sapiro, but still does not
> work, and even though I check can not find the error.


And what exactly is the problem?

Please describe exactly what you do, what result you expect and what
actual result you see.


> Run the command you indicated me, Mark Sapiro
>
> [root at lab log]# postconf -n
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases

You need

alias_maps = hash:/etc/aliases, hash:/path/to/mailman/aliases

where /path/to/mailman/ is the directory containing your aliases file below.


> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> data_directory = /var/lib/postfix
> debug_peer_level = 2
> html_directory = no
> inet_interfaces = localhost
> inet_protocols = ipv4
> local_recipient_maps = proxy:unix:passwd.byname $alias_maps
> mail_owner = postfix
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> mydestination = $mydomain, localhost.$mydomain, $myhostname localhost
> mydomain = lab.company.net
> myhostname = lista.$mydomain
> mynetworks = $mydomain 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
> recipient_delimiter = +
> sample_directory = /usr/share/doc/postfix-2.6.6/samples
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> unknown_local_recipient_reject_code = 550
> [root at lab log]#
>
> Then locate the configuration file
>
> [root at lab /]# find / -iname mm_cfg.py
> /usr/lib/mailman/Mailman/mm_cfg.py
> /etc/mailman/mm_cfg.py
>
> I accessed to the directory
>
> [root at lab /]# cd /usr/lib/mailman/Mailman/
>
> And I proceeded to see the configuration.
>
> [root at lab Mailman]# cat mm_cfg.py
...

This is apparently a RedHat/Centos package distributed mm_cfg.py with
the following additions. (Also see <https://wiki.list.org/x/12812344>)


> DEFAULT_URL_HOST   = 'lab.company.net'
> DEFAULT_EMAIL_HOST = 'lab.company.net'

OK

> SMTPHOST = 'lab.company.net'


Why this instead of the default 'localhost'?


...
>
> [root at lab Mailman]#
>
> I think that it is correctly made, check the directory to see the contents
> and check other settings.
>
> [root at lab mailman]# ls -lrt
> total 36
> -rw-r--r-- 1 root mailman 14100 Jul 24  2015 sitelist.cfg
> -rw-rw---- 1 root mailman  3038 Jul 13 11:11 aliases
> -rw-r----- 1 root mailman 12288 Jul 13 11:11 aliases.db
> lrwxrwxrwx 1 root mailman    34 Jul 13 12:33 mm_cfg.py -> /usr/lib/mailman/Mailman/mm_cfg.py
> -rw-r----- 1 root mailman    41 Jul 22 08:59 adm.pw
>
> Aliases file
>
> [root at lab mailman]# cat aliases

Looks OK. but not referenced in Postfix - see above.


> File sitelist.cfg
>
> [root at lab mailman]# cat sitelist.cfg

This is only used to aid in producing a more apptropriat default
configuration for the 'mailman' site list than the default.

It is intended that you run a command like

/path/to/mailman/bin/config_list -i sitelist.cfg mailman

to configure the 'mailman' list. sitelist.cfg is otherwise not used.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list