Koozali.org: home of the SME Server

limit sending email to a group onlyto the second group

Offline larieu

  • ****
  • 214
  • +0/-0
limit sending email to a group onlyto the second group
« on: June 07, 2018, 05:06:54 PM »
Scenario

on server I'll create two groups

group-target
where I'll have assigned some users


group-senders
where I'll have assigned some users ( can overlap but not mandatory )

I want to have a restriction that sending mails to the grup-target@domain.tld to be possible only by users from group-senders

For limiting external users to not be able to send is

Code: [Select]
db accounts setprop group-target Visible internal
I'm looking for something similar

if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: limit sending email to a group onlyto the second group
« Reply #1 on: June 08, 2018, 04:27:20 PM »
larieu

You need to install mailing list software to achieve your set of requirements.
Eg Mailman or ezmlm
See the Contribs & Howto sections of wiki
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline larieu

  • ****
  • 214
  • +0/-0
Re: limit sending email to a group onlyto the second group
« Reply #2 on: June 09, 2018, 04:57:19 AM »
Hi janet,

I see your point. A valid approach. To create the group-target in a mailinglist
I really hoped to a more straight forward approach direct in server.

In this approach the group-target it will be managed in the mailing list and should be changed manually not on server as a group. I don't remember a way to sync a mailinglist with a  group in SME

The idea is that I need anyway that the group to be created on the server. Doing this will not impede nobody to just write on group ( if I'll set Visible=internal - only internal addresses but this is also against will ) . This is what I'm trying to avoid.
If it will exist at least something to just block all emails to the group. And then double the work to maintain the external list

I've found an approach on old version

https://forums.contribs.org/index.php?topic=34667.msg150339#msg150339

 

 
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline Jean-Philippe Pialasse

  • *
  • 2,760
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: limit sending email to a group onlyto the second group
« Reply #3 on: June 09, 2018, 05:10:50 AM »
You can either make a cron or an action script linked to group and user event in order to update  ezmlm ml.  I have done such thing in the past from a mysql db to populate ezmlm ml.

Offline larieu

  • ****
  • 214
  • +0/-0
Re: limit sending email to a group onlyto the second group
« Reply #4 on: June 11, 2018, 09:53:21 AM »
Unfortunately I need to have the default group-target
Having it I can prevent external users to not be able to send mails ( Visible=internal ) but will not prevent any user on the server to be able to send emails to that group

It exist another value for this "Visible" keyprop ?

Something like invisible or No ...?
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline larieu

  • ****
  • 214
  • +0/-0
Re: limit sending email to a group onlyto the second group
« Reply #5 on: June 11, 2018, 11:44:30 AM »
I have checked
Apparently the template

/etc/e-smith/templates/var/qmail/control/badrcptto/10blockVisibleInternal:

is taking care only for the"internal" parameter
 I wander if it is possible to template something around
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline Stefano

  • *
  • 10,837
  • +2/-0
Re: limit sending email to a group onlyto the second group
« Reply #6 on: June 11, 2018, 12:19:12 PM »
https://lists.gt.net/qmail/users/136955

old and maybe not feasible.. you'd search also for some qpsmtpd filters/plugin