SMTP Mail Server (SMTP-AUTH, TLS, tarpitting, RBL)
http://www.tnpi.biz/internet/mail/toaster/patches/
Virtual Domain Hosting w/delegated administration
Virtual Domain Users
Mailing List (Ezmlm)
AutoResponder
Web Based E-Mail (multiple options)
Web Based Domain Administration
Mail Filtering (rblsmtpd, SpamAssassin, Qmail-Scanner)
SMTP roaming via SMTP-AUTH, POP-AUTH, & IMAP-AUTH
POP3, POP3-SSL
IMAP, IMAP-SSL
Qmail 1.03 : Secure, fast, and reliable MTA MySQL (3,4) : Database engine ucspi-tcp : Inetd replacement daemontools : Tools for managing daemons ezmlm-idx : Mailing list management Apache (1,2) : Secure HTTP server Apache mods : mod_php, mod_ssl, mod_perl OpenLDAP : LDAP client vpopmail : Virtual Domain module qmailadmin : Vpopmail domain administration CGI autorespond : Auto Responder & vacation gdbm : Database routines ispell : Spell checking for web mail qmailadmin : Web Control Panel Interface sqwebmail : Web based email squirrelmail : Web based email courier-IMAP : IMAP & POP3 servers maildrop : procmail like mail deliver agent spamassassin : spam filtering program clamAV : Virus scanning software qmailscanner : content scanner for qmail maillogs : mail log processor rrdutil : MRTG like graphs Mail::Toaster: Perl modules for mail systems MATT::Bundle : Perl modules for unix systems
pop3://mail.example.com imap://mail.example.com pop3s://mail.example.com imaps://mail.example.com
http://mail.example.com/cgi-bin/sqwebmail https://mail.example.com/cgi-bin/sqwebmail
http://mail.example.com/squirrelmail https://mail.example.com/squirrelmail
Mail::Toaster::CGI showcases the toasters functionality. See it live at: http://mail.cadillac.net/
Point a web broswer at https://mail.example.com/cgi-bin/qmailadmin
maildomain perl script - Front end to nearly everything you can do with the vpopmail programs and a bunch of handy fixup utilities for qmail systems. http://localhost.tnpi.biz/internet/mail/toaster/maildomain/maildomain.pl
UPDATE: This is now part of Mail::Toaster and has been renamed mailadmin.
tai64nlocal < logfile > qmaillog.tmp
1. qmail queue | more
2. qqtool -a list
3. rrdutil
4. isoqlog
5. Manually feed qmail-send output through matchup and pipe
the results through a processor (all one one line):
/usr/local/qmailanalog/bin/matchup <
/var/log/mail/send/current |
/usr/local/qmailanalog/bin/z*
where z* is one of the following:
zddist, zdeferrals, zfailures, zoverall, zrecipients,
zrhosts, zrxdelay, zsenders, zsuccesses, zsuids
echo ``local'' > /usr/local/share/sqwebmail/calendarmode
The scripts are extensible in anticipation of using them on platforms other than FreeBSD where they were developed. My next ``supported'' OS will likely be Mac OS X and then probably Linux. Linux fans might want to check out Bill Shupp's toaster pages. Here's a couple URLs for you: http://www.shupp.org/toaster/ and http://qmailtoaster.clikka.com/.
Contents of ~vpopmail/etc/tcp.smtp (fix wrapped lines):
127.:allow,RELAYCLIENT="" 209.218.8.2:allow =:allow :allow,RBLSMTPD="Blocked - Reverse DNS queries for your IP fail. You cannot send me mail." #:allow,RBLSMTPD="-Blocked - Reverse DNS queries for your IP fail. You cannot send me mail."
line 1. Obvious, allows localhost to relay. line 2. Allows traffic from the inter7 email list line 3. Matches any mail message with reverse dns.
line 4. Matches what's left (no reverse DNS). By setting the RBLSMTPD environment variable, we actually get to pass a message back to the mail server we're blocking telling them why. That gives them a chance to fix it before the messages bounces.
They'll get a message like this in their mail logs:
Mar 27 08:40:43 seattle qmail: 1048783243.397888 info msg 6469: bytes 258 from qp 13226 uid 0 Mar 27 08:40:43 seattle qmail: 1048783243.438981 starting delivery 533: msg 6469 to remote matt@simerson.net Mar 27 08:40:43 seattle qmail: 1048783243.979048 delivery 533: deferral: 207.89.154.94_does_not_like_recipient./ Remote_host_said:_451_Blocked_ Reverse_DNS_queries_for_your_IP_failed. You_cannot_send_me_mail. Giving_up_on_207.89.154.94./
line 5. If you want to be a little more aggressive about it, use the 5th line instead of the fourth. Notice the '-' character in there. That tells rblsmtpd to return a permanent error (ie, don't try again!)
Mar 27 08:42:40 seattle qmail: 1048783360.776812 info msg 6475: bytes 250 from qp 13464 uid 0 Mar 27 08:42:40 seattle qmail: 1048783360.805534 starting delivery 534: msg 6475 to remote matt@simerson.net Mar 27 08:42:41 seattle qmail: 1048783361.259737 delivery 534: failure: 207.89.154.94_does_not_like_recipient. Remote_host_said:_553_Blocked_-_Reverse_DNS_queries_for_your_IP_fail. You_cannot_send_me_mail. Giving_up_on_207.89.154.94./ Mar 27 08:42:41 seattle qmail: 1048783361.269637 bounce msg 6475 qp 13467 Mar 27 08:42:41 seattle qmail: 1048783361.270564 end msg 6475
Notice that in the second case, the message bounces immediately. It's your mail server, you have to decide what policy you think is best. Bouncing messages seems to get more attention, and gets it faster than deferring connections.
That's all there is to it. Of course, that assumes you are running rblsmtpd as part of your smtp invocation.
See the Filtering section at http://www.tnpi.biz/internet/mail/toaster/filter.shtml
Use qqtool: http://www.tnpi.biz/internet/mail/qqtool/
See this post to the mailing list for a possible explanation: http://matt.simerson.net/cgi-bin/ezmlm.cgi?mss:2006:pnonldigcpgkfpehlcgo
find /usr/local/vpopmail/domains/*/*/Maildir/.SPAM/cur -type f -mtime +30 -exec rm -f {} \;
deletes files older than 30d
no guarantee, that just came off from the top of my head :) haven't tested, but worth the try :D regards, Andryan.
UPDATE: Matt thinks is a partial solution, as it won't find files within numbered buckets which you'll find on any domains with a large number of users.
http://www.tnpi.biz/internet/mail/toaster/patches/tcpserver-mysql.shtml
The patch adds MySQL query support to tcpserver. The patch will allow tcpserver to query a Mysql server for each new connection and set RELAYCLIENT based on the presence of the remote IP in the table. This is a very useful and popular patch.
The html temples live in /usr/local/share/sqwebmail/html/
The html templates live in /usr/local/share/qmailadmin/html/
See contrib/httpd.conf-2.0.diff in the Mail::Toaster distribution.