Postfix

postfix is the mailserver choosen by more crowd for it's small fast and/or license over other mta like qmail/sendmail

one good small fast mail filter for spam/virus:

antispam/antivirus

graph & logs reports

aptitude install rrdtool mailgraph queuegraph
dpkg-reconfigure mailgraph 

cd /var/www
mkdir cgi-bin
chmod +x cgi-bin
cd cgi-bin
ln -s /usr/lib/cgi-bin/mailgraph.cgi
ln -s /usr/lib/cgi-bin/queuegraph.cgi
# now you can access you graph at http://localhost/cgi-bin/mailgraph.cgi and http://localhost/cgi-bin/queuegraph.cgi

aptitude install pflogsumm

packs:
http://www.tummy.com/Products/vpostmaster/
http://www.postfixvirtual.net/
http://www.maiamailguard.com
http://www.salstar.sk/sagator/

archives/backup copy:
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc
http://www.postfix.org/postconf.5.html#always_bcc

for win32
http://www.redline-software.com/eng/products/mam/

# some from http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt
# plus many other sources

    smtpd_helo_required = yes
    disable_vrfy_command = yes

    smtpd_recipient_restrictions =
        reject_invalid_hostname,
        reject_non_fqdn_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        permit_mynetworks,
        reject_unauth_destination,
        check_recipient_access pcre:/etc/postfix/recipient_checks.pcre,
        check_helo_access dbm:/etc/postfix/helo_checks,
        check_sender_access dbm:/etc/postfix/sender_checks,
        check_client_access dbm:/etc/postfix/client_checks,
        check_client_access pcre:/etc/postfix/client_checks.pcre,
        reject_rbl_client cbl.abuseat.org,
        reject_rbl_client list.dsbl.org,
        reject_rbl_client sbl.spamhaus.org,
        reject_rbl_client pbl.spamhaus.org
        permit

    smtpd_data_restrictions =
        reject_unauth_pipelining,
        permit

always_bcc=email_archive_backup@somecorporate.net
default_process_limit=10
local_destination_concurrency_limit = 2 
default_destination_concurrency_limit = 20
#defer_transports = smtp #this will defer all email

checking:
http://jimsun.linxnet.com/misc/header_checks.txt #check for worms
http://jimsun.linxnet.com/misc/body_checks.txt

limiting:
http://www.postfix.org/rate.html
http://www.postfix.org/resource.html
http://www.opennix.com/email/postfix/policy/ratelimit.html

(almost) everything else:
http://www.seaglass.com/postfix/faq.html
postfix.org

telnet test

test openrelay, eicar antivirus, gtube antispam, etc
http://wiki.mailscanner.info/doku.php?id=documentation:test_troubleshoot:mta:connexion

$ telnet mail.example.com 25
Trying 172.18.3.86...
Connected to mail.example.com (172.18.3.86).
Escape character is ‘^]’.
220 mail.example.com ESMTP Postfix
ehlo mail2.example.com
250-mail.example.com
250-PIPELINING
250-SIZE 16777216
250-ETRN
250 8BITMIME
mail from:<>
250 Ok
rcpt to:<glenn@example.com>
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
Message-ID: <TEST1.1010101@example.net>
From: sender <sender@example.com>
To: glenn <glenn@example.com>
Subject: test

test
.
250 Ok: queued as A020B23DC6
quit
221 Bye
Connection closed by foreign host.

telnet pop3

telnet pop3.mail.host.domain 110
+OK Hello There
USER email_login
+OK Password required.
PASS email_password
+OK NUM_MSGS NUM_BYTES
LIST
1 1400
2 57839
...
QUIT
+OK

phpmail test

<?php
$email = "your@emailaddress.com";

if(mail($email, "Test Message", "This is a test Message", "From: ".$email)) {
    echo "message sent.";
} else {
    echo "message failed to send.";    
}
?>

http://forum.listmessenger.com/index.php?showtopic=2214&mode=linearplus
Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License