meillo@0: Here a two test programs: local.sh and smtpout.sh. They both send meillo@0: three mails, using different options. Run them from within this meillo@0: directory, preferably NOT as root, but you got to have write meillo@0: permission for this directory. meillo@0: meillo@0: local.sh sends mail accepted from stdin and sends them to a fake local meillo@0: mailbox, using your login name. If it works, there should be a file meillo@0: named with your login name with the mails. You can look at it with cat meillo@0: or less, or with an ordinary mail program. meillo@0: meillo@0: smtpout.sh sends mail accepted from stdin and sends them to your local meillo@0: MTA, so use it only if you have an MTA running on your box (sendmail, meillo@0: exim, qmail or whatever, or masqmail when you have it already meillo@0: installed). If it works, you should get three mails. meillo@0: meillo@0: The scripts assume that your login name corresponds to your mailbox meillo@0: (quite probable) and that your MTA listens on port 25 with the meillo@0: interface which corresponds to the hostname as returned by the shell meillo@0: command "hostname" (without quotes...), also very probable. They are meillo@0: created with make from test.templ. They use a special configuration meillo@0: (test.conf) for masqmail, which is also created with make from meillo@0: conf.templ. meillo@0: meillo@0: Two log files, masqmail.log and debug.log will also be created within meillo@0: this directory. They may give some information if anything went wrong. meillo@0: meillo@0: If the log files reveal that your MTA is not willing to relay, you may meillo@0: have to qualify the hostname: Say meillo@0: meillo@0: sed s/RECV_HOST/foo.bar.com/ test.templ > smtpout.sh meillo@0: meillo@0: where you set your fully qualified host name for foo.bar.com. meillo@0: meillo@0: If they do not work, there could be some problem with either the test meillo@0: programs, the configuration file or masqmail itself. If you have meillo@0: installed masqmail successfully and these scripts do not work, do not meillo@0: worry too much :-).