Scalix mit Debian Etch: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 98: | Zeile 98: | ||
include(`/etc/mail/tls/starttls.m4')dnl | include(`/etc/mail/tls/starttls.m4')dnl | ||
define(`confCRL\', `/etc/mail/tls/revocation.list\')dnl | define(`confCRL\', `/etc/mail/tls/revocation.list\')dnl | ||
dnl # | |||
define(`confCONTROL_SOCKET_NAME',`/var/run/sendmail/mta/smcontrol-rx')dnl | |||
dnl # | |||
dnl # | dnl # | ||
dnl # Masquerading options | dnl # Masquerading options | ||
Zeile 124: | Zeile 127: | ||
chown root:amavis /var/spool/mqueue-rx | chown root:amavis /var/spool/mqueue-rx | ||
chmod 700 /var/spool/mqueue-rx | chmod 700 /var/spool/mqueue-rx | ||
mkdir /var/lib/sendmail/host_status | |||
m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/hostname-rx.mc > /etc/mail/sendmail-rx.cf | |||
m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/hostname-tx.mc > /etc/mail/sendmail.cf | |||
/usr/sbin/sendmail -C /etc/mail/sendmail-rx.cf -L sm-mta-rx -bd -qp | |||
/usr/sbin/sendmail -L sm-mta-tx -bd -q15m | |||
/usr/sbin/sendmail -Ac -L sm-msp-queue -q10m | |||
</pre> | </pre> | ||
Version vom 13. Mai 2007, 09:39 Uhr
Vorbereitung
Etch Installation in XEN DomU
Ich starte mit der Installation auf einer frischen Etch-Installation unter XEN. Der Einfachheit halber benutze ich die xen-tools.
apt-get install xen-tools vi /etc/xen-tools/xen-tools.conf # # ... lvm = vg debootstrap = 1 # ## # Disk and Sizing options. ## # size = 4Gb # Disk image size. memory = 128Mb # Memory size swap = 128Mb # Swap size # noswap = 1 # Don't use swap at all for the new system. fs = ext3 # use the EXT3 filesystem for the disk image. dist = etch # Default distribution to install. image = sparse # Specify sparse vs. full disk images. dhcp = 1 # # Default kernel and ramdisk to use for the virtual servers # kernel = /boot/vmlinuz-2.6.18-4-xen-686 initrd = /boot/initrd.img-2.6.18-4-xen-686 # # The default mirror for debootstrap which can be used to install # Debian Sid, Sarge, and Etch. # mirror = http://ftp.de.debian.org/debian/ # ...
Etch-DomU starten
xen-create-image --hostname=scx vi /etc/xen/scx.cfg xm create -c /etc/xen/scx.cfg ... ethtool -K eth0 tx off vi /etc/network/interfaces # uncomment ethtool # post-up ethtool -K eth0 tx off
Zusätzliche Pakete installieren
Jetzt die notwendigen Pakete installieren:
- Sendmail
- Kerberos
- Postgres
- SASL2
- diverse Libraries
- Sun Java
- gawk, wget, elinks, ethtool, less
apt-get install -u sendmail sendmail-doc apt-get install -u krb5-config krb5-doc krb5-user libkadm55 libkrb53 apt-get install -u postgresql apt-get install -u saslauthd libsasl2-modules libsasl2-gssapi-mit sasl2-bin libssl0.9.7 apt-get install -u libxml2 libglib2.0-0 libstdc++2.10-glibc2.2 libstdc++5 apt-get install -u sun-java5-jre apt-get install -u gawk elinks wget w3m less ethtool
Sendmail konfigurieren
Smarthost unter z.B. /etc/mail/m4/provider.m4 eintragen
define(`SMART_HOST', `mail.1und1.de')
Die MAILER Definitionen sollten ans Ende der Konfiguration verschoben werden, sonst tritt eine Fehlermeldung auf. Folgendes habe ich angepasst:
- Smarthost (s.o.)
- Debug Level
- Interface nicht nur an 127.0.0.1 binden
- Masquerading
- Amavisd-new integrieren
vi /etc/mail/sendmail.mc dnl # ... define(`confLOG_LEVEL',`15')dnl #### only until Config is OK #### dnl # dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!! dnl # Remove `, Addr=' clauses to receive from any interface dnl # If you want to support IPv6, switch the commented/uncommentd lines FEATURE(`no_default_msa')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission')dnl dnl # dnl # SASL / TLS dnl # include(`/etc/mail/sasl/sasl.m4')dnl include(`/etc/mail/tls/starttls.m4')dnl define(`confCRL\', `/etc/mail/tls/revocation.list\')dnl dnl # define(`confCONTROL_SOCKET_NAME',`/var/run/sendmail/mta/smcontrol-rx')dnl dnl # dnl # dnl # Masquerading options dnl # FEATURE(`always_add_domain')dnl MASQUERADE_AS(`scx.neobiker.de')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl dnl # dnl # Default Mailer setup dnl # MAILER_DEFINITIONS MAILER(`local')dnl MAILER(`smtp')dnl
Jetzt die neue sendmail.cf generieren.
sendmailconfig
Dual-Konfiguration für amavisd-new Integration
mkdir /var/spool/mqueue-rx chown root:amavis /var/spool/mqueue-rx chmod 700 /var/spool/mqueue-rx mkdir /var/lib/sendmail/host_status m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/hostname-rx.mc > /etc/mail/sendmail-rx.cf m4 /usr/share/sendmail/cf/m4/cf.m4 /etc/mail/hostname-tx.mc > /etc/mail/sendmail.cf /usr/sbin/sendmail -C /etc/mail/sendmail-rx.cf -L sm-mta-rx -bd -qp /usr/sbin/sendmail -L sm-mta-tx -bd -q15m /usr/sbin/sendmail -Ac -L sm-msp-queue -q10m
Quellen
[1] Scalix Wiki: Manuelle Installation unter Etch
[2] Linux Magazin Online: Mail Server