Answer the question
In order to leave comments, you need to log in
How can I set the upload speed limit in postfix?
Good day. OS CentOS 7, postfix 3.5 installed. This vps server on which bitrix vm is installed. On it, I reconfigured the mail according to this instruction so that the mail goes through the postfix https://pai-bx.com/wiki/vmbitrix/2324-bitrixvm-hel...which in turn uses Yandex smtp for direct delivery to the recipient. Sending mail works without problems and letters do not end up in spam. But the essence of all these cases is this: the site (on Bitrix) should make mailings when news appears. Literally over 9000 subscribers. And when the scheduler starts the mailing module handler, it sends all the letters in a crowd at a time. For this, the Yandex server, after a certain number of sent ones, beats it off because of "too many sent letters" and the module calms down on this and as a result it turns out that only a small part has been sent. Completing the sending module is a rather complicated task, and I decided to go by setting up the postfix so that it is a kind of buffer, i.e. received all the letters from the site and then slowly sent them, for example, 10 per minute. It seems to have found the necessary parameters, but for some reason they do not work.
= yes
smtp_sasl_auth_enable smtp_sasl_password_maps = hash: / etc / postfix / mailpasswd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = login
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash: / etc / postfix / sender_relay
#sender_canonical_maps = hash: / etc / postfix / canonical
#smtp_generic_maps = hash :/etc/postfix/generic
smtp_use_tls = yes
queue_run_delay = 15m
smtp_destination_rate_delay = 55s
default_destination_concurrency_limit = 1
smtp_destination_concurrency_limit = 1
smtp_destination_recipient_limit = 1
smtp_initial_destination_concurrency = 1
default_destination_rate_delay = 50s
smtp_transport_rate_delay = 120s
default_transport_rate_delay = 120s
debug_peer_level = 2
But unfortunately, for some reason, gradual sending does not work - I check in the Bitrix php console by executing 10 mail functions in a row - they all come almost immediately. Still there is a problem that for some reason the postfix does not write special details to the log. All he writes there is:
Jun 10 08:55:52 hosted-by postfix[4026]: Postfix is running with backwards-compatible default settings
Jun 10 08:55:52 hosted-by postfix[4026]: See www.postfix .org/COMPATIBILITY_README.html for details
Jun 10 08:55:52 hosted-by postfix[4026]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Jun 10 08:55:52 hosted-by postfix/postfix-script[4090]: starting the Postfix mail system
Jun 10 08:55:52 hosted-by postfix/master[4092]: daemon started -- version 3.5.8, configuration /etc/postfix
Please help me configure this thing - I've been with it for the third day in all poses ...
Answer the question
In order to leave comments, you need to log in
Itself dug out that thus restrictions will not work. It is necessary that the postfix accepted mail on smtp. Perhaps someone can tell the thread how to configure postfix as a relay without authorization? Since he listens only to localhost, there will be no problems with extra people. The site will send mail via msmtp, which, in turn, will send it to postfix via smtp, which, already applying speed limits for sending, will also transfer it to Yandex via smtp.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question