## Installation

### enabling emails

by John Sylvester -
Number of replies: 0
I am trying to enable the email function in webwork, installed from
the most recent DVD iso. I am a little bit out of my league here, so,
if my questions are way off base, feel free to tell me. I won't get
offended.

I have not tried to install an smtp erver.

In the two examples below, I clicked the email button and tried to
send a message to the prof (sylvest@uw.edu). The first three lines
are the settings in /opt/webwork/webwork2/conf/site.conf, and the
fourth is the first line of the error message that appeared.

---------------Example 1-------------------
$mail{smtpServer} = 'smtp.uw.edu';$mail{smtpSender} = 'M307@uw.edu';
$mail{tls_allowed} = 1; all recipients were rejected during RCPT Trace begun at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 204 Students and staff are not supposed to use 'smtp.uw.edu', but some devices, e.g. our copy machine, use it and ask IT for an smtp exception. They provide the IP address of the machine originating the email and the sender, and are permitted to send email without authentication. I believe that this is the easiest route for me, but I want to be sure that I know who the sender is before I submit a request. Is it M307@uw.edu ? The reason I ask is that, when I look at the mail headers of messages sent to me from the MAA webwork server, I see lines like: ----- ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of xxxx@uw.edu designates 173.250.227.26 as permitted sender) smtp.mailfrom=xxxx@uw.edu and later Received: from maaww (courses1.webwork.maa.org [18.209.127.90]) by mxe26.s.uw.edu ------ where xxxx is the email id of the student sending the email and 173.250.227.26 is the IP of mxe26.s.uw.edu. Is "maaww" the sender in the config file of the MAA webwork server? i.e.$mail{smtpSender} = 'maaww@maa.org';

------------------------------------------------------------

---------------Example 2---------------------------
$mail{smtpServer} = 'gmail.com';$mail{smtpSender} = 'M307@uw.edu';
\$mail{tls_allowed} = 1;
Failed to send message: sylvest@uw.edu failed after MAIL FROM: 5.5.1 Authentication Required.

I understand that gmail.com requires authentication, but I
don't understand:

1) Who should authenticate? I guess it must be the sender
"M307@uw.edu"
2) Is it possible to add a password or a certificate and configure
the Perl module to send this ? "M307" is a special account created for
the course, so I wouldn't be two worried about putting a password in a file.
-------------------------------------------

Thanks for taking the time to read this. Even a quick pointer in the
right direction would be appreciated.

john