Re: limit recipients

2022-05-31 Thread Viktor Dukhovni
On Tue, May 31, 2022 at 05:38:07PM +0200, natan wrote:

> > Wny do you have "lmtp_destination_recipient_limit = 1", that's a really
> > bad idea.  Set it to 100 or even 1000 (if Dovecot won't object), and all
> > will be well.
> >
> I do not remember exactly but Some times ago I change from default to 1 
> beacuse i have some problem with queue and time delivery and that's 
> solve problems

This setting makes delivery to a large list of users *much* more
expensive, do set it much higher, the default is 50.

-- 
Viktor.


Re: limit recipients

2022-05-31 Thread natan

W dniu 31.05.2022 o 17:17, Viktor Dukhovni pisze:

On Tue, May 31, 2022 at 04:52:58PM +0200, natan wrote:


lmtp_destination_concurrency_limit = 100
lmtp_destination_recipient_limit = 1
virtual_transport = lmtp:inet:10.xxx.xxx.5:24

Wny do you have "lmtp_destination_recipient_limit = 1", that's a really
bad idea.  Set it to 100 or even 1000 (if Dovecot won't object), and all
will be well.

I do not remember exactly but Some times ago I change from default to 1 
beacuse i have some problem with queue and time delivery and that's 
solve problems


I have postfix+dovecot klaster+external amavis
--



Re: limit recipients

2022-05-31 Thread Viktor Dukhovni
On Tue, May 31, 2022 at 04:52:58PM +0200, natan wrote:

> lmtp_destination_concurrency_limit = 100
> lmtp_destination_recipient_limit = 1
> virtual_transport = lmtp:inet:10.xxx.xxx.5:24

Wny do you have "lmtp_destination_recipient_limit = 1", that's a really
bad idea.  Set it to 100 or even 1000 (if Dovecot won't object), and all
will be well.

-- 
VIktor.


Re: limit recipients

2022-05-31 Thread natan

W dniu 31.05.2022 o 16:41, Viktor Dukhovni pisze:

On Tue, May 31, 2022 at 03:28:30PM +0200, natan wrote:


I have separate servers for outgoing and incomming e-mail like

One user who have many alias group like:

1)alias...@domain1.ltd - 500 recipients
2)alias...@domain1.ltd - 500 recipients
3)alias...@domain1.ltd - 500 recipients
4)alias...@domain1.ltd - 500 recipients

-all recipients is in domain domain1.ltd)

and user send 1 email with 4 x To:
alias...@domain.ltd
alias...@domain.ltd
alias...@domain.ltd
alias...@domain.ltd

The question to ask is how you've configured delivery to Dovecot.
With LMTP you should be able to deliver many recipients in one
go, with just a small number of processes need to complete all
the deliveries.

Please post the details of the address class for the recipient
domain, and what transports are used to perform delivery.

Full (unmunged, with line folds preserved) "postconf -nf" and
"postconf -Mf" would be very useful.




smtp   inet  n   -   -   -   1   postscreen
smtpd  pass  -   -   -   -   850 smtpd
    -o receive_override_options=no_address_mappings
dnsblog    unix  -   -   -   -   0   dnsblog
tlsproxy   unix  -   -   -   -   0   tlsproxy
pickup unix  n   -   y   60  1   pickup
cleanup    unix  n   -   y   -   0   cleanup
qmgr   unix  n   -   n   300 1   qmgr
tlsmgr unix  -   -   y   1000?   1   tlsmgr
rewrite    unix  -   -   y   -   - trivial-rewrite
bounce unix  -   -   y   -   0   bounce
defer  unix  -   -   y   -   0   bounce
trace  unix  -   -   y   -   0   bounce
verify unix  -   -   y   -   1   verify
flush  unix  n   -   y   1000?   0   flush
proxymap   unix  -   -   n   -   -   proxymap
proxywrite unix  -   -   n   -   1   proxymap
smtp   unix  -   -   y   -   -   smtp
relay  unix  -   -   y   -   -   smtp
showq  unix  n   -   y   -   -   showq
error  unix  -   -   y   -   -   error
retry  unix  -   -   y   -   -   error
discard    unix  -   -   y   -   -   discard
local  unix  -   n   n   -   -   local
virtual    unix  -   n   n   -   -   virtual
lmtp   unix  -   -   y   -   -   lmtp
anvil  unix  -   -   y   -   1   anvil
scache unix  -   -   y   -   1   scache
maildrop   unix  -   n   n   -   -   pipe flags=DRhu
    user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp   unix  -   n   n   -   -   pipe flags=Fqhu
    user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix  -   n   n   -   -   pipe flags=F 
user=ftn

    argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp  unix  -   n   n   -   -   pipe flags=Fq.
    user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n   n   -   2   pipe flags=R
    user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
    ${user} ${extension}
mailman    unix  -   n   n   -   -   pipe flags=FR
    user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop}
    ${user}

smtp-amavis unix -   -   -   -   165 smtp
    -o smtp_data_done_timeout=900s
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=155
10.xxx.xxx.5:10025 inet n  -   n   -   -   smtpd
    -o content_filter=
    -o recipient_delimiter=+
    -o mynetworks_style=host
    -o mynetworks=10.xxx.xxx.0/24
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o strict_rfc821_envelopes=yes
    -o smtp_tls_security_level=none
    -o smtpd_tls_security_level=none
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o 
receive_override_options=no_header_body_checks,no_unknown_recipient_checks


xxx.xxx.xxx.199:10027 inet n -    n   -   450 smtpd
    -o smtpd_proxy_timeout=900s
    -o content_filter=
    -o mynetworks_style=host
    -o mynetworks=10.xxx.xxx.0/24
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o 

Re: limit recipients

2022-05-31 Thread Viktor Dukhovni
On Tue, May 31, 2022 at 04:43:23PM +0200, natan wrote:

> Increase the process limits in dovecot klaster is workaround (temporary) 
> solutions I thinking about restryctins like:

Much better to configure your MTA to do *efficient* delivery, unasking
the question.

-- 
Viktor.


Re: limit recipients

2022-05-31 Thread natan

W dniu 31.05.2022 o 15:44, Wietse Venema pisze:

natan:

Hi
I have separate servers for outgoing and incomming e-mail like

One user who have many alias group like:

1)alias...@domain1.ltd - 500 recipients
2)alias...@domain1.ltd - 500 recipients
3)alias...@domain1.ltd - 500 recipients
4)alias...@domain1.ltd - 500 recipients

-all recipients is in domain domain1.ltd)

and user send 1 email with 4 x To:
alias...@domain.ltd
alias...@domain.ltd
alias...@domain.ltd
alias...@domain.ltd


Yes I known is to many but web panel is allowed to 500 recipients (sic)

Is any method to slowdown thats delivery or limited that user ?
I thinking about postfwd - but I dont known what restrictions create

Any idea ?

May 31 14:06:39 MX4 dovecot: master: Warning: service(lmtp):
process_limit (800) reached, client connections are being dropped
May 31 14:06:40 MX4 dovecot: master: Warning: service(lmtp):
process_limit (800) reached, client connections are being dropped

In master.cf reduce he number of Postfix pocesses that deliver to
Dovecot, and do "postfix reload"; or increase the process limits
in Dovecot, if your hardware can handle that.

Wietse
Increase the process limits in dovecot klaster is workaround (temporary) 
solutions

I thinking about restryctins like:

If in one e-mail is alias1g1 and alias2g2 then REJECT "not welcome"
--



Re: limit recipients

2022-05-31 Thread Viktor Dukhovni
On Tue, May 31, 2022 at 03:28:30PM +0200, natan wrote:

> I have separate servers for outgoing and incomming e-mail like
> 
> One user who have many alias group like:
> 
> 1)alias...@domain1.ltd - 500 recipients
> 2)alias...@domain1.ltd - 500 recipients
> 3)alias...@domain1.ltd - 500 recipients
> 4)alias...@domain1.ltd - 500 recipients
> 
> -all recipients is in domain domain1.ltd)
> 
> and user send 1 email with 4 x To:
> alias...@domain.ltd
> alias...@domain.ltd
> alias...@domain.ltd
> alias...@domain.ltd

The question to ask is how you've configured delivery to Dovecot.
With LMTP you should be able to deliver many recipients in one
go, with just a small number of processes need to complete all
the deliveries.

Please post the details of the address class for the recipient
domain, and what transports are used to perform delivery.

Full (unmunged, with line folds preserved) "postconf -nf" and
"postconf -Mf" would be very useful.

-- 
Viktor.


Re: limit recipients

2022-05-31 Thread Wietse Venema
natan:
> Hi
> I have separate servers for outgoing and incomming e-mail like
> 
> One user who have many alias group like:
> 
> 1)alias...@domain1.ltd - 500 recipients
> 2)alias...@domain1.ltd - 500 recipients
> 3)alias...@domain1.ltd - 500 recipients
> 4)alias...@domain1.ltd - 500 recipients
> 
> -all recipients is in domain domain1.ltd)
> 
> and user send 1 email with 4 x To:
> alias...@domain.ltd
> alias...@domain.ltd
> alias...@domain.ltd
> alias...@domain.ltd
> 
> 
> Yes I known is to many but web panel is allowed to 500 recipients (sic)
> 
> Is any method to slowdown thats delivery or limited that user ?
> I thinking about postfwd - but I dont known what restrictions create
> 
> Any idea ?
> 
> May 31 14:06:39 MX4 dovecot: master: Warning: service(lmtp): 
> process_limit (800) reached, client connections are being dropped
> May 31 14:06:40 MX4 dovecot: master: Warning: service(lmtp): 
> process_limit (800) reached, client connections are being dropped

In master.cf reduce he number of Postfix pocesses that deliver to
Dovecot, and do "postfix reload"; or increase the process limits
in Dovecot, if your hardware can handle that.

Wietse