On 7/30/24 11:18, Roland Giesler via Mailman-users wrote:
Now, lists.fast.za.net is the mailman server. The docs say that mailman passes these on to the MTA. However, the MTA (postfix) on box2.gtahardware.co.za has the following setting in it main.cf:
The docs are badly worded. "but also will be passed to the MTA to identify the Mailman host." means passed manually in the MTA's configuration.
virtual_transport=lmtp:[127.0.0.1]:10025
You should not be using virtual_transport. You should be using transport_maps. See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
If I reply to a signup confirmation email for example, the mail is received and processed by box2.gtahardware.co.za, and it is not passed on to the mailman server.
It appears you have a situation where the MX for the Mailman domains is
not the Mailman server. You need to configure the MTA on
box2.gtahardware.co.za to relay Mailman's mail to the mailman server.
You can to this by configuring that MTA to use transport_maps, etc as if
it were the Mailman server. In order to get Mailman's generated files on
the other server, you need to create a process to do that. When Mailman
makes changes by adding or deleting lists or when it is started, it
updates the postfix_lmtp and postfix_domains files and calls a command
(normally postmap) to update the corresponding .db files. The command
can be set by setting postmap_command
in the [postfix]
section in
mailman.cfg.
You can set this to a process which accepts a file name argument and then runs postmap on the file and rsyncs the file and it's .db to the other server.
So what is meant by "but also will be passed to the MTA to identify the Mailman host" in the docs?
As I said, that's badly worded it means 'passed manually to the MTA's config'.
If I change the config of the MTA (postfix) to be "virtual_transport=lmtp:[lists.fast.za.net]:8024", I assume the incoming mail will be forwarded, but how does postfix know that only the mailman emails should be forwarded and not all the other mail that the server at box2.gtahardware.co.za receives?
Using transport_maps you can forward only list mail.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan