Skip to contentSkip to conversation

Allowing specific addresses with subonlypost

mlmmj David Demelier 4 participants 5 messages Dec 22, 2016 – Jan 12, 2017

lore
Share & tools
lore
#0 lore raw

Hello all,

I've installed mlmmj with my postfix and it works fine.

However to stop spam I've enabled the subonlypost option to only allow subscribers to post mails. The problem is that I also would like to add specific addresses so my own mail server can also send mails to people subscribed.

I've tried using this in the control/access file:

send ^From: .*@mydomain.tld

If I send a mail to the list using [email protected], mlmmj seems to do something with it but is not forwarded to the subscribers. And obviously, if I don't have that access file at all and send a mail, the administrator receives a mail saying that someone wanted to send a mail and was denied because it is not subscribed.

So what I'm missing to allow this? If it's possible of course. Because I would like to avoid creating fake mail users just for sending mails from the server itself.

Regards,

Signature · 1 line
David
#1 lore raw
Quoted 4 lines · David Demelier

However to stop spam I've enabled the subonlypost option to only allow subscribers to post mails. The problem is that I also would like to add specific addresses so my own mail server can also send mails to people subscribed.

The easiest way of allowing that, is adding them in nomailsubs.d/.

// Moki

#2 lore raw
In reply to David Demelier

2016-12-22 13:51 GMT+01:00 Morten Shearman Kirkegaard <[email protected]>:

Quoted 8 lines · David Demelier
Quoted 4 lines

However to stop spam I've enabled the subonlypost option to only allow subscribers to post mails. The problem is that I also would like to add specific addresses so my own mail server can also send mails to people subscribed.

The easiest way of allowing that, is adding them in nomailsubs.d/.

Thanks you very much! :-)

Signature · 1 line
Demelier David
#3 lore raw
In reply to David Demelier
Quoted 7 lines · Morten Shearman Kirkegaard
Quoted 4 lines · David Demelier

However to stop spam I've enabled the subonlypost option to only allow subscribers to post mails. The problem is that I also would like to add specific addresses so my own mail server can also send mails to people subscribed.

The easiest way of allowing that, is adding them in nomailsubs.d/.

This is absolutely right. But using 'send' in an access file should have worked, too. I might have to look into that.

#4 lore raw
In reply to David Demelier

Hi,

yep, this thread is quite old, but in case someone needs this later on...

Quoted 8 lines · On Fri, 23 Dec 2016 08:05:46 +1100 Ben Schmidt <[email protected]>…
Quoted 6 lines · Morten Shearman Kirkegaard
Quoted 4 lines · David Demelier

However to stop spam I've enabled the subonlypost option to only allow subscribers to post mails. The problem is that I also would like to add specific addresses so my own mail server can also send mails to people subscribed.

Quoted 4 lines
Quoted 1 line

The easiest way of allowing that, is adding them in nomailsubs.d/.

This is absolutely right. But using 'send' in an access file should have worked, too. I might have to look into that.

It works, but only if the send statement is followed by an allow. For me it looks therefore like this:

send ^Return-Path:.*@domain.tld
allow

Regards
Chris