Local delivery test:
Create the local accounts user1 and user2 and check if they can send mail to each other on this machine.
# /usr/sbin/sendmail -bv user1@yourdomain.com user1@yourdomain.com... deliverable: mailer local, user user1
# /usr/sbin/sendmail -bv user2@yourdomain.com user2@yourdomain.com... deliverable: mailer local, user user2
How to restart a busy sendmail server:
On a busy server, there may be lots of sendmail child processes.
Here is a quick'n'dirty way to kill'em'all before starting sendmail again:
How to send a mail using telnet:
Telnet to port 25 on the server to communicate interactively with the SMTP server
(not sendmail-specific, but works with any SMTP server).
Letters written in bold is what you type, the non-bold answers may differ depending the mail server software:
telnet host.domain.com 25
220 host.domain.com ESMTP Sendmail 8.12.1/8.12.1; Fri, 27 Oct 2001 08:56:37 -0800 (BST)
helo domain.com
250 host.domain.com Hello root@localhost, pleased to meet you
mail from: user1@domain.com
250 user1@domain.com... Sender ok
rcpt to: user2@another.domain.com
250 user2@another.domain.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Reply-To: user3@domain.comSubject: Test MessageHello, this is a test message.
250 IAA13263 Message accepted for delivery