On 2009-02-11, 09:32, Noel Jones wrote:
> Andy Spiegl wrote:
>
>> Hm, but I don't have the list of valid recipients. :-(
>>
>> All I have is the list of valid LOCAL recipients.  Everything else
>> I have to relay to the MX of example.com...
>
> If the receiving server rejects unknown recipients during SMTP (it
> should), you can use reject_unverified_recipient and let postfix
> maintain the list of valid users for you.
It does but I can only reach it through a relayhost, so that doesn't
work.  But I just found out that it seems to work alright without
keeping a list of valid recipients.  It does what I want: locally
known addresses (in virtual) are delivered and the rest is relayed to
the smarthost without further testing.  Bingo! :-)

> http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient
Just out of curiosity I tried the option reject_unverified_recipient
(with a different domain where the relayhost is not necessary).
But I couldn't get it to work.  I set:

 smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, 
hash:/etc/postfix/recipient_access

and recipient_access:
 example2.com     reject_unverified_recipient

and I overruled the routing:
 address_verify_relayhost =

But still, postfix tries to deliver the message instead of first
probing.  Is it obvious to you what I am missing?

Thanks a lot,
 Andy.

-- 
 BAYERISCHER RUNDFUNK  |  Programmbereich Multimedia und Jugend
 Rundfunkplatz 1       |  Fon +49 (0)89 5900 16062
 D-80335 Muenchen      |  Fax +49 (0)89 5900 16120

Reply via email to