Block ip address for qmail pop3 access

Discussion in 'qmail' started by theinternethost, Jun 12, 2009.

  1. theinternethost

    theinternethost New Email

    Joined:
    Jun 12, 2009
    Messages:
    2
    Likes Received:
    0
    Hi All,

    I'm trying to block an ip address from accessing qmail-pop3 access.

    Other than using iptables firewall is there some way to do this in qmail or tcpserver.

    TIA
    Regards
    Ross
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,999
    Likes Received:
    120
    Hi Ross,

    Yes, you can block an IP from pop3 access similar to the way you would block it from smtp access.

    Use the -x flag with tcpserver and create a rules file.

    Here is the line of your pop3 supervise run file to update:

    /usr/local/bin/tcpserver -v -R -H -c 500 -x /etc/tcprules.d/qmail-pop3d.cdb -l 0 0 110 /var/qmail/bin/qmail-popup \

    And then create the rules cdb file /etc/tcprules.d/qmail-pop3d.cdb

    If you need more specific directions for either of those steps please let me know.

    -Raymond
     

  3. theinternethost

    theinternethost New Email

    Joined:
    Jun 12, 2009
    Messages:
    2
    Likes Received:
    0
    Hi Raymond,

    Thanks for that.

    Cheers
    Ross
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...