On Sun, Dec 27, 2009 at 10:50 PM, Rony Bill gnulinuxist@gmail.com wrote:
Hello,
After postfix was successfully relaying messages to the remote smtp server, I tried Milter_AddressControl but while starting the binary for lenny, it returns and error that its corrupted and has some multiple mappings etc etc. So after looking up the traditional postfix method suggested earlier and after making mistakes and correcting them, I finally managed to get the outgoing address control working and it even rejects mail if the unwanted email id is in bcc. The only problem now is that if the mail has recipients who are in the whitelist and those not, the entire mail gets rejected. Is there any parameter option that will allow mails to be sent to atleast the whitelisted ones? This is not a major hurdle but if it can be resolved, it would be great.
In my main.cf I have the line:
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access, reject
The recipient_access file has the format:
whitelist_email_id1 permit whitelist_email_id2 permit whitelist_email_id3 permit
After the list is scanned, what is not in the list gets the reject option in the smtpd_ line. Is there any option other than `reject´ that will atleast let the whitelisted addresses receive the mails if both addresses exist together in the mail?
I don;t think that can be done. The rejection happens at the SMTP transaction level (Envelop Recipients) when MUA (Thunderbird, OutlookExpress etc) tries to send the mail. The sender should get clear message (I think you can customize the rejection message) that some of the recipients in the mail are rejected and sender can remove those recipients from (yet unsent) mail.
I think this is the desired way of rejecting the recipient then bouncing the mail for rejected recipients.
Regards,
Rony.
With regards,