Re: Allow ZIP files from a single domain
James Robertson <[email protected]>
| Newsgroups | gmane.mail.virus.maiamailguard |
|---|---|
| Message-ID | <CAMALoy-QSvYhwoW2JyzeWGTTU-GJZJZM0fK36_-SdUMmfBqNvw@mail.gmail.com> |
This is what I do...
Add the following to amavis config. $inet_socket_port should already be
there so your just adding port 10026 to it.
# Allow banned attachments
$inet_socket_port = [10024,10026];
$interface_policy{'10026'} = 'SENDERBYPASS';
$policy_bank{'SENDERBYPASS'} = {
bypass_banned_checks_maps => [1],
};
restart Amavis
Add the following to postfix main.cf
smtpd_sender_restrictions = check_sender_access
hash:/etc/postfix/amavis_senderbypass
Add the following to /etc/postfix/amavis_senderbypass
example.com FILTER smtp-amavis:[127.0.0.1]:10026
postmap /etc/postfix/amavis_senderbypass
Reload or restart postfix
Thanks
James
On 28 May 2015 at 04:52, Bruce Sackett <bruce-LXYWj/[email protected]> wrote:
> I have an account that is going to be receiving ZIP files, a lot of them,
> to nearly all their email addresses. They are all coming from one domain,
> but from multiple addresses.
>
> What I’d like to be able to do is to allow ZIP files from that domain, but
> no others, for all users. It’s an edge case, I know, but it would save a
> lot of sanity, and add security, if I was able to.
>
> --Bruce Sackett – e: bruce-LXYWj/[email protected] - w: www.oecnw.com - p: 541.342.3325 -
> tw: @OECTECH - fb: www.facebook.com/oecnw
>
>
> _______________________________________________
> Maia-users mailing list
> [email protected]
> http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users
>
>
_______________________________________________
Maia-users mailing list
[email protected]
http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users