1 (edited by melaleuca5 2013-09-03 23:02:31)

Topic: (SOLVED)MailGun: sender address rejected: User unknown

One of my domains is using mailgun.com to send out emails, the domain is having issues receiving to the same domain.

Getting:
sender address rejected: User unknown in virtual mailbox table; from=<bounce+d4fc07.5107-testtest=domain@domain.com>...

I have removed the smtpd_sender_restrictions from main.cf It's still listed in proxy_read_maps as $smtpd_sender_restrictions

I have also entered the ip in mynetworks = x.x.x.x, 127.0.0.0/8 as well as in iredadmin added whitelist that ip.

After all this I am still getting the same error, Any more thoughts?

Could it be that the from address would be random? Can we do a wildcat domain?

----

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

2

Re: (SOLVED)MailGun: sender address rejected: User unknown

melaleuca5 wrote:

Could it be that the from address would be random?

Maybe, you should check your Postfix log file.

melaleuca5 wrote:

Can we do a wildcat domain?

Try to add its IP range in Postfix "mynetworks =".

3

Re: (SOLVED)MailGun: sender address rejected: User unknown

I have the range now but looks like it's unknown but then it does match it.


Aug 27 10:14:31 mail postfix/smtpd[854]: connect from unknown[184.173.153.206]
Aug 27 10:14:31 mail postfix/smtpd[854]: match_hostaddr: 184.173.153.206 ~? 184.173.153.0/24
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 220 mail.redmantech.ca ESMTP Postfix
Aug 27 10:14:31 mail postfix/smtpd[854]: < unknown[184.173.153.206]: EHLO mail-s78.mailgun.info
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-mail.redmantech.ca
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-PIPELINING
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-SIZE 104857600
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-ETRN
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-STARTTLS
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-AUTH PLAIN LOGIN
Aug 27 10:14:31 mail postfix/smtpd[854]: match_list_match: 184.173.153.206: no match
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-AUTH=PLAIN LOGIN
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-ENHANCEDSTATUSCODES
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250-8BITMIME
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250 DSN
Aug 27 10:14:31 mail postfix/smtpd[854]: < unknown[184.173.153.206]: MAIL FROM:<bounce+d4fc07.5107-testtest=domainemail.com@domainemail.com> size=1494
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250 2.1.0 Ok
Aug 27 10:14:31 mail postfix/smtpd[854]: < unknown[184.173.153.206]: RCPT TO:<testtest@domainemail.com>
Aug 27 10:14:31 mail postfix/smtpd[854]: permit_mynetworks: unknown 184.173.153.206
Aug 27 10:14:31 mail postfix/smtpd[854]: match_hostaddr: 184.173.153.206 ~? 184.173.153.0/24
Aug 27 10:14:31 mail postfix/smtpd[854]: NOQUEUE: reject: RCPT from unknown[184.173.153.206]: 550 5.1.0 <bounce+d4fc07.5107-testtest=domainemail.com@domainemail.com>: Sender address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 550 5.1.0 <bounce+d4fc07.5107-testtest=domainemail.com@domainemail.com>: Sender address rejected: User unknown in virtual mailbox table
Aug 27 10:14:31 mail postfix/smtpd[854]: < unknown[184.173.153.206]: RSET
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 250 2.0.0 Ok
Aug 27 10:14:31 mail postfix/smtpd[854]: < unknown[184.173.153.206]: QUIT
Aug 27 10:14:31 mail postfix/smtpd[854]: > unknown[184.173.153.206]: 221 2.0.0 Bye
Aug 27 10:14:31 mail postfix/smtpd[854]: match_hostaddr: 184.173.153.206 ~? 184.173.153.0/24
Aug 27 10:14:31 mail postfix/smtpd[854]: disconnect from unknown[184.173.153.206]

4

Re: (SOLVED)MailGun: sender address rejected: User unknown

What's the value of your "mynetworks" in Postfix?

5 (edited by melaleuca5 2013-08-28 03:13:23)

Re: (SOLVED)MailGun: sender address rejected: User unknown

mynetworks = 184.173.153.0/24, 127.0.0.0/8

http://pastebin.com/VBbULvVr  <---- Config

6

Re: (SOLVED)MailGun: sender address rejected: User unknown

Looks like your address doesn't match:

melaleuca5 wrote:

Aug 27 10:14:31 mail postfix/smtpd[854]: match_hostaddr: 184.173.153.206 ~? 184.173.153.0/24

7

Re: (SOLVED)MailGun: sender address rejected: User unknown

mynetworks = 184.173.153.206, 127.0.0.0/8

I have also used this but no go, I think maybe its configuration issue

8

Re: (SOLVED)MailGun: sender address rejected: User unknown

Is it possible for you to use sub-domain like 'lists.domain.com' in MailGun instead of the one hosted on your mail server?

9 (edited by melaleuca5 2013-09-03 23:02:18)

Re: (SOLVED)MailGun: sender address rejected: User unknown

I believe there is an issue with the mynetworks not reading the file, I have a static ip with mailgun and same issues as above.

The issue is with the sender address, and how mailgun changes.

One solution that works b adding a header to email on the email client.

X-Mailgun-Native-Send: True

This make it work.