Re: [courier-users] accept local

2016-05-02 Thread Sam Varshavchik

Vytautas Kasparavičius writes:


Hi,
I have some accounts user1, user2, user3,... etc
I want to make user2 to accept mail only from local user user1 and user3
to accept only mail from local accounts. Is it possible?


It's possible if you write a custom courierfilter module. See the  
courierfilter man page for additional documentation.




pgptn5DEQ_XvW.pgp
Description: PGP signature
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] I need working nginx configuration for webadmin

2016-05-02 Thread Mark Constable
On 05/02/16 20:14, Matus UHLAR - fantomas wrote:
> and I mean, apache process loads all modules at startup time, which
> means that mod-php is loaded only at the start or reconfigure time,
> and all child processes are created by forking only when servers are
> spawned at:
> - startup
> - increating number of server processes
> - restarting after MaxRequestsPerChild or MaxConnectionsPerChild hit.

And my point is that every apache process includes the full mod-php
interpreter regardless of whether that process is about to handle a
PHP script or a static file. It's not the startup time that is the
issue (for me) but that a PHP interpreter is included within each
process even if it is not going to be used to interpret a PHP script
(in the case of delivering a non-php static resource).


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] I need working nginx configuration for webadmin

2016-05-02 Thread Matus UHLAR - fantomas
>On 05/02/16 19:19, Matus UHLAR - fantomas wrote:
>>> A couple of more points, apache with libapache2-mod-php requires
>>> the slower pre-forking version of apache and because that module is
>>> always loaded for every access

>> is it? iiuc it's only loaded on apache reload... (unless you tune
>> MaxRequestsPerChild/2.2 or MaxConnectionsPerChild/2.4)

On 02.05.16 19:57, Mark Constable wrote:
>I meant the entire libapache2-mod-php module is loaded into ram for
>every access to every file no matter if it's a non-php static file
>or a php file.

and I mean, apache process loads all modules at startup time, which means
that mod-php is loaded only at the start or reconfigure time, and all child
processes are created by forking only when servers are spawned at:
- startup
- increating number of server processes
- restarting after MaxRequestsPerChild or MaxConnectionsPerChild hit.

(note that forking is quite cheap operation on linux, don't know other OSes)
This is quite different than what you are saying.

> Each apache process (+ mod-php) is from 20Mb to 100Mb
>regardless of whether it's about to parse a PHP script or not. A nginx
>instance is about ~9Mb and delivers a static file up to twice as fast
>as apache with mod-php (according to ab testing I did 1/2 dozen years
>ago).
>
>I find php-fpm usually runs at 3Mb to 30Mb but sometimes up to 100Mb
>for Wordpress with massively complex themes and plugins. So nginx +
>php-fpm generally uses less ram than apache + mod-php for PHP scripts
>but up to 10 times less ram for static files (css, js, images) and
>static files (until cached) far outnumber PHP script access.

I'm not telling that your claims about speed are wrong, just that your
claims about how mod_php works apparently are...


-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
- Have you got anything without Spam in it?
- Well, there's Spam egg sausage and Spam, that's not got much Spam in it.

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] I need working nginx configuration for webadmin

2016-05-02 Thread Mark Constable
On 05/02/16 19:19, Matus UHLAR - fantomas wrote:
>> A couple of more points, apache with libapache2-mod-php requires
>> the slower pre-forking version of apache and because that module is
>> always loaded for every access
>
> is it? iiuc it's only loaded on apache reload... (unless you tune
> MaxRequestsPerChild/2.2 or MaxConnectionsPerChild/2.4)

I meant the entire libapache2-mod-php module is loaded into ram for
every access to every file no matter if it's a non-php static file
or a php file. Each apache process (+ mod-php) is from 20Mb to 100Mb
regardless of whether it's about to parse a PHP script or not. A nginx
instance is about ~9Mb and delivers a static file up to twice as fast
as apache with mod-php (according to ab testing I did 1/2 dozen years
ago).

I find php-fpm usually runs at 3Mb to 30Mb but sometimes up to 100Mb
for Wordpress with massively complex themes and plugins. So nginx +
php-fpm generally uses less ram than apache + mod-php for PHP scripts
but up to 10 times less ram for static files (css, js, images) and
static files (until cached) far outnumber PHP script access.


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] I need working nginx configuration for webadmin

2016-05-02 Thread Matus UHLAR - fantomas
>On 05/02/16 03:16, Matus UHLAR - fantomas wrote:
>>> Perl kludge suggested on nginx site for runnig CGI scripts as
>>> FastCGI much worse than time-honoured apache.
>>
>> but what's the point of proxying it from apache? Apache can run cgi
>> (and fastcgi, even php as module, not as fastcgi, so php should be
>> even faster under apache) too, you don't need nginx.
>>
>> if you want nginx, what's the point of apache proxying?

On 02.05.16 13:27, Mark Constable wrote:
>A couple of more points, apache with libapache2-mod-php requires the
>slower pre-forking version of apache and because that module is always
>loaded for every access

is it? iiuc it's only loaded on apache reload...
(unless you tune MaxRequestsPerChild/2.2 or MaxConnectionsPerChild/2.4)

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
One OS to rule them all, One OS to find them, 
One OS to bring them all and into darkness bind them 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users