On 10/10/2011 2:32 PM, Erik Christiansson wrote:
> I'm trying to get postgrey up and running, but I seem to have a
> problem with the ordering of my restrictions.
>
> smtpd_recipient_restrictions =
>         permit_sasl_authenticated,
>         permit_mynetworks,
>         reject_invalid_helo_hostname,
>         reject_non_fqdn_helo_hostname,
>         reject_non_fqdn_sender,
>         reject_non_fqdn_recipient,
>         reject_unknown_sender_domain,
>         reject_unknown_recipient_domain,
>         reject_unauth_destination,
>         reject_unverified_recipient,
>         reject_rbl_client sbl-xbl.spamhaus.org,
>         reject_rbl_client bl.spamcop.net,
>         warn_if_reject check_policy_service inet:127.0.0.1:10023
>         permit
>
> I get a lot of logs like this:
>
> Oct 10 19:55:33 holly postfix/smtpd[21350]: NOQUEUE: reject_warning:
> RCPT from remote.address.tld[1.2.3.4]: 450 4.2.0
> <badaddr...@mydomain.tld>: Recipient address rejected: Greylisted, see
> http://postgrey.schweikert.ch/help/mydomain.tld.html;
> from=<some.addr...@otherdomain.tld> to=<badaddr...@mydomain.tld>
> proto=SMTP helo=<otherdomain.tld>
> Oct 10 19:55:33 holly postfix/smtpd[21350]: NOQUEUE: reject: RCPT from
> remote.address.tld[1.2.3.4]: 550 5.1.1 <badaddr...@mydomain.tld>:
> Recipient address rejected: User unknown in virtual mailbox table;
> from=<some.addr...@otherdomain.tld> to=<badaddr...@mydomain.tld>
> proto=SMTP helo=<otherdomain.tld>
>
> I can't figure out why this message is passed to postgrey when it
> should be stopped by reject_unverified_recipient.

Unfortunately, you seem to have missed the important welcome message:
"TO REPORT A PROBLEM, PLEASE SEE
http://www.postfix.org/DEBUG_README.html#mail";

So, are you verifying an account is on a remote box? That is what
reject_unverified_recipient is for.

If you want to reject virtual users on the current box, you want
reject_unlisted_recipient.

Without more details, it's hard to help you.

Brian

Reply via email to