In that mode,
sendmail prints a blow-by-blow* description of all the steps it takes in delivering a
mail message. To watch sendmail run in verbose mode, send mail to yourself as you
did in ?§1.5.1 on page 6, but this time add a -v switch:
% /usr/lib/sendmail -v you
The output produced shows that sendmail delivers your mail locally:
you... Connecting to local...
you... Sent
When sendmail forwards mail to another machine over a TCP/IP network, it communicates
with that other machine using the SMTP protocol. To see what SMTP
looks like, run sendmail again, but this time, instead of using you as the recipient,
give sendmail your address on another machine:
% /usr/lib/sendmail -v you@remote.domain The output produced by this command line will look similar to the following:
you@remote.domain... Connecting to remote.domain via smtp...
220 remote.Domain ESMTP Sendmail 8.14.1/8.14.1 ready at Fri, 14 Dec 2007 06:36:12 -
0800
>>> EHLO here.us.edu
250-remote.domain Hello here.us.edu [123.45.67.89], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
* Verbose mode is actually far more powerful than we??™ve shown here.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
1.7 Basic Modes of sendmail | 25
250-DELIVERBY
250 HELP
>>> MAIL From:
Pages:
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77