Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symmpa aliases for each robot are not created #6

Closed
pvn802 opened this issue May 17, 2018 · 4 comments
Closed

symmpa aliases for each robot are not created #6

pvn802 opened this issue May 17, 2018 · 4 comments

Comments

@pvn802
Copy link

pvn802 commented May 17, 2018

Hello,

The sympatoldap.pl script do not create the aliases that are used for all the lists of a robot:

  • sympa
  • listmaster
  • sympa-request
  • sympa-owner
    You can see them in the postfix sympa.aliases file

There is also the bounce+* alias that means that return addresses are generated dynamically. So I think that VERP feature cannot be used with this script

Regards

P

@racke
Copy link

racke commented May 17, 2018

Which script are you referring to?

@pvn802
Copy link
Author

pvn802 commented May 17, 2018

sympatoldap.pl. I already edited my first post

@tvo6
Copy link

tvo6 commented Jun 18, 2018

Good point…
I don't have any test infrastructure anymore, but you may test something like (in sympatoldap.pl):

@@ -456,6 +456,12 @@ sub get_lists_for_robot {
         close $listconf;
         say Dumper($lists->{$r}->{'lists'}->{$l}) if ($debug >= 6);
     }
+    $lists->{$r}->{'lists'}->{'sympa'} = {
+        'subject'    => 'Robot $r listmasters',
+        'status'     => 'open',
+        'visibility' => 'conceal',
+        'owners'     => $lists>{$r}->{'listmaster'},
+    };
 }
 
 sub get_listinfo_from_ldap {

@pvn802
Copy link
Author

pvn802 commented Oct 9, 2018

Hello,

Yes, this does the job but I preferred to add this at the beginning of the get_lists_for_robot function

There is just one typo, you should have
'owners' => [ $lists->{$r}->{'listmaster'} ] ,

But this reveals another issue, the DN of the records does not contains the robot name so if you have 2 robots it will fail for this sympa pseudo list

@pvn802 pvn802 closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants