Linux-Sec.net

Linux-Security.net




  • Hardening-Tightening

    Security_Policy

  • Hardening-HOWTO

    Linux Distros

    Distro Patches

    Kernel-Patches

    Dedicated Servers
  • Firewalls
  • DNS Servers
  • Mail Servers
  • Web Servers

    Turn-Off Daemons

    Tighten Inetd Services


  • Top-10 Vulnerabilities

    Top-10 Vulnerabilities

    Top-20 Most Critical Vulnerability


    Top-10 Virus


  • One Minute Audits
  • OpenPorts Audit


    AntiVirus - AntiSpam
  • Anti-Spam
  • Anti-Virus

  • spam.wav


    Wireless [In]Security
  • Sniffers


  • Security Tools

    SSH_SSL

    Firewalls

    MailServer

    FileSystem

    VPN

    Port Scan Detectors

    IDS Tools

    LogFile Analysis

    Ethernet Monitoring

    Server Monitoring

    Tracking & Forensics


  • Hackers Tools

    Audit Tools

    Port Scanners

    Hacking Tools

    DDOS Tools

    Sniffer Tools

    Spoof Tools

    Exploits & Vulnerbilities


  • Wireless

    Wireless [In]Security


  • Misc

    Statistics

    Linux/BSD Distros

    Links,Articles,WatchDogs

    Security Mailing Lists/FAQs

    Liability Insurance



  • Linux-Sec.net/Mail


    Secure Mail Server


    Secure Pop3


    Mail Servers
    MTA
    Secure-MTA
    Wireless-MTA

    WebMail Servers


    AntiVirus


    MIME Detach


    AntiSpam


    Sendmail


    Sendmail Install-HOWTO


    Example Sendmail
    Config FIles


    OpenRelay


    RBLs


    Filters


    RFCs


    Laws


    Mail Headers


    Mail Log Analyzers


    Monty-Python Songs




    Mail/Sendmail


  • Simplified AntiSpam Proceedure
  • Simplified Sendmail-Install-HOWTO
    • Sendmail Install URLs
    • Downloading
    • Compiling
    • Testing
    • Owners and Permissions of directories, files
    • Commands

  • Secure Sendmail - AUTH, SSL

    Sendmail Anti-Spam Features

    Sendmail AntiSpam *.mc and *.cf Examples
    Sendmail Macros with its anti-spam features turned on
    Installing Sendmail with its anti-spam features turned on
    • Antispam Sendmail Install Howto
        Linux-Sec.net Anti-Spam sendmail.cf Howto ( RBL checking )

        Linux-Sec.net Anti-Spam sendmail.cf Howto ( header and subject checking )


        Linux-Sec.net Sendmail Install Howto

        Sendmail.org Setup
        Cork.linux.ie Install sendmail ( untested by our crew)
        Kent.edu Sendmail Installation and Operation Guide
        FreeBSD.org Sendmail Installation and Operation Guide

        cd /usr/local/src/sendmail-8.12.x

      • Backup your existing sendmail configs
          tar sendmail.backup.tgz /etc/mail/* /etc/sendmail* /usr/sbin/*mail* /usr/bin/*mail*

      • sh Build
        sh ./Build -c ( make clean after changing site.config.m4 )
        sh Build install

      • cd /usr/local/src/sendmail-8.12.x/cf/cf

        1. cp generic-linux.mc config.mc
          -- does NOT have antispam features enabled

          -- or --
        2. wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.rbl.mc config.mc
          -- has rbl features turned on

          -- or --
        3. wget http://www.Linux-Sec.net/Mail/etc.mail/sendmail.check_local.mc config.mc

      • sh Build config.cf

      • ../../obj.Linux.2.4.20.i586/sendmail/sendmail -d72 -bt -Cconfig.cf

        cp config.cf /etc/mail/sendmail.cf
        cp config.mc /etc/mail/sendmail.mc

      • Restart your new MTA
          /etc/rc.d/init.d/sendmail stop ; sleep 5 ; /etc/rc.d/init.d/sendmail start
          sendmail-8.12.x -L sm-mta -bd -q15m

    • Configure your mail files in your /etc/mail

    • Restarting Sendmail
      • /etc/rc.d/init.d/sendmail stop
      • /etc/rc.d/init.d/sendmail start

      • Manually Starting sendmail MTA daemon:
          /usr/sbin/sendmail -L sm-mta -bd -q5m ; ps axuwf

      • Manually Starting sendmail MSP queue runner:
          /usr/sbin/sendmail -L sm-msp-queue -Ac -q5m ; ps auxwf


    Testing Sendmail with its anti-spam features turned on
      Uni-kiel.de
      uwo.ca general sendmail.cf tests
      tLDP.org
      ebone.at macro explanation
      Montana.edu Good Testing info
      ZoneEdit.com

      uibk.ac.at exploiting sendmail bugs
      pi4arctan1guy.tripod.com exploiting sendmail bugs
      cotse.com exploiting MTA's
      phreak.org exploiting MTAs

    • Online Testing
    • Testing some accounts
        BrandonHutchinson.com Savemail Panic
        • These must aliases must exist and work
        • vi /etc/mail/aliases
          • MAILER-DAEMON: postmaster
          • postmaster: real-user
        • newaliases -or- asendmail -bi
        • sendmail -bv MAILER-DAEMON
        • sendmail -bv postmaster

    • Testing some accounts
      • sendmail -bt -Cnewtest.cf
      • sendmail -d0.1 -bt < /dev/null ( version/options )
      • sendmail -d0.1 -bv ( versions/options )
      • sendmail -d0.1 -bv root
      • sendmail -v -bv fake
      • sendmail -v -bv real_user
      • sendmail -v -bv fake@your_domain.com
      • sendmail -v -bv real_user@your_domain.com
      • sendmail -d0-8.20 -bt real_user@your_domain.com < /dev/null
      • sendmail -oem real_user@your_domain.com < /dev/null
      • echo '/mx earthlink.net' | sendmail -d8.8 -bt
      • echo '/map access cyberpromo.com' | sendmail -bt
      • echo '/map access cyberpromo.com' | sendmail -bt -d0.13
      • echo '/map access 1.2.3.4' | sendmail -bt -d0.13
      • echo '/map virtuser user@sub.domain.com' | sendmail -bt -Am
      • echo '3 user@sub.domain.com' | sendmail -bt -Am
      • echo 3,0 user@domain.com | sendmail -bt -d38.20
      • echo '$=w' | sendmail -bt -d0.4 | sort
      • echo '$=w' | sendmail -bt
      • echo '$=R' | sendmail -bt -d0.13

    • mailserver:~# sendmail -bt -Csendmail.new.cf
      > checkmail <fake@your_domain.com>
      > checkmail <anyone@cyberpromo.com>
      > /map access cyberpromo.com

      > /map virtuser foo@virtualDomain.com
      > 3,0 WebMaster@VirtualDomain.com
      > 3,0 RealUser@VirtualDomain.com
      > ^D
        (stuff) - 550 You are banned, contact your local admin
        (stuff) - 550 This domain is banned, contact your local admin
        (stuff) - 550 Access denied -- ( if listed in /etc/mail/access )

    • check your log file ( /var/log/maillog ) for typical/proper spam-detection operations
      • somebody@somewhere.com --> Rejects due to RBLs
      • somebody@fake-domains.com --> domain must resolve
      • anybody@cyberpromo.com --> Access denied
      • sneaky@open-relay.com --> Relaying denied
      • fake-user@real-domain.com --> non-existent user


    Error Messages


  • Linux-Consulting.com == Linux-Consulting.org


  • ISO9660.org


  • BSD-Consulting.org == UNIX-Consulting.org


  • Hardware Products/Solutions

    gigEnn.net
    NetworkNightmare.net

    Custom-Chassis.net
    Linux-1U.net
    ITX-Blades.net
    1U-Raid5.org
    Mini-Box.net


  • Infrastructure Consulting

    WanSim.net
    IPv6-Cloud.org

    Linux-Backup.net
    Linux-Boot.net
    Linux-VOIP.net
    Linux-Video.net
    C-J-K.net


  • Security Consulting

    Linux-Security.net
    Encrypted-Email.net

    Packet-Craft.net
    Linux-Wireless.net

  • Legalese

    Contact

    Legal


  • Copyright © 2000
    Linux-Consulting
    All Rights Reserved.
    Updated: Sun Aug 19 23:19:59 2012 PDT