Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how to implement SPF

  1. #1
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Exclamation how to implement SPF

    My domain contain following txt record
    "v=spf1 ip4:203.77.192.0/24 ip4:61.16.226.0/24 ~all"
    Now i want to setup SPF in zimbra...
    so i install perl-Mail-SPF as a root user by using
    yum install perl-Mail-SPF

    and after restarting zimbra i run perl -e 'require Mail::SPF::Query'
    but it will giving error like this:

    Can't locate Mail/SPF/Query.pm in @INC (@INC contains: /opt/zimbra/zimbramon/lib/i386-linux-thread-multi /opt/zimbra/zimbramon/lib/i386-linux-thread-multi /opt/zimbra/zimbramon/lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -e line 1.

    So what is the possible problem?
    and after installing perl-Mail-SPF what i need to change for enabling SPF check in zimbra?

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Has it installed okay?
    Code:
    find /usr/lib -name "*SPF*" -print

  3. #3
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Default

    Hi Ux,
    yeh installation is okay.

    [root@mail ~]# find /usr/lib -name "*SPF*" -print
    /usr/lib/perl5/vendor_perl/5.8.8/Mail/SPF.pm
    /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Plugin/SPF.pm
    /usr/lib/perl5/vendor_perl/5.8.8/Mail/SPF
    /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Net/DNS/RR/SPF.pm
    [root@mail ~]#

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    Default

    Quote Originally Posted by sadiq007 View Post
    and after restarting zimbra i run perl -e 'require Mail::SPF::Query'
    I think you'll find that "Mail::SPF::Query" is not "perl-Mail-SPF" and the two are mutually exclusive.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    It is not in the INC path. Have you installed Perl outside of package managment at all ?

  6. #6
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Default

    hi,
    I have redhat5.3 so i just first install http://dag.wieers.com/rpm/packages/r...l5.rf.i386.rpm
    and then as a root do yum install perl-Mail-SPF ..thats all...
    any more idea ?
    as you can see find /usr/lib -name "*SPF*" -print showing path /usr/lib/perl5/vendor_perl/5.8.8/
    while perl -e 'require Mail::SPF::Query' is searching it at /usr/lib/perl5/site_perl/5.8.8 and in /5.8.7, /5.8.6 how can i adjust this path?

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    I would remove that package and use the one from epel instead.

  8. #8
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Default

    what is this epel? how can i get this new package from epel ?

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  10. #10
    sadiq007 is offline Special Member
    Join Date
    May 2009
    Location
    INDIA
    Posts
    104
    Rep Power
    6

    Default

    dear UX still same problem...
    i had done following....
    first i uninstall perl-Mail-SPF then
    su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
    su -c 'yum install perl-Mail-SPF'

    this is its output ...
    Dependencies Resolved
    ================================================== ==============================
    Package Arch Version Repository Size
    ================================================== ==============================
    Installing:
    perl-Mail-SPF noarch 2.006-1.el5 epel 138 k

    Transaction Summary
    ================================================== ==============================
    Install 1 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 138 k
    Is this ok [y/N]: y

    [root@mail ~]# rpm -qa | grep SPF
    perl-Mail-SPF-2.006-1.el5

    As i have another zimbra installed on CentoOS 5.3 also ... and i freshly install SPf like this
    ================================================== ======
    as a root user....
    su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
    su -c 'yum install perl-Mail-SPF'
    and yet perl command giving the same error which i am getting earlier on zimbra with redhat5.3
    [root@newmail ~]# perl -e 'require Mail::SPF::Query'
    Can't locate Mail/SPF/Query.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -e line 1.
    [root@newmail ~]# su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'

    so what is the secret to install perl-Mail-SPF ? any more idea?
    Last edited by sadiq007; 07-02-2010 at 12:51 AM. Reason: more clarification

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Does Zimbra check SPF records for incoming emails
    By priyadarsanroy in forum Administrators
    Replies: 8
    Last Post: 04-13-2010, 04:51 AM
  2. how to implement strong antispam
    By viaris in forum Administrators
    Replies: 8
    Last Post: 07-01-2009, 09:59 AM
  3. [SOLVED] Help with spf record
    By fernandoflorez in forum Administrators
    Replies: 4
    Last Post: 05-26-2009, 10:58 PM
  4. SPF Question
    By randall in forum Installation
    Replies: 12
    Last Post: 12-07-2008, 06:22 AM
  5. New Book: Zimbra: Implement, Administer, Manage
    By bhickey in forum Administrators
    Replies: 8
    Last Post: 11-30-2007, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •