Re: PROXY protocol

2015-08-20 Thread Nikolaos Milas

On 20/8/2015 10:35 πμ, Tim Groeneveld wrote:


# This is a list of trusted networks... ips are seperated by ", "
# default, empty
haproxy_trusted_networks = 10.1.2.0/24, 10.2.1.0/24

# This is the timeout... in seconds.
# default, 3
# haproxy_timeout = 3

# modify your inet listener's to include haproxy=yes
inet_listener {
 haproxy = yes
}


Thank you Tim,

As soon as I manage to re-build Dovecot with the latest snapshot, I'll 
test it!


All the best,
Nick


Re: Delivering email to Maildir PreINBOX

2015-08-20 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 19 Aug 2015, Paulo Matos wrote:


You can't change the name of the INBOX - the INBOX is always the INBOX.
But you can choose the name of the target mailbox.


How do I do that?


Depends on your way to deliver messages. With Dovecot LDA you could use 
the -m option.





I don't know "imapfilter".
I'd use  for mail filtering.


Thanks, I will take a look at Sieve.


With Sieve:

require ["fileinto"];
fileinto "PreINBOX";

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVdWFPHz1H7kL/d9rAQJjKQf/csSrfXGBuYcwoFla6gICePndFZpa3HkB
MszL6m3FKu3SVL+Y8EB/AR+zR8C1zfRmZPQjwnGX4DRASTk4ftWX92jDnfcmPaAV
0W07BsgZWsKk1epVP6xNy1155tI73MMJSDqTNEUvFgKWa/EjSEdICkt0x9AxWI9H
oI7WIPl37xqx2QRFCHH9NbUn6Z2pMNrneUBl96dPT33QZzM59Nxfvmo7oYI8SwU/
zChmv277GpF6fwgrWXryiOGr+LfXoY9uNB5YZKuK+gEOBC11/j+ypVubvds53pyV
8S430nhnY/h4j7YpihaUpjXUKFFUIhbJ/wNZpzX/9Yeumg/+JAjgGw==
=cSxB
-END PGP SIGNATURE-


Re: PROXY protocol

2015-08-20 Thread Tim Groeneveld

Hey Niko,

 On Thu, 20 Aug 2015 16:55:42 +1000 Nikolaos Milas wrote 
 
 > I hope you will be able to provide some basic guidelines on how to  
 > enable/use the new functionality. (I am not very code-literate.) 

Looking through the code, the functionality should not be too hard to
enable using the configuration:

# This is a list of trusted networks... ips are seperated by ", "
# default, empty
haproxy_trusted_networks = 10.1.2.0/24, 10.2.1.0/24

# This is the timeout... in seconds.
# default, 3
# haproxy_timeout = 3

# modify your inet listener's to include haproxy=yes
inet_listener {
haproxy = yes
}


As for HAProxy, the configuration would look something like this:


listen smtp :25
mode tcp
option tcplog
option smtpchk
balance roundrobin
server smtp1 ip.of.server1:25 check-send-proxy check inter 10s 
send-proxy
server smtp2 ip.of.server2:25 check-send-proxy check inter 10s 
send-proxy

Regards,
Tim