docs/diploma

annotate docs/masqmail.cx/download/INSTALL @ 1:7b2a5fe2aedd

added old website masqmail.cx
author meillo@marmaro.de
date Thu, 18 Sep 2008 18:57:02 +0200
parents
children
rev   line source
meillo@1 1 simple installation instructions, see docs/install.html for more.
meillo@1 2
meillo@1 3 To compile MasqMail you need glib 1.2 (http://www.gtk.org).
meillo@1 4
meillo@1 5 You need a user and a group for masqmail to run, I suggest user
meillo@1 6 'mail' and group 'trusted'. Say:
meillo@1 7
meillo@1 8 groupadd -g 42 trusted
meillo@1 9 useradd -u 42 -g 42 -d / -s /bin/sh -c "Mail Transfer Agent" mail
meillo@1 10
meillo@1 11 If you use other names than 'mail' and 'trusted' use the options
meillo@1 12 described below for configure. The 42 is just a suggestion, you can
meillo@1 13 use any number you like, but preferably one < 100. It does not have
meillo@1 14 to be the same for the user 'mail' and the group 'trusted'.
meillo@1 15
meillo@1 16 Then do:
meillo@1 17
meillo@1 18 ./configure
meillo@1 19 make
meillo@1 20 make install
meillo@1 21
meillo@1 22 Debian:
meillo@1 23 If you compile for Debian, do the configure with at least these options,
meillo@1 24 this makes it compatible with the official debian package:
meillo@1 25 ./configure --with-liblockfile --with-group=mail
meillo@1 26 you do not need the group 'trusted', use 'mail' instead.
meillo@1 27
meillo@1 28 You can also build your own Debian package with
meillo@1 29 dpkg-buildpackage -rfakeroot
meillo@1 30 You need to have fakeroot installed to do this. Or, as root, do:
meillo@1 31 dpkg-buildpackage
meillo@1 32
meillo@1 33 SuSE/Redhat:
meillo@1 34 There are spec files for rpm creation in suse/ or redhat/. You may have to adjust these files.
meillo@1 35
meillo@1 36
meillo@1 37 Sorry, but after that you are not yet finished. For instruction on how
meillo@1 38 to deliver mail using a connection to your ISP see
meillo@1 39 docs/install.html. It is probably a good idea to copy the files
meillo@1 40 docs/*.html to a directory where you can access them with a browser.
meillo@1 41
meillo@1 42 additional options for configure:
meillo@1 43 ---------------------------------
meillo@1 44
meillo@1 45 --with-user=USER sets the user as which MasqMail will run. Default is
meillo@1 46 'mail'. USER has to exist before you 'make install'.
meillo@1 47
meillo@1 48 --with-group=GROUP sets the group as which MasqMail will run. Default
meillo@1 49 is 'trusted'. GROUP has to exist before you 'make install'.
meillo@1 50
meillo@1 51 --with-logdir=LOGDIR sets the directory where MasqMail stores its log
meillo@1 52 files. It will be created if it does not exist. Default is /var/masqmail/.
meillo@1 53
meillo@1 54 --with-spooldir=SPOOLDIR sets the directory where MasqMail stores its
meillo@1 55 spool files. It will be created if it does not exist. Default is
meillo@1 56 /var/spool/masqmail/.
meillo@1 57
meillo@1 58 --with-confdir=CONFDIR sets the default configuration directory to
meillo@1 59 CONFDIR, in case you prefer another location than /etc/masqmail/.
meillo@1 60
meillo@1 61 --enable-auth enables ESMTP AUTH support (disabled by default)
meillo@1 62
meillo@1 63 --disable-pop3 disables pop3 support (enabled by default)
meillo@1 64
meillo@1 65 --enable-maildir enables qmail style Maildir support (disabled by default)
meillo@1 66
meillo@1 67 --enable-ident enable RFC 1413 support. If you have the libident
meillo@1 68 dynamic library installed, this will be linked, otherwise it will be
meillo@1 69 statically linked using the sources included in the package.
meillo@1 70
meillo@1 71 --disable-resolver disable resolver support. Without the resolver functions,
meillo@1 72 masqmail uses only gethostbyname() to resolve DNS names, and you cannot send
meillo@1 73 mail without a smart host. Not recommended. You save 3K at most.
meillo@1 74
meillo@1 75 --disable-smtp-server disable SMTP server support. You may want this if you do
meillo@1 76 not need masqmail to listen. In this case, you cannot use masqmail as a smart
meillo@1 77 host for other hosts on your LAN, you cannot use mail clients that send SMTP,
meillo@1 78 you cannot even use pine. In short, use of this option is discouraged unless
meillo@1 79 your resources are extremely limited.
meillo@1 80
meillo@1 81 --enable-mserver enable online detection by connecting to the mserver
meillo@1 82 (masqdialer system).
meillo@1 83
meillo@1 84 --with-libcryto instead of using the md5 and hmac functions within the package,
meillo@1 85 link dynamically with libcrypto. This applies only if you have pop3 or SMTP
meillo@1 86 AUTH enabled. Makes only sense if your resources are limited and you have
meillo@1 87 libcrypto installed. Untested.
meillo@1 88
meillo@1 89 --with-glib-static link with glib statically. This makes the binary larger
meillo@1 90 by around 30K (i386 architecture), but if masqmail is the only binary using
meillo@1 91 glib, you save some space in total, because you do not need the shared glib
meillo@1 92 library installed.
meillo@1 93
meillo@1 94 --disable-debug disable debugging, setting it on by command line or configuration
meillo@1 95 has no effect. Strongly discouraged, since you miss valuable information if something
meillo@1 96 goes wrong. You save 6K.
meillo@1 97
meillo@1 98 BTW, to get 3K of space, call
meillo@1 99 strip --remove-section=.comment --remove-section=.note --strip-unneeded src/masqmail
meillo@1 100
meillo@1 101 after make install:
meillo@1 102 -------------------
meillo@1 103
meillo@1 104 You can also use these instructions to omit 'make install' if you do
meillo@1 105 not want to use it.
meillo@1 106
meillo@1 107 Check that 'make install' worked correctly. The following command:
meillo@1 108
meillo@1 109 ls -ld /usr/sbin/masqmail /var/masqmail/ /var/spool/masqmail /var/spool/masqmail/input
meillo@1 110
meillo@1 111 should give output similar to
meillo@1 112
meillo@1 113 -rwsr-xr-x 1 root root 86955 Oct 14 14:27 /usr/sbin/masqmail
meillo@1 114 drwxr-xr-x 2 mail trusted 1024 Oct 14 14:29 /var/masqmail/
meillo@1 115 drwxr-xr-x 3 mail trusted 1024 Oct 14 14:27 /var/spool/masqmail
meillo@1 116 drwxr-xr-x 2 mail trusted 1024 Oct 14 18:32 /var/spool/masqmail/input
meillo@1 117 drwxr-xr-x 2 mail trusted 1024 Oct 14 18:32 /var/spool/masqmail/lock
meillo@1 118 drwxr-xr-x 2 mail trusted 1024 Oct 14 18:32 /var/spool/masqmail/popuidl
meillo@1 119
meillo@1 120 (important is the set-user-id bit for /usr/sbin/masqmail and the
meillo@1 121 ownership of all items).
meillo@1 122
meillo@1 123 Use the example configuration files in examples/ to edit your own. The
meillo@1 124 main configuration should go to /etc/masqmail.conf. I recommend to
meillo@1 125 make a directory /etc/masqmail for the *.route amd *.get files.
meillo@1 126
meillo@1 127 The default destination for the executable 'masqmail' is
meillo@1 128 /usr/sbin. Check that it has the set user id bit set. (chmod u+s
meillo@1 129 /usr/sbin/masqmail does no harm in any case).
meillo@1 130
meillo@1 131 If you want to replace sendmail, move your old sendmail binary to
meillo@1 132 another name and make a symbolic link /usr/sbin/sendmail ->
meillo@1 133 /usr/sbin/masqmail.
meillo@1 134
meillo@1 135