On 2021-04-16 14:00, natan wrote:
Hi
What I do wrong ?

smtpd_data_restrictions =
        check_policy_service  { inet:127.0.0.1:10040 timeout=2s,
default_action=DUNNO }

postfwd.cf:
id=SIZE01 ;  state==END_OF_DATA ;  recipient==piot...@mail2.domain.ltd ;
action==REJECT; size==1000000;

imho you maked it incorrect, one user is allowed to send more data, but all others have unlimited ?

if you liked to have a single user limited, you should define all others with limits, and not define the one that is unlimited, then in postfix main.cf you can add the unlimied size restriction

i will keep defaults unless ones like to get iso cdroms on email



On 15.04.2021 18:14, Wietse Venema wrote:
natan:
Hi
Server is only for incommin. I have a "message_size_limit = 146800640"

Is any sollutions to change this value for special recipient ?
like al...@domain.ldt - "message_size_limit = 1468006"
You can call postfwd from smtpd_end_of_data_restrictions to reject
message sizes selectively. If you call postfwd earlier then Postfix
does not know the real message size; Postfix knows only what the
client says in the MAIL FROM command.

        Wietse

probably not impossible in postfix but meybe "work around" like postfwd
or something ?

--



--

Reply via email to