Allow gmail access for smtp,pop and imap



  • Hi All,
          I am new to pfsense help me with some logics.

    1.  How can i allow my clients to only access gmail for smtp,pop,imap for certain ip's?

    2.  how to allow and restrict a  particular URL in pfsense and wer shud i apply the rule?

    3.  how to allow and restrict a domain for limited ip's.wat's the syntax?can u help me out with screenshots.



  • Hi,

    Actually it is quite easy to do with pfsense with squid 3 and squidguard package.

    a. smtp, pop3 and imap ports are open by default for incoming and outgoing mails. no setup required.

    b. You have to block gmail.* domain so users can't access webmail, can be done by either blacklisting this domain in squid3 or by url/content filter in squidguard. Please search the topic transparent ssl filtering in forum.

    c.You can create profiles in squidguard to filter content or websites as per you requirement and apply this profile to group of users. I will try to update on links available as soon as possible.



  • Hi,
        yup thankyou.i can understand and plss help me wit screen shots for all the things.



  • I know nothing about your setup, do you want to do with transparent proxy or with wpad.





  • @exograpix:

    a. smtp, pop3 and imap ports are open by default for incoming and outgoing mails. no setup required.

    Hey,
    is it like this?
    I have my PFSense configured, to send all traffic throught the VPN Network.
    But anway, i cannot send System-Mails from PFSense and FreeNAS to my mailaccount (gmail).
    It always says: "[Errno 65] No route to host"

    Therefore i configured a firewall rule (to NOT sent it over VPN, because of maybe blocking SMTP by VPN Provider):
    IPv4 TCP LAN net * WAN net 465 (SMTP/S) WAN_DHCP none   SMTP

    But still it doesn't work! :(
    Tried so many things, to get PFSense and FreeNAS to send again system-mails.


Log in to reply