Recipient address rejected for recipient address in virtual

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Recipient address rejected for recipient address in virtual

@lbutlr
I have an email address listed in virtual in the form

[hidden email]. [hidden email]

But when an email comes in to that address, I get Recipient address rejected: unverified address: Address lookup failed;

# postmap -q [hidden email] hash:/etc/postfix/virtual
[hidden email]

(Not that actual addresses, but the form is <company>@localdomain => localuser+<company>@localdomain)

I assume I can eliminate this by taking out the reject_unverified_recipient from my smtpd_recipient_restrictions but shouldn’t this address be verified?



--
Women and cats will do as they please, and men and dogs should relax
        an get used to the idea.

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

Matus UHLAR - fantomas
On 02.12.19 05:21, @lbutlr wrote:
>I have an email address listed in virtual in the form
>
>[hidden email]. [hidden email]

it that a trailing dot?

>But when an email comes in to that address, I get Recipient address rejected: unverified address: Address lookup failed;
>
># postmap -q [hidden email] hash:/etc/postfix/virtual
>[hidden email]
>
>(Not that actual addresses, but the form is <company>@localdomain => localuser+<company>@localdomain)
>
>I assume I can eliminate this by taking out the reject_unverified_recipient from my smtpd_recipient_restrictions but shouldn’t this address be verified?

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Spam is for losers who can't get business any other way.
Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr


> On 02 Dec 2019, at 05:26, Matus UHLAR - fantomas <[hidden email]> wrote:
>
> On 02.12.19 05:21, @lbutlr wrote:
>> I have an email address listed in virtual in the form
>>
>> [hidden email]. [hidden email]
>
> it that a trailing dot?

Autocorrecting two spaces to .<space>

There is no trailing dot in the configuration file (I don’t think the lookup would work if there were?)

>> But when an email comes in to that address, I get Recipient address rejected: unverified address: Address lookup failed;
>>
>> # postmap -q [hidden email] hash:/etc/postfix/virtual
>> [hidden email]
>>
>> (Not that actual addresses, but the form is <company>@localdomain => localuser+<company>@localdomain)
>>
>> I assume I can eliminate this by taking out the reject_unverified_recipient from my smtpd_recipient_restrictions but shouldn’t this address be verified?



--
'What good is a candle at noonday?' —Sourcery

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr
In reply to this post by @lbutlr
On 02 Dec 2019, at 05:21, @lbutlr <[hidden email]> wrote:
> But when an email comes in to that address, I get Recipient address rejected: unverified address: Address lookup failed;
>
> # postmap -q [hidden email] hash:/etc/postfix/virtual
> [hidden email]

I have disabled reject_unverified_recipient and now get the following:

