1

Topic: Facing issue with mlmmj mailing list

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? Yes
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====


I want to make XYZ@hbwa.in mailing list with.

1. All the external id mails should come for moderation and if its member of the group XYZ@hbwa.in without any moderation.
2. All Domain users should send without any moderation (AccessPolicy: domain, Not sure if it works for mlmmj case.)
2. There should be no attachments in the mail if it has any attachments that should come for moderation.


Since moderation comes with mlmmj. I am trying to create a mailing list as.
python./maillist_admin.py update XYZ@hbwa.in moderate_non_subscriber_post=yes disable_subscription=yes subject_prefix=[XYZ] moderators=ashish@hbwa.in,ankush@hbwa.in


dn: mail=xen@hbwa.in,ou=Groups,domainName=hbwa.in,o=domains,dc=hbwa,dc=in
accountstatus: active
enabledservice: mail
enabledservice: deliver
enabledservice: mlmmj
mail: xyz@hbwa.in
mailinglistid: 58dc39fb-b292-429f-8454-cb06c621d887
mtatransport: mlmmj:hbwa.in/xyz
objectclass: mailList


----------------------------

Error:
Sending mail from gmail id.

The response from the remote server was:

554 5.7.1 <xyz@hbwa.in>: Recipient address rejected: Unknown user

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Facing issue with mlmmj mailing list

Do you have required Dovecot settings mentioned in this post?
https://forum.iredmail.org/post71917.html#p71917

3

Re: Facing issue with mlmmj mailing list

It's working now. Thanks

-------

One small help in

2. All Domain users should send without any moderation (AccessPolicy: domain, Not sure if it works for mlmmj case)

Currently, the only members of the group can send mail without moderation.


Please suggest.

4

Re: Facing issue with mlmmj mailing list

ashb wrote:

2. All Domain users should send without any moderation (AccessPolicy: domain, Not sure if it works for mlmmj case)

I did't try it, but it should not work.

If you set access policy to "domain" in iRedAPD, iRedAPD will bypass emails sent from same domain users, and reject emails sent from other users during smtp session, at this stage, the email doesn't reach mlmmj yet, it's all handled by iRedAPD.

5

Re: Facing issue with mlmmj mailing list

ZhangHuangbin wrote:

If you set access policy to "domain" in iRedAPD, iRedAPD will bypass emails sent from same domain users, and reject emails sent from other users during smtp session, at this stage, the email doesn't reach mlmmj yet, it's all handled by iRedAPD.


iRedAPD is not rejecting the mail. It's doing DUNNO.

It's not rejecting but comes for moderation. More related to mlmmj or mlmmjadmin configurations.

6

Re: Facing issue with mlmmj mailing list

ashb wrote:

iRedAPD is not rejecting the mail. It's doing DUNNO.
It's not rejecting but comes for moderation. More related to mlmmj or mlmmjadmin configurations.

Do you have iRedAPD plugin "ldap_maillist_access_policy" enabled? if yes, please turn on debug mode in iRedAPD and send a testing email to reproduce this issue again. I need detailed log (in /var/log/iredapd/iredapd.log) for troubleshooting. FYI: https://docs.iredmail.org/debug.iredapd.html

7

Re: Facing issue with mlmmj mailing list

ZhangHuangbin wrote:
ashb wrote:

iRedAPD is not rejecting the mail. It's doing DUNNO.
It's not rejecting but comes for moderation. More related to mlmmj or mlmmjadmin configurations.

Do you have iRedAPD plugin "ldap_maillist_access_policy" enabled? if yes, please turn on debug mode in iRedAPD and send a testing email to reproduce this issue again. I need detailed log (in /var/log/iredapd/iredapd.log) for troubleshooting. FYI: https://docs.iredmail.org/debug.iredapd.html


iRedAPD plugin "ldap_maillist_access_policy"  is enabled as default settings.

Attached debug log file of iredapd.

rupesh@hbwa.in is not a member of group xyz@hbwa.in and it is coming for moderation. I want  same domain email id should send a mail to xyz@hbwa.in without moderation and no rejection.


dn: mail=xyz@hbwa.in,ou=Groups,domainName=hbwa.in,o=domains,dc=hbwa,dc=in
accesspolicy: domain
accountstatus: active
enabledservice: mail
enabledservice: deliver
enabledservice: mlmmj
mail: xyz@hbwa.in
mailinglistid: 58dc39fb-b292-429f-8454-cb06c621d880
mtatransport: mlmmj:hbwa.in/xyz
objectclass: mailList

Post's attachments

iRedAPD-debuglog.txt 13.95 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

8

Re: Facing issue with mlmmj mailing list

root@mail:~# python /opt/mlmmjadmin/tools/maillist_admin.py info xyz@hbwa.in
owner=[u'postmaster@hbwa.in']
disable_notify_when_moderator_only=no
moderate_non_subscriber_post=yes
extra_addresses=[]
notify_sender_when_moderated=no
disable_notify_when_missing_listaddress=no
disable_notify_subscription_moderated=no
disable_notify_when_access_denied=no
smtp_helo=
smtp_port=10027
only_subscriber_can_post=yes
disable_digest_subscription=no
enable_newsletter_subscription=no
only_subscriber_can_get_old_posts=yes
disable_notify_when_subscriber_only=no
moderated=no
close_list=no
disable_digest_text=no
disable_subscription_confirm=no
footer_text=
relay_host=
footer_html=
disable_nomail_subscription=no
disable_notify_when_exceeding_max_mail_size=no
subscription_moderators=[]
moderate_subscription=no
tocc=yes
disable_subscription=yes
subject_prefix=[XEN]
max_message_size=
custom_headers=[u'Precedence: list', u'X-Mailing-List: xyz@hbwa.in']
only_moderator_can_post=no
notify_owner_when_sub_unsub=no
owners=[u'postmaster@hbwa.in']
name=
disable_retrieving_old_posts=yes
disable_retrieving_subscribers=no
moderators=[u'anil@hbwa.in', u'ashish@hbwa.in']
disable_archive=no
disable_send_copy_to_sender=no
remove_headers=[]

9

Re: Facing issue with mlmmj mailing list

You should set "moderate_non_subscriber_post=no" and "only_subscriber_can_post=no".

10

Re: Facing issue with mlmmj mailing list

Thanks, but this has made gmail id sending mail without moderation.

I need to send email to  a mailing list group as

1. domain & members without moderation
2. others with moderation

No rejection in any case.