TEST.receive.md (1233B)
1 You can do several tests of messages entering the qmail system: 2 3 1. SMTP server test: Forge some mail locally via SMTP. Replace "me" 4 with your username and "domain" with your host's name. 5 6 ``` 7 % telnet 127.0.0.1 25 8 Trying 127.0.0.1... 9 Connected to 127.0.0.1. 10 Escape character is '^]'. 11 220 domain ESMTP 12 helo dude 13 250 domain 14 mail <me@domain> 15 250 ok 16 rcpt <me@domain> 17 250 ok 18 data 19 354 go ahead 20 Subject: testing 21 22 This is a test. 23 . 24 250 ok 812345679 qp 12345 25 quit 26 221 domain 27 Connection closed by foreign host. 28 % 29 ``` 30 31 Look for the message in your mailbox. (Note for programmers: Most 32 SMTP servers need more text after MAIL and RCPT. See RFC 821.) 33 34 2. Remote-local test: Send yourself some mail from another machine. 35 Look for the message in your mailbox. 36 37 3. Remote-error test: Send some mail from another machine to 38 nonexistent@domain. Look for a bounce message in the remote mailbox. 39 40 4. UA test: Try sending mail, first to a local account, then to a 41 remote account, with your normal user agent. 42 43 5. Remote-postmaster test: Send mail from another machine to 44 PoStMaStEr@domain. Look for the message in the alias mailbox, 45 normally ~alias/Mailbox.