Category: Mail

  • Check spam mails in MailEnable

    cd C:\Program Files\Mail Enable\Logging\SMTP
    findstr "Authenticated" LOG_FILE_NAME > auth.txt
    

    Now check each sender IP in auth.txt file, check whois of IP address see, if any spamer.

    cd C:\Program Files\Mail Enable\Logging\SMTP
    findstr "AUTH" ex* > auth.txt
    
    cd C:\Program Files\Mail Enable\Logging\SMTP
    findstr "AUTH" ex* | findstr "Authenticated" > auth.txt
    

    See MailEnable

  • MailEnable delete old mails

    MailEnable provides a command line utility to purge messages from the MailEnable message store. The utility will purge all postmaster, badmail, Inbox or Deleted Items messages that exceed the specified age. It can be scheduled as a batch job using the Windows Task Scheduler if needed.

     
    Syntax: MEPURGE {POSTOFFICE+ALL} {DAYS} {SWITCHES} [UNREAD]
    

    Parameters

    POSTOFFICE|ALL = Apply to a single postoffice or to all post offices

    DAYS = The minimum age of messages (in days).

    SWITCHES = See following section (switches are delimited by a plus)

    UNREAD = Do not purge unread messages

    Switches: (delimited by a plus character)

    POSTMASTER = Clean the Inbox of Postmaster Mailboxes

    INBOX = Clean the Inbox of all Mailboxes

    DELETED = Clean the Deleted Items Folder of all Mailboxes

    SENT = Clean the Sent Items Folder of all Mailboxes

    JUNK = Clean the Junk E-mail Folder of all Mailboxes

    BADMAIL = Clean the System BadMail Folder

    REPORT = Reports on matching deletions for all settings – does not delete files

    Note: Multiple switches can be used if delimited with a + character.

    e.g.

    MEPURGE MAILENABLE.COM 30 INBOX+DELETED+SENT UNREAD
    

    To delete all mails that are 200 days old

    Following command will delete all 200 days old mails

    MEPURGE ALL 200 INBOX+DELETED+SEND UNREAD 
    

    mepurge

    You can download mepurge from

    http://www.mailenable.com/utilities/addons

    http://www.mailenable.com/utilities/addons/MEPURGE.ZIP

    MEPurge {days old} POSTMASTER|MAILBOX|BADMAIL

    MEPurge 200 INBOX+DELETED+SENT UNREAD

    See MailEnable

  • Install MailEnable Mail Server

    Download mailenable Standard edition from

    http://www.mailenable.com/mailenablestandard.exe

    Mailenable username: Postmater
    Password : Gkl1234rt22
    
    Domain name : server30.hosthat.com
    DNS host : default
    SMTP Prot : 25
    

    Configuration

    Go to

    MailEnable > Connector> SMTP > Properties
    

    General Tab

    Local domain : server30.hosthat.com
    Default mail domain :  server30.hosthat.com
    email id for sending notification : [email protected]
    

    Inbound

    Relay

    check Enable Mail relay
    Authenticated Sender
    Prevelaged IP ranges
    Click Prevelaged Ips  and add all server ips
    

    Check Denied relay ip

    Enable DNS blacklisting >Select Smamcop and click applay
    

    Security

    Check following

    Reject mail if sender is invalid domain name
    authentical sender must use valid user address
    Require PTR DNS entry for unauthenticated users
    Disable all catchall
    Use an alternative Welcome message  enter
    HostOnNet.com S30 Mail Server
    

    Restrict number of recipents per emails 10

    Delivery

    Check Never send delay notification mail

    restart SMTP

    Check open relay at

    http://www.abuse.net/relay.html

    See MailEnable

  • install postfix from source code

    Requirements

    yum -y install db4 db4-devel
    

    Create user

    groupadd postfix -g 1000
    useradd postfix -u 1000 -g 1000
    groupadd postdrop 
    

    Download and Install

    Go to

    http://www.postfix.org/download.html

    and download latest version of postfix.

    cd /usr/local/src
    wget http://mirrors.rootservices.net/postfix/official/postfix-2.6.2.tar.gz
    tar -zxvf postfix-2.6.2.tar.gz
    cd postfix-2.6.2
    

    COMPILING

    make tidy
    make -f Makefile.init makefiles
    make
    make install
    

    COMPILING WITH MYSQL SUPPORT

    make tidy
    make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm'
    make
    make install
    

    Now it ask many questions, just enter for every questions. See [[postfix make install questions]]

        Warning: you still need to edit myorigin/mydestination/mynetworks
        parameter settings in 
        
    /etc/postfix/main.cf
    
        See also http://www.postfix.org/faq.html for information about dialup
        sites or about sites inside a firewalled network.
    
        BTW: Check your /etc/aliases file and be sure to set up aliases
        that send mail for root and postmaster to a real person, then run
        /usr/bin/newaliases.
    

    PRESS ENTER FOR ALL

    error while loading shared libraries: libmysqlclient.so.16

    [root@linux postfix-2.5.5]# find / -name 'mysql_version.h'
    /usr/include/mysql/mysql_version.h
    [root@linux postfix-2.5.5]#
    
    [root@linux postfix-2.5.5]#  find / -name 'libmysqlclient.so'
    /usr/lib/mysql/libmysqlclient.so
    [root@linux postfix-2.5.5]#
    

    Show mails in queue

    postqueue -p
    

    VERYFY MYSQL SUPPORT

    [root@linux postfix-2.5.5]# postconf -m
    btree
    cidr
    environ
    hash
    mysql
    nis
    proxy
    regexp
    static
    unix
    [root@linux postfix-2.5.5]#
    

    START POSTFIX ON BOOT

    echo /usr/sbin/postfix start >> /etc/rc.local
    

    Commands listed on /etc/rc.local will run on boot.

    See postfix