Книга: Linux Network Administrator Guide, Second Edition
Trusting Users to Set the From: Field
Trusting Users to Set the From: Field
It is sometimes useful to overwrite the From: field of an outgoing mail message. Let's say you have a web-based program that generates email. Normally the mail message would appear to come from the user who owned the web server process. We might want to specify some other source address so that the mail appears to have originated from some other user or address on that machine. sendmail provides a means of specifying which systems users are to be entrusted with the ability to do this.
The use_ct_file feature enables the specification and use of a file that lists the names of trusted users. By default, a small number of system users are trusted by sendmail (root, for example). The default filename for this feature is /etc/mail/trusted-users in systems exploiting the /etc/mail/ configuration directory and /etc/sendmail.ct in those that don't. You can specify the name and location of the file by overriding the confCT_FILE definition.
Add FEATURE(use_ct_file) to your sendmail.mc file to enable the feature.
- Инструкция INSERT INTO ... FROM ... UNION ...
- SET TERM больше не нужен в isql
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 8. Saving and restoring large rule-sets
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine
- Kernel setup
- User-land setup
- Compiling the user-land applications