LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how can i block user for accessing mailserver outside network ip. (https://www.linuxquestions.org/questions/linux-server-73/how-can-i-block-user-for-accessing-mailserver-outside-network-ip-4175411737/)

centos123 06-16-2012 01:45 AM

how can i block user for accessing mailserver outside network ip.
 
i had mailserver with qmail mta.
we can access mailserver within local network and outside also.current scenario is user whos not allowed to login from outside network cannot login into server.only users have global authenticate ,can login into mailserver from other ip(outside network) through VPN..

now we need to change this scenario to like-

any user who want to access mail have to be inside network ip then only they can access mailserver/get login...means ip based access mailserver.so how can i change this .....

is any pop server responsible for this?

Senthilv 06-16-2012 04:47 AM

Block through IPTABLES
 
To Block the ouside side nework, you can do only through

IPTABLES
1. Make INPUT as DROP
2. Only allow VPN network ipaddress to access from outside.

So that outside person can access only through the VPN ip.


Regards,
Senthil

centos123 06-16-2012 06:04 AM

thanks...

also i want to know blocking user if user is not authorized..if he/she has VPN access...

Senthilv 06-16-2012 06:47 AM

For this you can done through Qmail server, better you can delete the unauthorized mail account.

Other wise, if that particular user having VPN Static ip address, you can block that particular ipaddress not able to access the SMTP, POP3, SMTPS and POP3s port.







Regards,
Senthil

centos123 06-18-2012 02:01 AM

im searching in qmail source file ...and also i can't delete any email id since it belongs to my domain...i just need to put security on login from outside network


All times are GMT -5. The time now is 10:06 PM.