| |||||||||||||||||||||||||||||||
|
I am trying to make the local delivery wait for the previous local delivery to be finished before continuing. After I read the pipe(8) manual, "RESOURCE AND RATE CONTROLS", I defined these in my main.cf: mailbox_transport = cyrus cyrus_destination_concurrency_limit = 1 cyrus_destination_recipient_limit = 1 BTW, the two last settings do not show up in the output of "postconf -n", I do not understand why. See at the end for the complete output. The "cyrus" transport is defined in master.cf as this: cyrus unix - n n - - pipe user=cyrus argv=/home/cyrus/bin/deliver.run ${user} ${sender} "deliver.run" is a custom shell script which calls "spamc", then Cyrus deliver. Looking at the logs, the destination_concurrency_limit does not seem respected. Here is a sample, where I can see that the processing of a new message starts before the previous one completed. Nov 29 16:56:16 petole postfix/smtpd[1121]: connect from hermes.apache.org[140.211.11.2] Nov 29 16:56:17 petole postfix/smtpd[1121]: 2938A676D3: client=hermes.apache.org[140.211.11.2] Nov 29 16:56:17 petole postfix/cleanup[1123]: 2938A676D3: message-id=<158eabf0711290755x55e34883s54cb8e368cbf164> Nov 29 16:56:17 petole postfix/qmgr[32222]: 2938A676D3: from=<users-return-77519-niko=petole.dyndns.org>, size=5049, nrcpt=1 (queue active) Nov 29 16:56:17 petole spamd[990]: spamd: connection from localhost [127.0.0.1] at port 55213 Nov 29 16:56:17 petole spamd[990]: spamd: setuid to niko succeeded Nov 29 16:56:17 petole spamd[990]: spamd: processing message <158eabf0711290755x55e34883s54cb8e368cbf164> for niko:1000 Nov 29 16:56:18 petole postfix/smtpd[1121]: disconnect from hermes.apache.org[140.211.11.2] Nov 29 16:56:18 petole postfix/smtpd[1121]: connect from english-breakfast.cloud9.net[168.100.1.7] Nov 29 16:56:18 petole postfix/smtpd[1121]: BDB796775B: client=english-breakfast.cloud9.net[168.100.1.7] Nov 29 16:56:18 petole postfix/cleanup[1123]: BDB796775B: message-id=<200711291055.28825.postfix> Nov 29 16:56:18 petole postfix/qmgr[32222]: BDB796775B: from=<owner-postfix-users>, size=3792, nrcpt=1 (queue active) Nov 29 16:56:18 petole postfix/smtpd[1121]: disconnect from english-breakfast.cloud9.net[168.100.1.7] Nov 29 16:56:19 petole spamd[21506]: spamd: connection from localhost [127.0.0.1] at port 55214 Nov 29 16:56:19 petole spamd[21506]: spamd: setuid to niko succeeded Nov 29 16:56:19 petole spamd[21506]: spamd: processing message <200711291055.28825.postfix> for niko:1000 Nov 29 16:56:20 petole spamd[990]: spamd: clean message (-3.6/5.0) for niko:1000 in 2.6 seconds, 4929 bytes. Nov 29 16:56:20 petole spamd[990]: spamd: result: . -3 - BAYES_00,RCVD_IN_DNSWL_MED,URIBL_BLACK,URIBL_RED,URIBL_RHS_DOB scantime=2.6,size=4929,user=niko,uid=1000,required_score=5.0,rhost=localhost,rad dr=127.0.0.1,rport=55213,mid=<158eabf0711290755x55e34883s54cb8e368cbf164,auto learn=ham Nov 29 16:56:20 petole lmtpunix[1208]: Delivered: <158eabf0711290755x55e34883s54cb8e368cbf164> to mailbox: user.niko.list.apache Nov 29 16:56:20 petole postfix/pipe[1125]: 2938A676D3: to=<niko>, relay=cyrus, delay=3.9, delays=0.94/0/0/3, dsn=2.0.0, status=sent (delivered via cyrus service) Nov 29 16:56:20 petole postfix/qmgr[32222]: 2938A676D3: removed Nov 29 16:56:20 petole spamd[2252]: prefork: child states: IB Nov 29 16:56:21 petole spamd[21506]: spamd: clean message (-3.6/5.0) for niko:1000 in 2.2 seconds, 3721 bytes. Nov 29 16:56:21 petole spamd[21506]: spamd: result: . -3 - BAYES_00,RCVD_IN_DNSWL_MED,URIBL_BLACK,URIBL_RED,URIBL_RHS_DOB scantime=2.2,size=3721,user=niko,uid=1000,required_score=5.0,rhost=localhost,rad dr=127.0.0.1,rport=55214,mid=<200711291055.28825.postfix,autolearn=ham Nov 29 16:56:21 petole lmtpunix[1208]: Delivered: <200711291055.28825.postfix> to mailbox: user.niko.list.postfix Nov 29 16:56:21 petole postfix/pipe[1219]: BDB796775B: to=<niko>, relay=cyrus, delay=2.8, delays=0.2/0.03/0/2.6, dsn=2.0.0, status=sent (delivered via cyrus service) Nov 29 16:56:21 petole postfix/qmgr[32222]: BDB796775B: removed What am I doing wrong ? Thanks. # postconf -n alias_maps = hash:/etc/aliases append_dot_mydomain = no broken_sasl_auth_clients = yes config_directory = /etc/postfix defer_transports = disable_mime_output_conversion = yes header_checks = regexp:/etc/postfix/header_checks inet_protocols = all local_recipient_maps = hash:/etc/postfix/local_recipients, $alias_maps mailbox_transport = cyrus mydestination = localhost, localhost.localdomain, petole, petole.home, petole.dyndns.org, petole.demisel.net mydomain = $myhostname myhostname = petole.dyndns.org relay_domains = demisel.dyndns.org relay_recipient_maps = hash:/etc/postfix/relay_recipients smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem smtp_tls_loglevel = 1 smtp_tls_security_level = may smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/postfix/ssl/petole-crt.pem smtpd_tls_key_file = /etc/postfix/ssl/petole-key.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport -- Nicolas
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com