18.12.2012 Views

O'Reilly - Practical UNIX & Internet Sec... 7015KB

O'Reilly - Practical UNIX & Internet Sec... 7015KB

O'Reilly - Practical UNIX & Internet Sec... 7015KB

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

[Chapter 22] 22.2 sendmail (smap/smapd) Wrapper<br />

To take advantage of ident, your software needs to know how to query the remote server, if it exists. It then needs to<br />

log that information appropriately. Modern versions of sendmail have this built in, to help cut down on mail<br />

forging. The tcpwrapper program also knows how to query ident.<br />

Keep in mind that if you record information from an ident server, it may not be correct. In fact, if you are<br />

investigating a problem that is actually being caused by the system administrator of the remote system, he or she<br />

may have altered the ident service. The service may thus return information designed to throw you off by pointing<br />

at someone else.<br />

Currently, identd is shipped standard with few systems. For example, it is shipped with Linux, but is not usually<br />

enabled in the /etc/inetd.conf file.<br />

A more serious shortcoming is that versions of sendmail with built-in support for the ident protocol will no longer<br />

be able to obtain information about the sending user. The use of the ident protocol is discussed in the sidebar "Using<br />

identd".<br />

If using ident makes sense in your environment, you won't be able to use it with smap unless you spawn smap from<br />

another wrapper that implements ident, such as the tcpwrapper program, which is described in the next section.<br />

22.1 Why Wrappers? 22.3 tcpwrapper<br />

[ Library Home | DNS & BIND | TCP/IP | sendmail | sendmail Reference | Firewalls | <strong>Practical</strong> <strong>Sec</strong>urity ]<br />

file:///C|/Oreilly Unix etc/<strong>O'Reilly</strong> Reference Library/networking/puis/ch22_02.htm (5 of 5) [2002-04-12 10:45:58]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!