Dec  2 05:20:08 mail postfix/smtpd[21032]: 47RPMD119BzhHM0: client=mr85p00im-zteg06011501.me.com[17.58.23.182]
Dec  2 05:20:08 mail postfix/smtpd[21032]: 47RPMD119BzhHM0: permit: RCPT from mr85p00im-zteg06011501.me.com[17.58.23.182]: action=permit for Helo command=mr85p00im-zteg06011501.me.com ; from=<*Externaladdress*> to=<amazon@localdomain> proto=ESMTP helo=<mr85p00im-zteg06011501.me.com>
Dec  2 05:20:08 mail postfix/smtpd[21032]: 47RPMD119BzhHM0: permit: RCPT from mr85p00im-zteg06011501.me.com[17.58.23.182]: action=permit for Recipient address=amazon@localdomain ; from=<*Externaladdress*> to=<amazon@localdomain> proto=ESMTP helo=<mr85p00im-zteg06011501.me.com>
Dec  2 05:20:08 mail postfix/smtpd[21032]: 47RPMD119BzhHM0: permit: DATA from mr85p00im-zteg06011501.me.com[17.58.23.182]: action=permit for Data command=DATA ; from=<*Externaladdress*> to=<amazon@localdomain> proto=ESMTP helo=<mr85p00im-zteg06011501.me.com>
Dec  2 05:20:08 mail postfix/cleanup[21470]: 47RPMD119BzhHM0: message-id=<[hidden email]>
Dec  2 05:20:09 mail postfix/qmgr[16419]: 47RPMD119BzhHM0: from=<*Externaladdress*>, size=1812, nrcpt=2 (queue active)
postfix/lmtp[21608]: 47RPMD119BzhHM0: to=<[hidden email]>, orig_to=<amazon@localdomain>, relay=mail.covisp.net[private/dovecot-lmtp], delay=1.6, delays=1.6/0.01/0.01/0.01, dsn=5.1.1, status=bounced (host mail.covisp.net[private/dovecot-lmtp] said: 550 5.1.1 <[hidden email]> User doesn't exist: [hidden email] (in reply to RCPT TO command))
Dec  2 05:20:09 mail postfix/bounce[21825]: 47RPMD119BzhHM0: sender non-delivery notification: 47RPMF5pgjzhHM2
Dec  2 05:20:09 mail postfix/qmgr[16419]: 47RPMD119BzhHM0: removed

It doesn’t look like the lookup from virtual is taking place at all fo this address.

virtual_alias_maps = proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
    hash:$config_directory/virtual
virtual_mailbox_domains =
    proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
    proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_transport = lmtp:unix:private/dovecot-lmtp

Other similar entries in virtual work (I just tested one with the same basic pattern).

Dec  2 06:31:28 mail postfix/lmtp[18588]: 47RQxV5jblzhHM0: to=<[hidden email]>, orig_to=<[hidden email]>, relay=mail.covisp.net[private/dovecot-lmtp], delay=1.3, delays=1.2/0/0/0.05, dsn=2.0.0, status=sent (250 2.0.0 <[hidden email]> WFaIADAS5V3+SAAAIdGjjQ Saved)

One difference is that the one that is failing changes the targeted local domain amazon@localdomain to [hidden email], if that matters.

The domains both pass postmap

postmap -q localdomain mysql:/etc/postfix/mysql_virtual_domains_maps.cf



--
<[TN]FBMachine> I got kicked out of Barnes and Noble once for moving
        all the bibles into the fiction section

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

Bill Cole-3
In reply to this post by @lbutlr
On 2 Dec 2019, at 7:21, @lbutlr wrote:

> I have an email address listed in virtual in the form
>
> [hidden email]. [hidden email]
>
> But when an email comes in to that address, I get Recipient address
> rejected: unverified address: Address lookup failed;
>
> # postmap -q [hidden email] hash:/etc/postfix/virtual
> [hidden email]
>
> (Not that actual addresses, but the form is <company>@localdomain =>
> localuser+<company>@localdomain)
>
> I assume I can eliminate this by taking out the
> reject_unverified_recipient from my smtpd_recipient_restrictions but
> shouldn’t this address be verified?

Have you considered doing as recommended at
http://www.postfix.org/DEBUG_README.html#mail to make it easier for us
to understand your issue?



--
Bill Cole
[hidden email] or [hidden email]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

Bill Cole-3
In reply to this post by @lbutlr
On 2 Dec 2019, at 8:43, @lbutlr wrote:

> One difference is that the one that is failing changes the targeted
> local domain amazon@localdomain to [hidden email], if that
> matters.

Virtual mailbox domains and virtual alias domains are distinct from each
other. Local domains are another thing altogether.

http://www.postfix.org/ADDRESS_CLASS_README.html#classes


--
Bill Cole
[hidden email] or [hidden email]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr
On 02 Dec 2019, at 09:53, Bill Cole <[hidden email]> wrote:
> On 2 Dec 2019, at 8:43, @lbutlr wrote:
>> One difference is that the one that is failing changes the targeted local domain amazon@localdomain to [hidden email], if that matters.
>
> Virtual mailbox domains and virtual alias domains are distinct from each other. Local domains are another thing altogether.

I mean local as in on the machine.

All the domains involved ar capable of receiving mail.



--
"Are you pondering what I'm pondering?"
"I think so, Brain, but what kind of rides do they have in
        Fabioland?”

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr
In reply to this post by Bill Cole-3
On 02 Dec 2019, at 09:47, Bill Cole <[hidden email]> wrote:
> Have you considered doing as recommended at http://www.postfix.org/DEBUG_README.html#mail to make it easier for us to understand your issue?

Logs, postconf output, postmap -q output, what am I missing?



--
This above all, to thine own self be true And it must follow, as the
        night the day, Thou canst not then be false to any man.

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

Bill Cole-3
On 2 Dec 2019, at 21:31, @lbutlr wrote:

> On 02 Dec 2019, at 09:47, Bill Cole
> <[hidden email]> wrote:
>> Have you considered doing as recommended at
>> http://www.postfix.org/DEBUG_README.html#mail to make it easier for
>> us to understand your issue?
>
> Logs, postconf output, postmap -q output, what am I missing?

I see a couple of lines of config, not postconf -n output. Relevant map
files would also help.

I suspect the problem is simply that your working cases are in virtual
alias domains, while the non-working case is in a local or possibly a
virtual mailbox domain domain, which never gets mapped by your virtual
alias map.

--
Bill Cole
[hidden email] or [hidden email]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)
Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr
In reply to this post by @lbutlr
On 02 Dec 2019, at 06:43, @lbutlr <[hidden email]> wrote:
> status=bounced (host mail.covisp.net[private/dovecot-lmtp] said: 550 5.1.1 <[hidden email]> User doesn't exist: [hidden email] (in reply to RCPT TO command))

I was able to mitigate this be creating another entry in virtual

[hidden email]. [hidden email]

But that doesn’t explain the error. Something must be disconnected between the postmap domain queries and the lmtp delivery. Still, I have enough info now to dig in and fix it.


--
"Are you pondering what I'm pondering?"
"I think so, Brain. But even if we found a tuxedo to fit a blowfish,
        who would marry it?”

Reply | Threaded
Open this post in threaded view
|

Re: Recipient address rejected for recipient address in virtual

@lbutlr
In reply to this post by @lbutlr
On 02 Dec 2019, at 06:43, @lbutlr <[hidden email]> wrote:
> status=bounced (host mail.covisp.net[private/dovecot-lmtp] said: 550 5.1.1 <[hidden email]> User doesn't exist: [hidden email] (in reply to RCPT TO command))

I was able to mitigate this be creating another entry in virtual

[hidden email]. [hidden email]

But that doesn’t explain the error. Something must be disconnected between the postmap domain queries and the lmtp delivery. Still, I have enough info now to dig in and fix it.


--
"Are you pondering what I'm pondering?"
"I think so, Brain. But even if we found a tuxedo to fit a blowfish,
        who would marry it?”