On 09/05/2015 12:39 PM, Thomas wrote:
>
> Hi,
>
> i am pretty new to postfix,
>
> i have set up a postfix sever that forwards mail over a relay host
> (gmail.com), which comes from another external server with fetchmail.
the risk of this is that you end up forwarding some spam messages
which will then get your server blocked as a spam source. If the
only purpose is to fetch mail from an external pop3 account and
have it end up in the gmail account, then you might be better off
using gmail's capability to fetch remote email. It does not appear
to support fetching from imap though.
>
> That all works, but what i want to do is to forward only mail from
> certain sender adresses(whitelist).
> So where do i have to dig?
> The smptd_recipient_restrictions check sender_access doesn't seem to
> work. I am still getting all the mail
check_sender_access will allow you to reject email based on the
envelope sender (not necessarily the same as the from address).
Are you expecting to just drop those emails silently? If so you'll
need to configure fetchmail so that it does not bounce them
back to the original sender (potentially forged in the case of
spam), otherwise you can end up as a source of back scatter
and get your server blocked.
>
> Thanks
>
> toby
>