Killing That Spam With Postgrey And Postfix new version v1.27 for FC6

Discussion in 'HOWTO-Related Questions' started by micko_escalade, Jul 26, 2007.

  1. micko_escalade

    micko_escalade New Member

    PostGrey v1.27 for FC6 ?

    Hi,

    I was using successfully postgrey for a while on FC4 and it really cuts on spam,
    now I upgraded to FC6 and this tutorial doesn't work for me because I can't find /etc/default/postgrey is that because I installed using rpm from here ? and not used apt-get install postgrey ?

    Thanks!
     
    Last edited: Jul 27, 2007
  2. micko_escalade

    micko_escalade New Member

    I just re-installed postgrey using apt-get install postgrey command, and /etc/default/postgrey is still not visible.
     
  3. micko_escalade

    micko_escalade New Member

    Anyone, please ?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I think that tutorial is based on Debian, so it won't work on Fedora. Probably the Postgrey configuration is somewhere else on Fedora. You can try and run
    Code:
    updatedb
    locate postgrey
    to find the file(s).
     
  5. micko_escalade

    micko_escalade New Member

    falko,

    Thanks for helping me with this!
    with that tutorial beeing for debian /etc/default/postgrey does not exists on fedora,

    Code:
    [[email protected] ~]# locate postgrey
    /etc/postfix/postgrey_whitelist_clients
    /etc/postfix/postgrey_whitelist_clients.local
    /etc/postfix/postgrey_whitelist_recipients
    /etc/rc.d/init.d/postgrey
    /etc/rc.d/rc0.d/K31postgrey
    /etc/rc.d/rc1.d/K31postgrey
    /etc/rc.d/rc2.d/K31postgrey
    /etc/rc.d/rc3.d/K31postgrey
    /etc/rc.d/rc4.d/K31postgrey
    /etc/rc.d/rc5.d/K31postgrey
    /etc/rc.d/rc6.d/K31postgrey
    /usr/sbin/postgrey
    /usr/sbin/postgreyreport
    /usr/share/doc/postgrey-1.27
    /usr/share/doc/postgrey-1.27/COPYING
    /usr/share/doc/postgrey-1.27/Changes
    /usr/share/doc/postgrey-1.27/README
    /usr/share/doc/postgrey-1.27/README-rpm
    /usr/share/man/man8/postgrey.8.gz
    /var/cache/apt/archives/postgrey_1.27-4.fc6_noarch.rpm
    /var/spool/postfix/postgrey
    /var/spool/postfix/postgrey/__db.001
    /var/spool/postfix/postgrey/__db.002
    /var/spool/postfix/postgrey/__db.003
    /var/spool/postfix/postgrey/__db.004
    /var/spool/postfix/postgrey/log.0000000001
    /var/spool/postfix/postgrey/postgrey.db
    /var/spool/postfix/postgrey/postgrey.lock
    /var/spool/postfix/postgrey/postgrey_clients.db
    [[email protected] ~]# 
    
    but I was able to find this tutorial,
    so I found OPTIONS="--unix=$SOCKET" in /etc/rc.d/init.d/postgrey so I changed it to OPTIONS="--unix=$SOCKET --inet=127.0.0.1:60000 --delay=59"
    then I added check_policy_service inet:127.0.0.1:60000 to
    /etc/postfix/main.cf at smtpd_recipient_restrictions = line
    so that it looks like this
    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000
    I made a test a excluded scd.yahoo.com from /etc/postfix/postgrey_whitelist_clients file then I tried sending mail and it got rejected?

    Code:
    Jul 27 23:36:51 linux postfix/smtpd[2487]: connect from web34805.mail.mud.yahoo.com[209.191.68.169]
    Jul 27 23:36:51 linux postfix/smtpd[2487]: NOQUEUE: reject: RCPT from web34805.mail.mud.yahoo.com[209.191.68.169]: 450 4.7.1 <[email protected]>: Recipient address rejected: Greylisted, see http://isg.ee.ethz.ch/tools/postgrey/help/mydomain.com.html; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<web34805.mail.mud.yahoo.com>
    Jul 27 23:36:51 linux postfix/smtpd[2487]: disconnect from web34805.mail.mud.yahoo.com[209.191.68.169]
     
  6. micko_escalade

    micko_escalade New Member

    I found sqlgrey which is same as postgrey but it can use mySQL DB, looks good,
    installed it using step # 7. Setup Grey Listing
    Will post review after couple of weeks.
     

Share This Page