1 (edited by depcadastre 2015-10-21 21:27:10)

Topic: The problem

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: debian 8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?No
- Related log if you're reporting an issue:
====

Hi. Something strange happens with the server. This mail server supports 3 domains:domain1,domain2,domain3. When sending emails between these domains emails go without a problem, but if from any other - a problem - email is sent with outlook 2013, vistalba a read receipt,send email, and it comes in log it is nowhere, the notifications are not coming. After rebooting the server the email is delivered, the notification comes.

In the log-file mail.log events also appear- Oct 21 16:23:16 mail postfix/smtpd[2070]: NOQUEUE: reject: RCPT from relay1.kdvm.ru[185.37.190.17]: 554 5.7.1 <info@domen.com>: Recipient address rejected: Policy rejection; from=<> to=<info@domen.com> proto=ESMTP helo=<relay1.kdvm.ru>

I do not understand what happened

----

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

2

Re: The problem

It's a bug in iRedAPD-1.6.0. please follow this commit log to fix it:
https://bitbucket.org/zhb/iredapd/diff/ … at=default

Restarting iRedAPD service is required after this change.

3

Re: The problem

ZhangHuangbin wrote:

It's a bug in iRedAPD-1.6.0. please follow this commit log to fix it:
https://bitbucket.org/zhb/iredapd/diff/ … at=default

Restarting iRedAPD service is required after this change.

Hi.
2015-10-22 08:47:32 ERROR Error while loading plugin (reject_null_sender): unindent does not match any outer indentation level (reject_null_sender.py, line 34)

Conf file iredapd / plugins / reject_null_sender.py

import logging
from libs import SMTP_ACTIONS


def restriction(**kwargs):
    sender = kwargs['sender']
    sasl_username = kwargs['sasl_username']

if is_trusted_client(client_address): return SMTP_ACTIONS['default']


#        if not (sender or sasl_username):
#        logging.debug('Spam (no sender address or sasl_username).')
#        return SMTP_ACTIONS['reject']

if sasl_username and not sender:logging.debug('Spam (authenticated as %s but sender is null).' % sasl_username)

4

Re: The problem

Well, you missed up this plugin file. Try below steps instead:

*) Download this file:
https://bitbucket.org/zhb/iredapd/raw/c … _sender.py

*) Replace /opt/iredapd/plugins/reject_null_sender.py with above file.
*) Restart iRedAPD service.

5

Re: The problem

ZhangHuangbin wrote:

Well, you missed up this plugin file. Try below steps instead:

*) Download this file:
https://bitbucket.org/zhb/iredapd/raw/c … _sender.py

*) Replace /opt/iredapd/plugins/reject_null_sender.py with above file.
*) Restart iRedAPD service.

Hi.
2015-10-22 15:46:43 INFO Starting iRedAPD (version: 1.6.0, backend: mysql), listening on 127.0.0.1:7777.
2015-10-22 15:46:43 ERROR Error while loading plugin (reject_null_sender): No module named logger

6

Re: The problem

Oops, we rewrote the logging function in the latest development edition, it's not compatible with iRedAPD-1.6.0. Please use this file instead:
https://bitbucket.org/zhb/iredapd/raw/2 … _sender.py

7

Re: The problem

ZhangHuangbin wrote:

Oops, we rewrote the logging function in the latest development edition, it's not compatible with iRedAPD-1.6.0. Please use this file instead:
https://bitbucket.org/zhb/iredapd/raw/2 … _sender.py

Hi.
Replaced the file but still error
Error while loading plugin (reject_null_sender): No module named logger

8

Re: The problem

This file doesn't import 'logger' module, i'm confused why it still complains this.
Did you replace /opt/iredapd/plugins/reject_null_sender.py?

9

Re: The problem

ZhangHuangbin wrote:

This file doesn't import 'logger' module, i'm confused why it still complains this.
Did you replace /opt/iredapd/plugins/reject_null_sender.py?

Post's attachments

reject_null_sender.py.jpg
reject_null_sender.py.jpg 132.77 kb, file has never been downloaded. 

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

10

Re: The problem

Try: Remove /opt/iredapd/plugins/reject_null_sender.pyc, restart iRedAPD service.

Note: the file extension is '.pyc', not '.py'.

11 (edited by depcadastre 2015-10-23 17:02:37)

Re: The problem

ZhangHuangbin wrote:

Try: Remove /opt/iredapd/plugins/reject_null_sender.pyc, restart iRedAPD service.

Note: the file extension is '.pyc', not '.py'.

You need to rename /opt/iredapd/plugins/reject_null_sender.py in /opt/iredapd/plugins/reject_null_sender.pyc or move this file? I do not understand.

if you delete the file /opt/iredapd/plugins/reject_null_sender.pyc, restart iRedAPD service, it creates a new /opt/iredapd/plugins/reject_null_sender.pyc and error in log  ERROR Error while loading plugin (reject_null_sender):cannot import name is_trusted_client

12

Re: The problem

OK, try attached file. Replace /opt/iredapd/plugins/reject_null_sender.py.

Post's attachments

reject_null_sender.py 941 b, 4 downloads since 2015-10-23 

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

13

Re: The problem

ZhangHuangbin wrote:

OK, try attached file. Replace /opt/iredapd/plugins/reject_null_sender.py.

Super. There is no error. Thank you very much.