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


But Still i am able to receive mail those not specfied in virtual_alias_maps
------------------------------------------------------------------------
[r...@localhost postfix]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 snew.co.co.in ESMTP Postfix
mail from:ash...@ashwin.com
250 2.1.0 Ok
rcpt to:ash...@090970.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
quit
.
250 2.0.0 Ok: queued as F15DAD5CAB
quit
221 2.0.0 Bye
Connection closed by foreign host.
----------------------------------------------
Logs for the same

Apr 14 02:42:21 localhost postfix/qmgr[3034]: F15DAD5CAB:
from=<ash...@ashwin.com>, size=365, nrcpt=1 (queue active)
Apr 14 02:42:21 localhost postfix/smtp[3055]: F15DAD5CAB:
to=<ash...@090970.com>, relay=127.0.0.1[127.0.0.1]:20030, delay=19,
delays=19/0.01/0/0, dsn=2.0.0, status=sent (250 A00BF0BC0A2 queued for
delivery)
Apr 14 02:42:21 localhost postfix/qmgr[3034]: F15DAD5CAB: removed
Apr 14 02:42:23 localhost postfix/smtpd[3036]: disconnect from
unknown[127.0.0.1]

my virtual File  :
--------------------
lc.in OK
lc.co.in OK
malsere.net OK

I want my postfix to accept mails for these 3 domains only.

Please let me know how to achieve that

-- 
Ashwin R.

Reply via email to