1

Topic: Non-existent forwarder account

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

Hi Zhang,

I currently put up an alias that does not have a mailbox account. My goal is to not have to create a mailbox and just have an alias that forwards to a list of email addresses.

So here is what I did:

1. Insert into alias (that does not have a corresponding mailbox account)
2. Set up the goto to a list of email addresses

Result:

All mail successfully goes to the goto addresses. However, I receive an email back:

This is the mail system at host mx1.example.com.

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

<team@example.com>: user unknown

I set up a catch-all for that particular domain according to this: http://www.iredmail.org/docs/sql.create.catch-all.html

However, it still does not catch it and I am still sent the email above.

Here is the corresponding log from /var/log/mail.log

Apr 29 00:39:08 mx1 postfix/smtpd[26956]: connect from mx1.example.com[127.0.0.1]
Apr 29 00:39:08 mx1 postfix/smtpd[26956]: 35B511625B9: client=mx1.example.com[127.0.0.1]
Apr 29 00:39:08 mx1 postfix/cleanup[26917]: 35B511625B9: message-id=<CAKKztGV2p=OpcEn8_P4bdEJ2J1A_xcyP7ZSRhUN7Z-GV-d13fg@mail.gmail.com>
Apr 29 00:39:08 mx1 postfix/qmgr[2283]: 35B511625B9: from=<chris@example.com>, size=2752, nrcpt=1 (queue active)
Apr 29 00:39:08 mx1 amavis[26368]: (26368-19) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [209.85.220.170]:36237 [209.85.220.170] <chris@example.com> -> <team@example.com>, Queue-ID: 407361625B2, Message-ID: <CAKKztGV2p=OpcEn8_P4bdEJ2J1A_xcyP7ZSRhUN7Z-GV-d13fg@mail.gmail.com>, mail_id: HRUWDBAE3bVh, Hits: -0.998, size: 2282, queued_as: 35B511625B9, 758 ms
Apr 29 00:39:08 mx1 postfix/smtp[26927]: 407361625B2: to=<team@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3, delays=1.5/0.71/0.05/0.75, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 35B511625B9)
Apr 29 00:39:08 mx1 postfix/pipe[26944]: 35B511625B9: to=<team@example.com>, relay=dovecot, delay=0.05, delays=0.01/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Apr 29 00:39:08 mx1 postfix/cleanup[26917]: 4275A1625BA: message-id=<20160429043908.4275A1625BA@mx1.example.com>
Apr 29 00:39:08 mx1 postfix/qmgr[2283]: 4275A1625BA: from=<>, size=4599, nrcpt=2 (queue active)
Apr 29 00:39:08 mx1 postfix/bounce[26958]: 35B511625B9: sender non-delivery notification: 4275A1625BA

----

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

2

Re: Non-existent forwarder account

Seems your alias account was created improperly. Did you follow our tutorial below?
http://www.iredmail.org/docs/sql.create.mail.alias.html

Show us your SQL record please, otherwise it's impossible for others to help:

sql> USE vmail;
sql> SELECT * FROM alias WHERE address='<your_alias>' LIMIT 1 \G

3

Re: Non-existent forwarder account

Hi Zhang,

Thanks for replying. I did as you asked and I noticed that we had the non-existent email address included in the "goto" field as well. We took it out and it works fine now! So if it exists in the mailbox, we should have it in the goto field, if not, we will not include it.

Thanks a lot.

Regards,
Chris