J. Bakshi wrote: > Dear list, > > I am trying to drop outgoing emails having particular email-id in its > [TO] field. Say [email protected] and [email protected], hence any > mail destined for [email protected] or [email protected] will be > dropped . To achieve this I have made a file sender_reject with > following entry > > ` ` ` > [email protected] REJECT > [email protected] REJECT > ` ` ` > and now generating the hash map by "postmap sender_reject" > > main.cf has > > ` ` ` > smtpd_recipient_restrictions = permit_sasl_authenticated, > check_relay_domains, check_sender_access hash:/etc/postfix/sender_reject > ` ` ` > > After restarting the postfix I sent an email with mail command like > > ` ` ` > mail [email protected] > ` ` ` > > and the mail was delivered !!!. It should be dropped by postfix. Have I > done any mistake/wrong configuration here ? > > Please suggest > Thanks > > Some more study shows the above setting is applicable to [RCPT TO] field and not for [TO] field. So how can I apply the restriction on TO field ? Thanks
-- জয়দীপ বক্সী
