[GH-ISSUE #1389] Mail Error (autoreply) #1103

Closed
opened 2026-02-27 11:15:17 +03:00 by kerem · 12 comments
Owner

Originally created by @EDV4BIZ on GitHub (Feb 4, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1389

This is the mail system at host mail.xxx.xx.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<"eb@xxx.xx"@autoreply.xxx.xx> (expanded from eb@xxx.xx): Command died
with status 1: "/srv/modoboa/env/bin/python". Command output: Traceback
(most recent call last): File "/srv/modoboa/instance/manage.py", line 22,
in execute_from_command_line(sys.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 364, in execute_from_command_line utility.execute() File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py",
line 283, in run_from_argv self.execute(*args, **cmd_options) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py",
line 330, in execute output = self.handle(*args, **options) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 163, in handle sender_localpart = split_mailbox(sender.lower())[0]
File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py",
line 316, in split_mailbox local_part, domain = split_address(mailbox)
File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py",
line 269, in split_address "address should be of type %s" %
six.text_type.name AssertionError: address should be of type unicode
Reporting-MTA: dns; mail.xxx.xx
X-Postfix-Queue-ID: 3A5B0604F0
X-Postfix-Sender: rfc822; cj@xxx.xx
Arrival-Date: Sun, 4 Feb 2018 11:22:26 +0100 (CET)

Final-Recipient: rfc822; "eb@xxx.xx"@autoreply.xxx.xx
Original-Recipient: rfc822;eb@xxx.xx
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; Traceback (most recent call last): File
"/srv/modoboa/instance/manage.py", line 22, in
execute_from_command_line(sys.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 364, in execute_from_command_line utility.execute() File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py",
line 283, in run_from_argv self.execute(*args, **cmd_options) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py",
line 330, in execute output = self.handle(*args, **options) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 163, in handle sender_localpart = split_mailbox(sender.lower())[0]
File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py",
line 316, in split_mailbox local_part, domain = split_address(mailbox)
File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py",
line 269, in split_address "address should be of type %s" %
six.text_type.name AssertionError: address should be of type unicode
Return-Path: cj@xxx.xx
Received: from localhost (localhost [127.0.0.1])
by mail.xxx.xx (Postfix) with ESMTP id 3A5B0604F0;
Sun, 4 Feb 2018 11:22:26 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.xxx.xx
Received: from mail.xxx.xx ([127.0.0.1])
by localhost (mail.xxx.xx [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id MvMT_RNoLBA5; Sun, 4 Feb 2018 11:22:24 +0100 (CET)
Received: from [192.168.xx.xx] (xxxxxxx.cable.dynamic.surfer.at [xx.xx.xx.xx])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.xxx.xx (Postfix) with ESMTPSA;
Sun, 4 Feb 2018 11:22:24 +0100 (CET)
From: Christian XXXXX cj@xxx.xx
Content-Type: multipart/alternative; boundary="Apple-Mail=_B601DBD9-AD08-4D79-A7B8-4AA0FCEB5931"
Subject: Klausur Protokoll
Message-Id: BFA86287-534C-4587-9188-41ADA0D50A1C@xxx.xx
Date: Sun, 4 Feb 2018 11:22:24 +0100
To: Edgar xxx edk@g.xxx.xx,
=?utf-8?Q?M=C3=B6rz_Katharina?= km@xxx.xx,
"mes (Melanie xxx)" mes@xxx.xx,
Senad xxx sh@xxx.xx,
"eb (Evamaria xxx)" eb@xxx.xx
Mime-Version: 1.0 (Mac OS X Mail 9.3 3124)
X-Mailer: Apple Mail (2.3124)

Originally created by @EDV4BIZ on GitHub (Feb 4, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1389 This is the mail system at host mail.xxx.xx. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <"eb@xxx.xx"@autoreply.xxx.xx> (expanded from <eb@xxx.xx>): Command died with status 1: "/srv/modoboa/env/bin/python". Command output: Traceback (most recent call last): File "/srv/modoboa/instance/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 163, in handle sender_localpart = split_mailbox(sender.lower())[0] File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py", line 316, in split_mailbox local_part, domain = split_address(mailbox) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py", line 269, in split_address "address should be of type %s" % six.text_type.__name__ AssertionError: address should be of type unicode Reporting-MTA: dns; mail.xxx.xx X-Postfix-Queue-ID: 3A5B0604F0 X-Postfix-Sender: rfc822; cj@xxx.xx Arrival-Date: Sun, 4 Feb 2018 11:22:26 +0100 (CET) Final-Recipient: rfc822; "eb@xxx.xx"@autoreply.xxx.xx Original-Recipient: rfc822;eb@xxx.xx Action: failed Status: 5.3.0 Diagnostic-Code: x-unix; Traceback (most recent call last): File "/srv/modoboa/instance/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 163, in handle sender_localpart = split_mailbox(sender.lower())[0] File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py", line 316, in split_mailbox local_part, domain = split_address(mailbox) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/email_utils.py", line 269, in split_address "address should be of type %s" % six.text_type.__name__ AssertionError: address should be of type unicode Return-Path: <cj@xxx.xx> Received: from localhost (localhost [127.0.0.1]) by mail.xxx.xx (Postfix) with ESMTP id 3A5B0604F0; Sun, 4 Feb 2018 11:22:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.xxx.xx Received: from mail.xxx.xx ([127.0.0.1]) by localhost (mail.xxx.xx [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MvMT_RNoLBA5; Sun, 4 Feb 2018 11:22:24 +0100 (CET) Received: from [192.168.xx.xx] (xxxxxxx.cable.dynamic.surfer.at [xx.xx.xx.xx]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.xxx.xx (Postfix) with ESMTPSA; Sun, 4 Feb 2018 11:22:24 +0100 (CET) From: Christian XXXXX <cj@xxx.xx> Content-Type: multipart/alternative; boundary="Apple-Mail=_B601DBD9-AD08-4D79-A7B8-4AA0FCEB5931" Subject: Klausur Protokoll Message-Id: <BFA86287-534C-4587-9188-41ADA0D50A1C@xxx.xx> Date: Sun, 4 Feb 2018 11:22:24 +0100 To: Edgar xxx <edk@g.xxx.xx>, =?utf-8?Q?M=C3=B6rz_Katharina?= <km@xxx.xx>, "mes (Melanie xxx)" <mes@xxx.xx>, Senad xxx <sh@xxx.xx>, "eb (Evamaria xxx)" <eb@xxx.xx> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124)
kerem 2026-02-27 11:15:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@EDV4BIZ commented on GitHub (Feb 5, 2018):

Hey fyfe,
can i do here a workaround? anything change in the code?

BR

<!-- gh-comment-id:363234956 --> @EDV4BIZ commented on GitHub (Feb 5, 2018): Hey fyfe, can i do here a workaround? anything change in the code? BR
Author
Owner

@ghost commented on GitHub (Feb 5, 2018):

Yes, see modoboa/modoboa-postfix-autoreply#55

<!-- gh-comment-id:363236237 --> @ghost commented on GitHub (Feb 5, 2018): Yes, see modoboa/modoboa-postfix-autoreply#55
Author
Owner

@EDV4BIZ commented on GitHub (Feb 5, 2018):

Where i can find this file? How is the path?

<!-- gh-comment-id:363238732 --> @EDV4BIZ commented on GitHub (Feb 5, 2018): Where i can find this file? How is the path?
Author
Owner

@EDV4BIZ commented on GitHub (Feb 6, 2018):

fyfe where i can find this file? How is the path?

<!-- gh-comment-id:363498163 --> @EDV4BIZ commented on GitHub (Feb 6, 2018): fyfe where i can find this file? How is the path?
Author
Owner

@tonioo commented on GitHub (Feb 6, 2018):

@WASDIT Apply this patch (https://github.com/modoboa/modoboa-postfix-autoreply/pull/55/files) or wait for the next release.

<!-- gh-comment-id:363500090 --> @tonioo commented on GitHub (Feb 6, 2018): @WASDIT Apply this patch (https://github.com/modoboa/modoboa-postfix-autoreply/pull/55/files) or wait for the next release.
Author
Owner

@EDV4BIZ commented on GitHub (Feb 6, 2018):

@tonioo yes but how i can do this? where i find the file to change them?

<!-- gh-comment-id:363500677 --> @EDV4BIZ commented on GitHub (Feb 6, 2018): @tonioo yes but how i can do this? where i find the file to change them?
Author
Owner

@EDV4BIZ commented on GitHub (Feb 6, 2018):

Where is modoboa_postfix_autoreply/management/commands/autoreply.py?

<!-- gh-comment-id:363501256 --> @EDV4BIZ commented on GitHub (Feb 6, 2018): Where is modoboa_postfix_autoreply/management/commands/autoreply.py?
Author
Owner

@tonioo commented on GitHub (Feb 6, 2018):

If you used the installer with default config, you should find it here:
/srv/modoboa/env/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py
Otherwise, locate is your friend.

<!-- gh-comment-id:363501555 --> @tonioo commented on GitHub (Feb 6, 2018): If you used the installer with default config, you should find it here: ``/srv/modoboa/env/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py`` Otherwise, ``locate`` is your friend.
Author
Owner

@EDV4BIZ commented on GitHub (Feb 6, 2018):

Thanks

<!-- gh-comment-id:363502035 --> @EDV4BIZ commented on GitHub (Feb 6, 2018): Thanks
Author
Owner

@EDV4BIZ commented on GitHub (Feb 6, 2018):

@tonioo
<"eb@xxx.xx"@autoreply.xxx.xx> (expanded from eb@xxx.xx): Command died
with status 1: "/srv/modoboa/env/bin/python". Command output: Traceback
(most recent call last): File "/srv/modoboa/instance/manage.py", line 22,
in execute_from_command_line(sys.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 364, in execute_from_command_line utility.execute() File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 206, in fetch_command klass = load_command_class(app_name,
subcommand) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 40, in load_command_class module =
import_module('%s.management.commands.%s' % (app_name, name)) File
"/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name) File
"/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 204 address, domain = split_mailbox(fulladdress) ^
IndentationError: expected an indented block

<!-- gh-comment-id:363511721 --> @EDV4BIZ commented on GitHub (Feb 6, 2018): @tonioo <"eb@xxx.xx"@autoreply.xxx.xx> (expanded from <eb@xxx.xx>): Command died with status 1: "/srv/modoboa/env/bin/python". Command output: Traceback (most recent call last): File "/srv/modoboa/instance/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 206, in fetch_command klass = load_command_class(app_name, subcommand) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 204 address, domain = split_mailbox(fulladdress) ^ IndentationError: expected an indented block
Author
Owner

@tonioo commented on GitHub (Feb 7, 2018):

Looks like you introduced a syntax error when you modified your file. The indentation is important when you write python code. Make sure your local file is exactly the same as the one present on Github.

<!-- gh-comment-id:363728509 --> @tonioo commented on GitHub (Feb 7, 2018): Looks like you introduced a syntax error when you modified your file. The indentation is important when you write python code. Make sure your local file is exactly the same as the one present on Github.
Author
Owner

@EDV4BIZ commented on GitHub (Feb 7, 2018):

i copied it and now it worked ;)

<!-- gh-comment-id:363739228 --> @EDV4BIZ commented on GitHub (Feb 7, 2018): i copied it and now it worked ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1103
No description provided.