Email Handling and Manipulation Question 15

19 views
Skip to first unread message

Dan Kelly

unread,
Jul 19, 2011, 1:20:31 PM7/19/11
to Zend Certification Study Group
In an UNIX environment that makes use of a local sendmail
installation, how would you
ensure that your script will be able to arbitrarily set the sender’s
name and address in an email?
(Choose 3)

A. By adding a From header to the message
B. By passing -f as one of the extra parameters
C. By adding a Reply-to header to the message
D. By ensuring that the user under which Apache runs is marked as
privileged in the
sendmail configuration
E. By ensuring the Apache process runs as root

Seal Trip

unread,
Jul 19, 2011, 7:13:29 PM7/19/11
to zend-certificat...@googlegroups.com
A. By adding a From header to the message
B. By passing -f as one of the extra parameters

D. By ensuring that the user under which Apache runs is marked as privileged in the sendmail configuration

Dan Kelly

unread,
Jul 22, 2011, 8:31:29 AM7/22/11
to Zend Certification Study Group
Adding a From header is not sufficient to ensure that sendmail won’t
rewrite your sender
address when sending the message. In fact, you have to specify the
envelope sender of the email
using the -f extra parameter to sendmail. These two steps, on their
own, are not
necessarily sufficient, however; you also have to ensure that the user
under which Apache
runs has the privilege of changing the envelope From header.
Therefore, the correct answers
are A, B and D.
Reply all
Reply to author
Forward
0 new messages