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.
I tried downloading, it is working. It is compiled for i386 arch, which
architecture are you on.
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
Milter_AddressControl can do this, but is not recommended if you can
directly achieve it in postfix.
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
The recipient_access file has the format:
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?