[milters] Archive

Lists Index Date Thread Search

Article: 2767
From: Lorenzo Bagni
Date: 2011-10-18 09:03:26 -0400
Subject: R: Re: milter-limit on multi intances

Hi Anthony,
thanks for your help, now I'll read more deeply the docs and try.

Bye

Lorenzo Bagni

Network Digital Solutions | www.networkweb.net
Via Minuti 7/A - 26100 Cremona | P. IVA 01191890191
Tel. 0372.32590 | Fax 0372.464290

-----Messaggio originale-----
Da: milters@milter.info [mailto:milters@milter.info] Per conto di Anthony Howe
Inviato: venerdì 7 ottobre 2011 09:58
A: milters@milter.info
Oggetto: [milters] Re: milter-limit on multi intances

On 30/09/2011 10:37, Lorenzo Bagni whispered from the shadows...:
> is possible use the milter-limit on postfix multi instances?

Sorry for the delay in this answer.

> For example I have 2 postfix instances with different IP address on same box and I'd
like use milter-limit with different config for each instance (instance A 5 msg/sec,
instanced B 10 msg/sec).
> Same problem for 2 postfix or sendamail on different box that connect on milter-limit
through an IPV4 socket.
> 

It is possible to run multiple instances of a milter with different configurations. You
would have to change a group of options in order to separate the two instances:

	access-db
	file			(on command line)
	interface-ip
	interface-name		(interface-ip should be enough
				in which case leave empty)
	milter-socket
	pid-file
	+smdb-key-has-nul	(should always be on for Postfix/postmap,
				 off for sendmail/makemap)

NOTE that the complete options file can be generated by:

	milter-link -help >milter-link.cf.new

If you want each postfix instance to use a different milter instance then postfix A should
refer to milter-socket of milter A, likewise for postfix B refer to milter-socket B of
milter B.

While not part of your request, you could also have one postfix instance refer to both
milter instances A and B, but at different points of order in the list of milters supplied
to postfix.

Remember that this all applies to sendmail equally.

You'll need to modify you start up scripts to start each milter with a different file=
option specified on the command line to override default the .cf path:

	milter-limit file=/etc/mail/milter-limit-1.cf
	milter-limit file=/etc/mail/milter-limit-2.cf

-- 
Anthony C Howe            Skype: SirWumpus                  SnertSoft
                        Twitter: SirWumpus      BarricadeMX & Milters
http://snert.com/      http://nanozen.info/     http://snertsoft.com/



Lists Index Date Thread Search