1

Topic: Root mail bounce

Hi i see the following error in my maillog:

from=<root@domain.com>, size=70029, nrcpt=1 (queue active)
Apr 22 04:02:10 mail postfix/pipe[29221]: 05B7C2381FD: to=<root@domain.com>, relay=dovecot, delay=6.9, delays=6.7/0.04/0/0.17, dsn=5.1.1, status=bounced (user unknown)

Do i have to create a root@domain.com account in order to work?

i have /etc/postfix/aliases
root: user@domain.com
And ran postmap hash:/etc/postfix/aliases
and also newaliases

Any clues?

Thank you

----

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

2

Re: Root mail bounce

aliases are managed via the mysql / ldap setup in iRedMail and not via /etc/postfix/aliases
You can use the respective tools (phpMyAdmin and postfixAdmin for mysql or ldapAdmin and iRedAdmin for ldap setup)

Regards, White

3

Re: Root mail bounce

I am having exactly the same problem - root mail is bounced back (user unknown in the log). I did not find anything related to this in iRedAdmin panel. How would I fix it?

4

Re: Root mail bounce

john123 wrote:

root mail is bounced back (user unknown in the log)

Which user is unknown? Do you have this user in sql/ldap db?

5

Re: Root mail bounce

ZhangHuangbin wrote:
john123 wrote:

root mail is bounced back (user unknown in the log)

Which user is unknown? Do you have this user in sql/ldap db?

root user is unknown, exactly the same log as in the first post of this topic.

When I execute 'postmap -q root@mydomain.com mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf' I get nothing, so I suppose the user is not in my SQL. How should I add the user?

6

Re: Root mail bounce

Please add an entry in file /etc/postfix/aliases like below:

root: someone@some-domain.com

Then run "postalias /etc/postfix/aliases".

7

Re: Root mail bounce

ZhangHuangbin wrote:

Please add an entry in file /etc/postfix/aliases like below:

root: someone@some-domain.com

Then run "postalias /etc/postfix/aliases".

Did both steps but still getting:

postfix/pipe[29221]: 05B7C2381FD: to=<root@mydomain.com>, relay=dovecot, delay=0.11, delays=0.09/0/0/0.02, dsn=5.1.1, status=bounced (user unknown)

8

Re: Root mail bounce

john123 wrote:

postfix/pipe[29221]: 05B7C2381FD: to=<root@mydomain.com>, relay=dovecot, delay=0.11, delays=0.09/0/0/0.02, dsn=5.1.1, status=bounced (user unknown)

*) Is it "root@domain.com", or "root@<your-server-hostname"?
*) Do you know which software/program generated this email?

9

Re: Root mail bounce

ZhangHuangbin wrote:
john123 wrote:

postfix/pipe[29221]: 05B7C2381FD: to=<root@mydomain.com>, relay=dovecot, delay=0.11, delays=0.09/0/0/0.02, dsn=5.1.1, status=bounced (user unknown)

*) Is it "root@domain.com", or "root@<your-server-hostname"?
*) Do you know which software/program generated this email?

It is root at domain.com

I got this error after doing echo test | mail -s "test message" root

10

Re: Root mail bounce

john123 wrote:

It is root at domain.com
I got this error after doing echo test | mail -s "test message" root

If you run this "echo ..." command, it should sent to "root@<server-hostname>". Then you need to update /etc/postfix/aliases as mentioned in reply #6 in this thread:
http://www.iredmail.org/forum/post59170.html#p59170

11

Re: Root mail bounce

ZhangHuangbin wrote:
john123 wrote:

It is root at domain.com
I got this error after doing echo test | mail -s "test message" root

If you run this "echo ..." command, it should sent to "root@<server-hostname>". Then you need to update /etc/postfix/aliases as mentioned in reply #6 in this thread:
http://www.iredmail.org/forum/post59170.html#p59170

Yeah, I did it already...

Finally, I realised what the problem was. It turned out myhostname directive in main.cf was wrong, I put 'mydomain.com' there. When I changed it to 'mydomain.localdomain' and restarted postfix - root started to receive mail...strange, I think I typed a wrong domain during the initial installation.