cf -X/tmp/auth.log -bD
Here, the -X command-line switch(?§14.2 on page 512) causes a copy of any SMTP
transactions to be saved in the file /tmp/auth.log. Th e-bD runs sendmail as a daemon
but leaves it connected to your keyboard so that you can easily stop and restart it.
After running these tests, you should test with an email client that can use AUTH for
sender authentication. If you use Thunderbird, for example, select Preferences, and
then select Outgoing Server. Change the port to the port you specified earlier (the
P=26 for port 26). Also put a check in the box that says ???Use name and password.???
Then enter the appropriate username for testing. If a realm is required, this may have
to be in user@your.domain form.
Now, send an email message. After it is sent or fails, exit sendmail and look at the /tmp/
auth.log file you created. If the test has failed, the contents of that file may look, in
part, like this:
13885 >>> 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
13885 >>> 250-DELIVERBY
13885 >>> 250 HELP
13885 <<< AUTH CRAM-MD5
13885 >>> 334 PW4gPDIyMDg3MzU4ODAuMTI1NTgxMzFAeW91ci5ob3N0LmRvbWFpbj4K
13885 <<< dGVzdGVyQGxvY2FsaG9zdCAzMDRhNDAwMTBmYWE5MjhiOWYzZTllZmIyOTJkODYxMQ==
13885 >>> 535 5.7.0 authentication failed
13885 <<< [EOF]
13885 >>> 421 4.4.1 your.host.domain Lost input channel from localhost [127.0.0.1]
Here, CRAM-MD5 was the only authentication mechanism offered by sendmail and so
was the only mechanism used by Thunderbird, and the test failed.
Pages:
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365