masqmail-0.2

annotate tests/README @ 49:58e8dd8bc90d

Added tag 0.2.22 for changeset f3bdb5b382ec
author meillo@marmaro.de
date Thu, 20 May 2010 21:23:19 +0200
parents
children 49ca781e1503
rev   line source
meillo@0 1 Here a two test programs: local.sh and smtpout.sh. They both send
meillo@0 2 three mails, using different options. Run them from within this
meillo@0 3 directory, preferably NOT as root, but you got to have write
meillo@0 4 permission for this directory.
meillo@0 5
meillo@0 6 local.sh sends mail accepted from stdin and sends them to a fake local
meillo@0 7 mailbox, using your login name. If it works, there should be a file
meillo@0 8 named with your login name with the mails. You can look at it with cat
meillo@0 9 or less, or with an ordinary mail program.
meillo@0 10
meillo@0 11 smtpout.sh sends mail accepted from stdin and sends them to your local
meillo@0 12 MTA, so use it only if you have an MTA running on your box (sendmail,
meillo@0 13 exim, qmail or whatever, or masqmail when you have it already
meillo@0 14 installed). If it works, you should get three mails.
meillo@0 15
meillo@0 16 The scripts assume that your login name corresponds to your mailbox
meillo@0 17 (quite probable) and that your MTA listens on port 25 with the
meillo@0 18 interface which corresponds to the hostname as returned by the shell
meillo@0 19 command "hostname" (without quotes...), also very probable. They are
meillo@0 20 created with make from test.templ. They use a special configuration
meillo@0 21 (test.conf) for masqmail, which is also created with make from
meillo@0 22 conf.templ.
meillo@0 23
meillo@0 24 Two log files, masqmail.log and debug.log will also be created within
meillo@0 25 this directory. They may give some information if anything went wrong.
meillo@0 26
meillo@0 27 If the log files reveal that your MTA is not willing to relay, you may
meillo@0 28 have to qualify the hostname: Say
meillo@0 29
meillo@0 30 sed s/RECV_HOST/foo.bar.com/ test.templ > smtpout.sh
meillo@0 31
meillo@0 32 where you set your fully qualified host name for foo.bar.com.
meillo@0 33
meillo@0 34 If they do not work, there could be some problem with either the test
meillo@0 35 programs, the configuration file or masqmail itself. If you have
meillo@0 36 installed masqmail successfully and these scripts do not work, do not
meillo@0 37 worry too much :-).