5 msgpostconf not displaying all options
3 msgempty_address_recipient not mapped by virtual o...
5 msgstop smtp from anyone unless sasl auth?
2 msg'piped' aliases & DSNs
12 msgStrange From: in headers
5 msgMail - Access Denied
4 msgqpsmtpd support service for postfix
39 msgpix workaround broken?
2 msgX-Original-To after bcc contains wrong address
8 msg/usr/lib/sendmail delivery status/message id's ...
23 msgRecommended Filesystems?
8 msgMail going to backup server instead main server

outgoing rate control
\ Juan Pablo Bagnon (21 Jul 2007)
. \ Alain Spineux (22 Jul 2007)
. \ Juan Pablo Bagnon (22 Jul 2007)

5 msgmail forwarding loop: how do I prevent this?
5 msgServer relaying existing virtual mailbox
1 msghow can I rewrite the Mail From
3 msgConstant connections from user unknown sending ...
2 msgsporadic deferrals
8 msgtransport_maps: different behavior if discard o...
4 msgAddress verification questions
Subject:outgoing rate control
Group:Postfix-users
From:Juan Pablo Bagnon
Date:21 Jul 2007


 

Dear list members:


i was in the need to catch all the overwelming tsunami of emails that my
content filter server (CFS) is getting with a postfix server, then, sending
with a controlled rate, tunning it untill the CFS works w/o colapsing.

i did some sort of a solution that works but i dont have a fine control of
the message rate feeding my lame CFS. the only thing i have in mind is set a
IP traffic sharping.
QoS can control the ammount of data passed to the CFS but is not efficient
in the number of emails, mostly spam (~80%). these spam messages are mostly
less than 1 kb so the real problem of my CFS is processing emails/minute
than KB/minute.


i have googled and found and implemented the solution above. im not happy
with it... is there another tecnically more robust and better than this?


from <http://www.akadia.com/services/postfix_mx_backup.html>
http://www.akadia.com/services/postfix_mx_backup.html i did:


/etc/postfix/main.cf:

relay_domains = $mydestination the.backed-up.domain.name
smtpd_recipient_restrictions = permit_mynetworks
check_relay_domains

/etc/postfix/main.cf:

transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport:

the.backed-up.domain.name smtp:[their.mail.host.name]


then from
http://groups.google.com.ar/group/list.postfix.users/browse_thread/thread/cf
0fe8258b1fedd/a07e91e50c693fe4?lnk=gst
<http://groups.google.com.ar/group/list.postfix.users/browse_thread/thread/c
f0fe8258b1fedd/a07e91e50c693fe4?lnk=gst&q=rate+limiting&rnum=37&hl=e s#a07e91
e50c693fe4> &q=rate+limiting&rnum=37&hl=es#a07e91e50c693fe4


i have set to 1 all of this values:

*_destination_recipient_limit
*_destination_concurrency_limit


from somewhere else i got a solution to hold for 5 secs every delivery
setting a fake non functional transport and playing with
smtp_connect_timeout, so the final setup is this:



master.cf:


brc unix - - n - 1 smtp
-o fallback_relay=[dest.ip.1.ok]
-o smtp_connect_timeout=5
brc2 unix - - n - 1 smtp
-o fallback_relay=[dest.ip.2.ok]
-o smtp_connect_timeout=5



main.cf


initial_destination_concurrency = 1
default_destination_concurrency_limit = 1

transport_maps =
hash:/etc/postfix/transport
relay_domains =
hash:/etc/postfix/relay_domains

brc2_destination_concurrency_limit = 1
brc2_destination_recipient_limit = 1

brc_destination_concurrency_limit = 1
brc_destination_recipient_limit = 1




transport


domain1.ltd smtp:[real.ip.addr.ok]
domain2.ltd brc:[10.10.10.10]
domain3.ltd brc2:[10.10.10.10]



take in mind that i need to archive is the opposite of the developers have
working on all this time: performance.
i need to hold the emails with this server and slowly feed in a
message/minute based rate with the finest control posible to set a proper
rate for letting the CSF opperate efficiently.

thanks in advance.



© 2004-2008 readlist.com