I've migrated a list from mm 21 to mm 3 sucessfully. The mm 21 runs on domains managed by Postfix as virtual alias domains. That way it was possible to alias a shorter name for a list to the list name.
To run mm 3 through Postfix, I use local_recipient_maps and transport_maps.
What I want to achieve, is alias medlem@list.saf-org.no to saf-medlem@list.saf-org.no
I tried to put
medlem@list.saf-org.no: saf-medlem@list.saf-org.no
and get the following error when running newaliases:
postalias: warning: /etc/aliases, line 231: name must be local
Is it possible to do this aliasing in a simple way?
Thanks, Lars
On 10/6/23 09:49, Lars Bjørndal wrote:
To run mm 3 through Postfix, I use local_recipient_maps and transport_maps.
What I want to achieve, is alias medlem@list.saf-org.no to saf-medlem@list.saf-org.no
I tried to put
medlem@list.saf-org.no: saf-medlem@list.saf-org.no
and get the following error when running newaliases:
postalias: warning: /etc/aliases, line 231: name must be local
Is it possible to do this aliasing in a simple way?
If list.saf-org.no is a local domain, i.e. in mydestination, the alias would be
medlem: saf-medlem@list.saf-org.no
or more simply
medlem: saf-medlem
If list.saf-org.no is not a local domain it needs to be a Postfix virtual (alias or mailbox) domain and you need a virtual_alias_maps with an entry like
medlem@list.saf-org.no saf-medlem@list.saf-org.no
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
[Mark]
On 10/6/23 09:49, Lars Bjørndal wrote:
To run mm 3 through Postfix, I use local_recipient_maps and transport_maps.
What I want to achieve, is alias medlem@list.saf-org.no to saf-medlem@list.saf-org.no
I tried to put
medlem@list.saf-org.no: saf-medlem@list.saf-org.no
and get the following error when running newaliases:
postalias: warning: /etc/aliases, line 231: name must be local
Is it possible to do this aliasing in a simple way?
If list.saf-org.no is a local domain, i.e. in mydestination, the alias would be
medlem: saf-medlem@list.saf-org.no
or more simply
medlem: saf-medlem
If list.saf-org.no is not a local domain it needs to be a Postfix virtual (alias or mailbox) domain and you need a virtual_alias_maps with an entry like
medlem@list.saf-org.no saf-medlem@list.saf-org.no
Thank you. One of my other domains is a virtual domain. According to https://wiki.list.org/DEV/LMTP%20process I tried to add hash:/opt/mailman3/mm//var/data/postfix_lmtp to virtual_alias_maps in Postfix's main.cf. When sending to testliste@rokaden.no, I get back an Undelivered Mail Returned to Sender message with <"lmtp:[127.0.0.1]:8024"@dalen.lamasti.net> (expanded from <testliste@rokaden.no>): unknown user: "lmtp:[127.0.0.1]:8024"
What's my problem here?
Thanks, Lars
On 10/6/23 23:27, Lars Bjørndal wrote:
Thank you. One of my other domains is a virtual domain. According to https://wiki.list.org/DEV/LMTP%20process I tried to add hash:/opt/mailman3/mm//var/data/postfix_lmtp to virtual_alias_maps in Postfix's main.cf. When sending to testliste@rokaden.no, I get back an Undelivered Mail Returned to Sender message with <"lmtp:[127.0.0.1]:8024"@dalen.lamasti.net> (expanded from <testliste@rokaden.no>): unknown user: "lmtp:[127.0.0.1]:8024"
What's my problem here?
See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
[Mark]
[...]
See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
Ok, so I have to create an alias_domain in Mailman. Is it possible to do that from the web interace? I find an Edit button for each domain, and then I may change name and description. But I can't find an option to add an alias_domain. As I'm blind, and using a text only browser, some information may have been missing. Or can I do it from the command line?
Thanks, Lars
On 10/7/23 09:25, Lars Bjørndal wrote:
[Mark]
[...]
See https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
Ok, so I have to create an alias_domain in Mailman. Is it possible to do that from the web interace?
It has been in postorius since 1.2.0.
I find an Edit button for each domain, and then I may change name and description. But I can't find an option to add an alias_domain. As I'm blind, and using a text only browser, some information may have been missing. Or can I do it from the command line?
If your Postorius is >=1.2.0, there should be 3 fields on the Edit domain page - Description, Alias Domain and Web Host. The whole page looks something like:
Edit domain example.com
Description
Alias Domain Normally empty. Used only for unusual Postfix configs.
Web Host The domain from which you want the web UI to be served from. This can be same or different from the Mail Host. You can edit the list of available web hosts here.
You can also set an alias_domain in mailman shell
. E.g.,
>>> domain = getUtility(IDomainManager).get('example.com')
>>> domain.alias_domain = 'x.example.com'
>>> commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
[Mark]
[...]
Ok, so I have to create an alias_domain in Mailman. Is it possible to do that from the web interace?
It has been in postorius since 1.2.0.
Mine is 1.3.8.
I find an Edit button for each domain, and then I may change name and description. But I can't find an option to add an alias_domain. As I'm blind, and using a text only browser, some information may have been missing. Or can I do it from the command line?
If your Postorius is >=1.2.0, there should be 3 fields on the Edit domain page - Description, Alias Domain and Web Host. The whole page looks something like:
[...]
Thanks, got it. I was confused becasue there are two Edit buttons on the prior page, one right above SITE_ID number and another (the button I had to use) inbetween Templates and Delete.
Thanks a lot for your assistance!
Lars
participants (2)
-
Lars Bjørndal
-
Mark Sapiro