* Ashwin Muni <ashwin.m...@gmail.com>:
> Hi
> 
> I want to reject mails those which are not specified in virtual_alias_maps
> Have tried
> 
> smtpd_recipient_restrictions =
>  permit_mynetworks,
>  reject_unlisted_recipient
>  check_relay_domains
>  reject_unknown_recipient_domain,
>  check_sender_access hash:/etc/postfix/dbs/sender_access-accept
>  check_recipient_access hash:/etc/postfix/dbs/chk_rcpt_acc,
>  reject_unauth_destination

Make that

smtpd_recipient_restrictions =
  permit_mynetworks,
  reject_unauth_destination
  reject_unlisted_recipient
  reject_unknown_recipient_domain,
  check_sender_access hash:/etc/postfix/dbs/sender_access-accept
  check_recipient_access hash:/etc/postfix/dbs/chk_rcpt_acc,

> 
> But Still i am able to receive mail those not specfied in virtual_alias_maps
> ------------------------------------------------------------------------
> [r...@localhost postfix]# telnet localhost 25

A test from localhost is not very smart, since it's in mynetworks
(usually)

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
What is this "XP pro"? Does this make "XP" unprofessional?

Reply via email to