QMail: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 12: Zeile 12:


===Qmailadmin===
===Qmailadmin===
http://www.inter7.com/index.php?page=qmailadmin
http://www.inter7.com/index.php?page=qmailadmin


  ./configure --enable-cgipath=/member/cgi-bin/qmailadmin --enable-autoresponder-path=/usr/bin --enable-ezmlmdir=/usr/bin --enable-maxpopusers=100 --enable-maxaliases=100 --enable-maxforwards=100 --enable-maxautorepsonders=100 --enable-maxmailinglists=100 --disable-ezmlm-mysql --enable-htmldir=/home/www/mygretchen.de/htdocs --enable-cgibindir=/home/www/mygretchen.de/cgi-bin --enable-vpopmaildir=/var/vpopmail --enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-no-cache
  ./configure --enable-cgipath=/member/cgi-bin/qmailadmin --enable-autoresponder-path=/usr/bin --enable-ezmlmdir=/usr/bin --enable-maxpopusers=100
--enable-maxaliases=100 --enable-maxforwards=100 --enable-maxautorepsonders=100 --enable-maxmailinglists=100 --disable-ezmlm-mysql
--enable-htmldir=/home/www/mygretchen.de/htdocs --enable-cgibindir=/home/www/mygretchen.de/cgi-bin --enable-vpopmaildir=/var/vpopmail
--enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-no-cache




Zeile 95: Zeile 97:


=Links=
=Links=
==Howtos & Co==
http://www.lifewithqmail.org/lwq.html<br>
http://www.lifewithqmail.org/lwq.html<br>
http://www.fehcom.de/qmail/spamcontrol/README_spamcontrol.html<br>
http://www.nrg4u.com/<br>
[http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html Qmail Bugs and Wishlist]<br>
http://www.gentoo.org/doc/de/qmail-howto.xml<br>
http://www.gentoo.org/doc/de/qmail-howto.xml<br>
http://jclement.ca/docs/debian_qmail/debian_qmail/<br>
http://www.debianhowto.de/doku.php/de:howtos:sarge:qmail<br>
http://www.debianhowto.de/doku.php/de:howtos:sarge:qmail<br>
http://www.cargal.org/downloads/HOW-TO/debianqmail/debianqmail.html<br>
http://www.cargal.org/downloads/HOW-TO/debianqmail/debianqmail.html<br>
http://www.enderunix.org/spamguard/<br>
[http://jclement.ca/docs/debian_qmail/debian_qmail/ Installing Qmail, Courier, Ezmlm, ... on Debian]<br>
 
==AntiSpam==
[http://www.fehcom.de/qmail/spamcontrol/README_spamcontrol.html Big all-in-one patch. MUST!]<br>
[http://www.enderunix.org/spamguard/ Erstellt badmailfrom-file]<br>
http://www.chrishardie.com/tech/qmail/qmail-antispam.html<br>
http://www.chrishardie.com/tech/qmail/qmail-antispam.html<br>
http://qmail-scanner.sourceforge.net/ und http://toribio.apollinare.org/qmail-scanner/
 
==Patches==
[http://qmail-scanner.sourceforge.net/ Integrate Virusscanner/Spamassassin]<br>
http://toribio.apollinare.org/qmail-scanner/<br>
[http://qmail-spp.sourceforge.net/ Qmail SMTP Plugin patch (SPP)]<br>
 
==Sonstiges==
[http://www.nrg4u.com/ Qmail Ldap/Big Picture]<br>
[http://www.tnpi.biz/internet/mail/toaster/faq/relay.shtml About relaying (blacklist und smtp_auth)]<br>
[http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html Qmail Bugs and Wishlist]<br>

Version vom 19. Dezember 2006, 01:32 Uhr

als Vorlage diente http://www.debianhowto.de/doku.php/de:howtos:sarge:qmail

Installation

apt-get install qmail-src ucspi-tcp-src

UCSPI-TLS (UCSPI-SSL patched)

Ein Ersatz für inetd

Qmail bauen

Qmail patchen mit Spamcontrol

Qmailadmin

http://www.inter7.com/index.php?page=qmailadmin

./configure --enable-cgipath=/member/cgi-bin/qmailadmin --enable-autoresponder-path=/usr/bin --enable-ezmlmdir=/usr/bin --enable-maxpopusers=100
--enable-maxaliases=100 --enable-maxforwards=100 --enable-maxautorepsonders=100 --enable-maxmailinglists=100 --disable-ezmlm-mysql
--enable-htmldir=/home/www/mygretchen.de/htdocs --enable-cgibindir=/home/www/mygretchen.de/cgi-bin --enable-vpopmaildir=/var/vpopmail
--enable-qmaildir=/var/qmail --enable-true-path=/bin/true --enable-no-cache


            qmailadmin 1.2.0
            Current settings
---------------------------------------
       cgi-bin dir = /home/www/mygretchen.de/cgi-bin
          html dir = /home/www/mygretchen.de/htdocs
         image dir = /home/www/mygretchen.de/htdocs/images/qmailadmin
         image URL = /images/qmailadmin
      template dir = /usr/local/share/qmailadmin
         qmail dir = /var/qmail
      vpopmail dir = /var/vpopmail
   autorespond dir = /usr/bin
         ezmlm dir = /usr/bin
         ezmlm idx = yes
   mysql for ezmlm = no
              help = no
      modify quota = no
   domain autofill = no
 modify spam check = no

Konfiguration

Supervise

/etc/tcp.smtp

127.0.0.1:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl",QS_SPAMASSASSIN="1"
:allow,MFDNSCHECK="",SMTPAUTH="",BADMIMETYPE="",BADLOADERTYPE="M",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"

cdb neubauen:

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

Qmail

Start-Config:

echo "meinhostname.domain.tld" > /etc/qmail/me

Maildrop

Maildrop ist ein Mail Delivery Agent (MDA), der zur serverseitigen Filterung von E-Mail Nachrichten verwendet wird. Er wird standardmäßig mit dem Courier Mail Transfer Agent (MTA) ausgeliefert, arbeitet jedoch auch mit anderen MTAs, wie qmail zusammen. (wikipedia.org)

um z.b. Spammails gleich in den Spamordner zu verschieben

.mailfilter

#logfile "/tmp/maildrop.log"

# If Spamassassin says the mail is spam, put it in the Spam folder.
##
if ( /^X-Spam-Status: *Yes/)
{
        to "Maildir/.Spam"
}
to Maildir

.qmail

|preline /usr/bin/maildrop .mailfilter

Betrieb

Logfiles

QMail schreibt seine Daten in dem im TAI64N-Format in seine Logfiles. Das mag zwar für die Auswertung der Logfiles sehr nützlich sein, lesbar ist es nicht.

cat /var/log/qmail/smtpd/current | tai64nlocal

Start/Stop/Status

qmailctl
Usage: /usr/sbin/qmailctl {start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}
mygretchen:/# qmailctl stat
/service/qmail-send: up (pid 5465) 151263 seconds
/service/qmail-send/log: up (pid 2106) 151373 seconds
/service/qmail-smtpd: up (pid 2109) 151373 seconds
/service/qmail-smtpd/log: up (pid 2111) 151373 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0

Links

Howtos & Co

http://www.lifewithqmail.org/lwq.html
http://www.gentoo.org/doc/de/qmail-howto.xml
http://www.debianhowto.de/doku.php/de:howtos:sarge:qmail
http://www.cargal.org/downloads/HOW-TO/debianqmail/debianqmail.html
Installing Qmail, Courier, Ezmlm, ... on Debian

AntiSpam

Big all-in-one patch. MUST!
Erstellt badmailfrom-file
http://www.chrishardie.com/tech/qmail/qmail-antispam.html

Patches

Integrate Virusscanner/Spamassassin
http://toribio.apollinare.org/qmail-scanner/
Qmail SMTP Plugin patch (SPP)

Sonstiges

Qmail Ldap/Big Picture
About relaying (blacklist und smtp_auth)
Qmail Bugs and Wishlist