Forum archive 2000-2006

Louis Zulli - SMTP Authentication

Louis Zulli - SMTP Authentication

by Arnold Pizer -
Number of replies: 0
inactiveTopicSMTP Authentication topic started 12/23/2006; 3:21:38 PM
last post 12/24/2006; 11:53:23 AM
userLouis Zulli - SMTP Authentication  blueArrow
12/23/2006; 3:21:38 PM (reads: 93, responses: 1)
Can I configure WebWork to send a password to the SMTP server when it attempts to send mail?

In my global.conf file I have

$mail{smtpServer} = ''; $mail{smtpSender} = '';

but requires a password before it will send mail from

<| Post or View Comments |>

userSam Hathaway - Re: SMTP Authentication  blueArrow
12/24/2006; 11:53:23 AM (reads: 101, responses: 0)

Currently you cannot. We are working on a more featureful mail system. That will allow this. A workaround is to install an MTA on your local machine and configure it to accept mail from localhost via SMTP and forward it to (your "smarthost"). Most real MTAs can supply authentication information when connecting to a smarthost. For example, here is a configuration for Exim that would work:

SMTP Relaying Via a Smarthost

There are other MTAs that are easier to set up, but You can use any MTA as long as it

Your other option is to get the jump on us and modify the places in the WeBWorK code where mail is sent. These are lib/WeBWorK/ContentGenerator/, lib/WeBWorK/ContentGenerator/Instructor/, and lib/WeBWorK/Utils/

DelayedMailer uses Net::SMTP, which doesn't support authentication. You can swap this out for Net::SMTP_auth, which does. The other two modules use Mail::Sender, which does support authentication. See

Depending on your levels of programming and system administration skill, one or the other solution ought to be easier.


<| Post or View Comments |>