On 2012-08-12 7:13 PM, Daniel Parthey <[email protected]> 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, please?
Are you using SQL or LDAP for user lookup?

You probably should do the filtering already in your
userdb/authdb lookup queries, since Variable %a or %{lport}
which contains the local port is only available in
Dovecot-Auth according to http://wiki2.dovecot.org/Variables

Or you could use something like:

http://wiki2.dovecot.org/Authentication/RestrictAccess

--

Best regards,

Charles

Reply via email to