1

Topic: local deliver - root

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

Email to root is winding up in ~/dead.letter rather than being delivered to the local mail box. I've checked my domain name, origin and setup mynetworks in /etc/postfix/main.cf and /opt/iredapd/settings.py still local delivery fails.

Example:
============================================================================
echo "This is a test" | mail -s testing123 root@<MYDOMAIN>

Results in:

May  9 10:35:56 webmail postfix/smtpd[10883]: connect from unknown[192.168.XXX.252]
May  9 10:35:56 webmail postfix/smtpd[10883]: NOQUEUE: reject: RCPT from unknown[192.168.XXX.252]: 550 5.1.1 <root@<MYDOMAIN>>: Recipient address rejected: User unknown in virtual mailbox table; from=<root@webmail.<MYDOMAIN>> to=<root@<MYDOMAIN>> proto=SMTP helo=<webmail.<MYDOMAIN>>
May  9 10:35:56 webmail sSMTP[10882]: RCPT TO:<root@<MYDOMAIN>> (550 5.1.1 <root@<MYDOMAIN>>: Recipient address rejected: User unknown in virtual mailbox table)
============================================================================

The machine is not yet in production so the domain is NOT in DNS - this may be part of the issue - I do have everything setup in /etc/hosts properly.

Do I need to add root or is there a setting I'm missing to allow local delivery?

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: local deliver - root

This has been fixed in the latest iRedMail-0.9.5-1 (released today, May 10, 2016):
http://www.iredmail.org/docs/upgrade.ir … em-account

Also, in the mail log:

(550 5.1.1 <root@<MYDOMAIN>>: Recipient address rejected: User unknown in virtual mailbox table)

Does the domain name <MYDOMAIN> exist? Try this:

cd /etc/postfix/ldap/
postmap -v -q '<MYDOMAIN>' ldap:./virtual_mailbox_domains.cf

3

Re: local deliver - root

I upgraded to iRedMail-0.9.5-1 and still no luck:

=========================
root@webmail.<MYDOMAIN>:~ # echo "This is a test" | mail -s root-test root@<MYDOMAIN>

send-mail: RCPT TO:<root@<MYDOMAIN>> (550 5.1.1 <root@<MYDOMAIN>>: Recipient address rejected: User unknown in virtual mailbox table)
=========================

postconf | grep <MYDOMAIN>
=========================
mydomain = <MYDOMAIN>
myhostname = webmail.<MYDOMAIN>
myorigin = webmail.<MYDOMAIN>
=========================

<MYDOMAIN> exists in ldap:
=========================
cd /etc/postfix/ldap/
postmap -v -q '<MYDOMAIN>' ldap:./virtual_mailbox_domains.cf

postmap: dict_ldap_lookup: Search returned <MYDOMAIN>
<MYDOMAIN>
=========================

4

Re: local deliver - root

What's the real domain name in your address "root@<MYDOMAIN>"?

Try this:

 echo "This is a test" | mail -s "root-test" root