Sahil, Thanks for your prompt reply.
my requirement is to setup a silent Postfix mail server that just receives mail and never responds any kind of information etc so that the existence of my mail server can be known. Obviously I need to secure my mail server from spam mails , so I need to add spam checks and hence the following mentioned requirement. Also I want to know when mail is rejected through DNSRBL checks , what type of info is sent to mail sender if any? Ashish -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sahil Tandon Sent: Thursday, October 22, 2009 6:31 PM To: postfix users list Subject: Re: Adding mail header if postfix DNS based RBL (realtime black hole) check fails On Oct 22, 2009, at 8:52 AM, "Sharma, Ashish" <ashish.shar...@hp.com> wrote: > Hello, > > I have setup a receiving Postfix mail server. Here i have custom > code written that parses the whole mail received by postfix and use > the headers, body and attachments separately for different uses. > > I have currently added SPF and DKIM checks in postfix that result in > appending of their results in the mail header to indicate about the > character of the mail. > > Also i am planning to implement postfix anti-UCE features using DNS > based Real time black hole lists (DNSRBL), for this i have added the > following: > > 'smtpd_recipient_restrictions = reject_rbl_client zen.spamhaus.org, > reject_rbl_client bl.spamcop.net' > > in my Postfix's main.cf file. > > My question is, how can I append the results of this check inside > the mail headers that are being received? > Huh? The above restrictions REJECT mail so it is never delivered and thus no headers to examine. What problem are you trying to solve?