1 (edited by peter.romfeld.hk 2014-09-01 17:02:56)

Topic: systemmail with same RCPT domainname rejected

==== Required information ====
- iRedMail version: iRedMail-0.8.7
- Store mail accounts in which backend (MySQL):
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue: mail.log
Sep  1 04:08:08 mail postfix/smtpd[37370]: NOQUEUE: reject: RCPT from mail-s74.mailgun.info[184.173.153.202]: 550 5.1.0 <bounce+c1cf25.2ca3a-stewart=domain.com@domain.com>: Sender address rejected: User unknown in virtual mailbox table; from=<bounce+c1cf25.2ca3a-stewart=domain.com@domain.com> to=<Stewart@domain.com> proto=ESMTP helo=<mail-s74.mailgun.info>
====

Hi,

After upgrade to Pro version i am still having the same issue.
My Mail-server is rejecting emails from my wiki-server, mail.domain.com/wiki.domain.com
I am using Mailgun as smtp relay, everything else is working fine

on the wiki server the mail gets successfully sended:
Sep  1 12:04:19 wiki postfix/cleanup[20487]: 763A11445: message-id=<mediawiki-mediawiki.5403f04371aa53.62115216@wiki.domain.com>
Sep  1 12:04:19 wiki postfix/qmgr[19773]: 763A11445: from=<www-data@wiki.domain.com>, size=775, nrcpt=1 (queue active)
Sep  1 12:04:22 wiki postfix/smtp[20489]: 763A11445: to=<Stewart@domain.com>, relay=smtp.mailgun.org[50.56.21.176]:587, delay=2.7, delays=0.03/0/1.8/0.88, dsn=2.0.0, status=sent (250 Great success)
Sep  1 12:04:22 wiki postfix/qmgr[19773]: 763A11445: removed

I also added the domain (wiki.domain.com) + the user (www-data). The mails get still rejected

Please Help,
Peter

----

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

2

Re: systemmail with same RCPT domainname rejected

peter.romfeld.hk wrote:

Sender address rejected: User unknown in virtual mailbox table

You use MailGun as relay server on wiki server, all emails were sent by your wiki server becomes sent from MailGun.

iRedMail will reject emails sent from external network as a user which user domain is hosted on localhost ('domain.com' in your post), you can modify wiki server to sent to iRedMail server directly if recipient is '@domain.com', or bypass emails sent from MailGun with 'check_sender_access' in Postfix parameter "smtpd_sender_restrictions".