Re: [Dovecot] about postlogin in dovecot2

2012-09-07 Thread Daniel Parthey
bmalik wrote: > when i login to the server using pop3s, i see in the dovecot log; > > @400050457dd9179c653c pop3-login: Info: Login: user=, > method=DIGEST-MD5, rip=192.168.12.220, lip=192.168.12.115, mpid=87395, TLS, > session= > > if i add my mail address into the users-with-forced-encry

Re: [Dovecot] about postlogin in dovecot2

2012-09-03 Thread bmalik
i am sorry when i login to the server using pop3s, i see in the dovecot log; @400050457dd9179c653c pop3-login: Info: Login: user=, method=DIGEST-MD5, rip=192.168.12.220, lip=192.168.12.115, mpid=87395, TLS, session= if i add my mail address into the users-with-forced-encryption file, i w

Re: [Dovecot] about postlogin in dovecot2

2012-08-14 Thread bmalik
Thanks a lot. the script you gave works . -- View this message in context: http://dovecot.2317879.n4.nabble.com/about-postlogin-in-dovecot2-tp5993p37080.html Sent from the Dovecot mailing list archive at Nabble.com.

Re: [Dovecot] about postlogin in dovecot2

2012-08-14 Thread Daniel Parthey
bmalik wrote: > But I 'll do that for only some email addresses. I assume that by "email addresses" you mean "user names". > How can i do that ? The $SECURED variable contains "secured" if a user tries to log in via SSL/TLS, so if an insecure connection is found, the script should check whethe

Re: [Dovecot] about postlogin in dovecot2

