Perfect - now postfix rejects with this reason:

550 550 5.1.1 <no.such.u...@example.com>: Recipient address rejected:
User unknown in relay recipient table (state 14).
Thanks :-)
Martin


On Tue, Apr 14, 2009 at 3:47 PM, Ralf Hildebrandt
<ralf.hildebra...@charite.de> wrote:
> * Martin Schiøtz <mali...@gmail.com>:
>> Hi
>>
>> I have made a spamfilter server based on Postfix and MailScanner. I
>> wan't postfix to reject emails to email-addresses that does not exist
>> on our exchange server. I use a nice perl script that collects the
>> email-addresses from Exchange AD with LDAP.
>>
>> main.cf:
>> ------------------------------
>> transport_maps = hash:/etc/postfix/transport
>> relay_domains = example.com
>>
>> smtpd_recipient_restrictions = check_recipient_access
>> hash:/etc/postfix/recipient_access
>>                                                  reject
>
> No, use relay_recipient_maps
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> I wish you'd tell me what kind of systems they're using instead,
> because HP can't be doing much worse than Sun "would you like the
> compiler or internet options with that" Microsystems, or Silicon "hey
> be glad the support-contract number isn't a 1-900" Graphics. Then
> there's Digital "It sucks in 64 bits, you can't suck in 64 bits
> anywhere else" Equipment Corp (Did we mention it's 64 bits?).
>



-- 
Med venlig hilsen
Martin Schiøtz

Reply via email to