1 (edited by avenger_msoft 2014-08-07 14:51:47)

Topic: lmtp User doesn't exist

======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version:  Ubuntu 14.04
- Related log if you're reporting an issue:
====

Good day!

When a message is received, the following occurs:
1. sharov@svetets.ru send message to mail@domain.ru.
2. Amavis identifies a message as spam.
3. Amavis send message to root@domain.ru, root@domain.ru - virtual address as postmaster@domain.ru.
4. I receive an error - (host mail.domain.ru[private/dovecot-lmtp] said: 550 5.1.1 <root@domain.ru> User doesn't exist: root@domain.ru (in reply to RCPT TO command)

As a result, getting two letters:
1. mail@domain.ru - ok
2. postmaster@domain.ru - Undelivered Mail Returned to Sender
Reporting-MTA: dns; mail.domain.ru
Original-Envelope-Id: AM.22477-01.20140806T194025Z@mail.domain.ru
X-Postfix-Queue-ID: 1DBE9281B19
X-Postfix-Sender: rfc822; root@domain.ru
Arrival-Date: Wed,  6 Aug 2014 23:40:25 +0400 (MSK)

Final-Recipient: rfc822; root@domain.ru
Original-Recipient: rfc822;root@domain.ru
Action: failed
Status: 5.1.1
Remote-MTA: dns; mail.domain.ru
Diagnostic-Code: smtp; 550 5.1.1 <root@domain.ru> User doesn't exist:
    root@domain.ru


with an investment in a message:
Spam FROM LOCAL [193.95.97.79]:35744 <sharov@svetets.ru>


How to fix bugs?

Post's attachments

dovecot.log 2.44 kb, 1 downloads since 2014-08-07 

mail.log 8.14 kb, 2 downloads since 2014-08-07 

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

----

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

2

Re: lmtp User doesn't exist

avenger_msoft wrote:

Diagnostic-Code: smtp; 550 5.1.1 <root@domain.ru> User doesn't exist:
    root@domain.ru

Adding an alias in /etc/postfix/aliases for user 'root' should fix your issue.

3

Re: lmtp User doesn't exist

ZhangHuangbin wrote:

Adding an alias in /etc/postfix/aliases for user 'root' should fix your issue.

Thanks for the answer. Aliases and I have been, but in this case they do not work.

# See man 5 aliases for format
#postmaster:    root
#clamav: root
www-data: postmaster@domain.ru
nobody: postmaster@domain.ru
vmail: postmaster@domain.ru
root: postmaster@domain.ru
cluebringer: postmaster@domain.ru
clamav: postmaster@domain.ru
amavis: postmaster@domain.ru
virusalert: postmaster@domain.ru

4

Re: lmtp User doesn't exist

What's your server hostname? Is is 'domain.ru'? Show us output of command "hostname -f" please.

5

Re: lmtp User doesn't exist

ZhangHuangbin wrote:

What's your server hostname? Is is 'domain.ru'? Show us output of command "hostname -f" please.

mail.domain.ru

6

Re: lmtp User doesn't exist

So 'domain.ru' is a hosted virtual mail domain name, you have to add user 'root@domain.ru' to avoid this issue.