2012-08-14 Thread bmalik
is there a solution ? -- View this message in context: http://dovecot.2317879.n4.nabble.com/about-postlogin-in-dovecot2-tp5993p37074.html Sent from the Dovecot mailing list archive at Nabble.com.

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread bmalik
But I 'll do that for only some email addresses. How can i do that ? -- View this message in context: http://dovecot.2317879.n4.nabble.com/about-postlogin-in-dovecot2-tp5993p37064.html Sent from the Dovecot mailing list archive at Nabble.com.

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread Timo Sirainen
On 14.8.2012, at 9.11, bmalik wrote: > how can i restrict a particular email address by tcp port ? > I want a particular mail address to be forced to use pop3s/imaps. > I use vpopmail / dovecot2. > How can i do a script for that ? > > userdb { > dr

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread bmalik
My purpose is to restrict a particular email address 's reach for dovecot services such as pop3/imap. how can i restrict a particular email address by tcp port ? I want a particular mail address to be forced to use pop3s/imaps. I use vpopmail / dovecot2. How can i do a script for that ? cat aut

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread Joseph Tam
writes: where do i have to locate the passwd-file in dovecot2 For what purpose? Master user? Password/user lookup? passdb { driver = passwd-file master = yes args = /anywhere/you/want/master-users pass = yes }

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread bmalik
Ok where do i have to locate the passwd-file in dovecot2 i use vpopmail and dovecot2. -- View this message in context: http://dovecot.2317879.n4.nabble.com/about-postlogin-in-dovecot2-tp5993p37050.html Sent from the Dovecot mailing list archive at Nabble.com.

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread Charles Marcus
On 2012-08-12 7:13 PM, Daniel Parthey wrote: bmalik wrote: I wrote a loginscript in bash. it works well. I can restrict a user by IP. how can i restrict a particular email address by tcp port ? I want a particular mail address to be forced to use pop3s/imaps. What's your doveconf -n output,

Re: [Dovecot] about postlogin in dovecot2

2012-08-13 Thread bmalik
hello how can i do a login script by tcp port ? I use cdb database my dovecot.conf -n; # doveconf -n # 2.1.8: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.2-RELEASE amd64 auth_mechanisms = plain login digest-md5 cram-md5 apop disable_plaintext_auth = no first_valid_gid = 89 first_val

Re: [Dovecot] about postlogin in dovecot2

2012-08-12 Thread Daniel Parthey
bmalik wrote: > I wrote a loginscript in bash. it works well. I can restrict a user by IP. > how can i restrict a particular email address by tcp port ? > I want a particular mail address to be forced to use pop3s/imaps. What's your doveconf -n output, please? Are you using SQL or LDAP for user lo

Re: [Dovecot] about postlogin in dovecot2

2012-08-12 Thread bmalik
Thank you I wrote a loginscript in bash. it works well. I can restrict a user by IP. Well , how can i restrict a particular email address by tcp port ? I want a particular mail address to be forced to use pop3s/imaps. I use vpopmail / dovecot2 -- View this message in context: http://dovecot.

Re: [Dovecot] about postlogin in dovecot2

2012-08-11 Thread Daniel Parthey
bmalik wrote: > is there another post-login script that i can use on freebsd ? You can use virtually any executable for post-login if they communicate as expected. First you should start simple and create a post-login script consisting of just a few lines which just covers the case of "access alw

Re: [Dovecot] about postlogin in dovecot2

2012-08-11 Thread bmalik
is there another post-login script that i can use on freebsd ? -- View this message in context: http://dovecot.2317879.n4.nabble.com/about-postlogin-in-dovecot2-tp5993p37034.html Sent from the Dovecot mailing list archive at Nabble.com.

Re: [Dovecot] about postlogin in dovecot2

2012-08-10 Thread bmalik
I started to use bash in the script and changed read -d instead of -p. Also I get the script 's rights root:dovecot I get an error; -ERR pop3 binary must not be started from inetd, use pop3-login instead. Connection closed by foreign host. Aug 11 04:30:05 pop3y dovecot: pop3(t...@test.com): Post-

Re: [Dovecot] about postlogin in dovecot2

2012-08-10 Thread Daniel Parthey
bmalik wrote: > i can manage read -d problem changing -p You should not do that, since the semantics of -d and -p are completely different. Argument -d ' ' sets the delimiter for reading words to space, while -p enables password mode in order to disable input echo. By simply replacing -d with -p y

Re: [Dovecot] about postlogin in dovecot2

2012-08-10 Thread bmalik
i can manage read -d problem changing -p what should be user rights of the postlogin_pop3.sh ? i use vpopmail the pop3script; #!/bin/sh # 30-jul-2007 # # Author: # Oliver Schulze L. # Contact: http://tinymailto.com/oliver # Paraguay INTRANET_NETS="127.0.0.1 10." # users that can login

Re: [Dovecot] about postlogin in dovecot2

2012-08-10 Thread Daniel Parthey
Bulend Mali wrote: > service pop3-postlogin { >executable = script-login /usr/local/bin/postlogin_pop3.sh > } > > when i restart dovecot service. i get an error; > Aug 11 00:48:27 pop3y dovecot: pop3-postlogin: Error: read: Illegal option -d Seems like you are calling a command with argument

Re: [Dovecot] about postlogin in dovecot2

2012-08-10 Thread Bulend Mali
my 10-master.conf; service pop3-login { inet_listener pop3 { } service pop3 { executable = pop3 pop3-postlogin } service pop3-postlogin { executable = script-login /usr/local/bin/postlogin_pop3.sh user = root unix_listener pop3-postlogin { } } when i restart dovecot service. i

Re: [Dovecot] about postlogin in dovecot2

2012-08-09 Thread Daniel Parthey
Bulend Mali wrote: > i want to use login-intranet-imap.sh in order to restrict by emailaddress and > ip address. > i read it at http://wiki2.dovecot.org/PostLoginScripting. > But there is an expression "mail_executable" in [dovecot1] conf. > but there is no such thing in dovecot2. > What is equiva

[Dovecot] about postlogin in dovecot2

2012-08-08 Thread Bulend Mali
Hello I use dovecot2 on vpopmail,qmail. i want to use login-intranet-imap.sh in order to restrict by emailaddress and ip address. i read it at http://wiki2.dovecot.org/PostLoginScripting. But there is an expression "mail_executable" in conf. but there is no such thing in dovecot2. what is equiv