Testing qmail delivery of local emailThe first stage after getting qmail installed is to make sure it can at least accept and deliver local email. To do this we need to make sure there is a Maildir set up for some local user (doug in this instance), since we told qmail in our setup that it should deliver to the Maildir of each directory. Making the maildirThe first step is to create a Maildir in which the mail will be queued.
Sending test mailTo send mail for testing there is a program /var/qmail/bin/qmail-inject (for which you should read the man page that you have installed). The script qmail-test.sh runs this for us. For us the command to use is given below: it just sends to any user in /etc/passwd at this host, addressed to user@me, where me is the domain name in the file /var/qmail/control/me. Checking the test mail was deliveredOf course we should now look in the Maildir of user doug and see if the mail is there. Since we have not yet set up any mail presentation agent (usually called a MUA or Mail User Agent) we will just go into the proper directory and look to see if the proper file is there. Under the Maildir approach the proper place will be the directory Maildir/new/ under some random filename. After the mail has been read by an MUA that MUA will then move it under the directory cur and the name of the user who sent it, or as otherwise directed through the MUA. Checking the loggingWe have told qmail to log the activity of the qmail-send daemon in the directory /var/log/qmail: the most recent activity will be in the file current. So that file is shown below right after the preceding mail was sent. |
Code linksListings
|