WeBWorK Main Forum

How set email program to avoid this..."Failed to create a mailer: The SMTP server was not found"

How set email program to avoid this..."Failed to create a mailer: The SMTP server was not found"

by Christian Seberino -
Number of replies: 2
How set email program to avoid this..."Failed to create a mailer: The SMTP server was not found".

(A student tried to use the "Email Instructor" button and got that message.)


cs
In reply to Christian Seberino

Re: How set email program to avoid this..."Failed to create a mailer: The SMTP server was not found"

by Gavin LaRose -

A first guess might be that the setting of $mail{smtpServer} in the site.conf file has a value that's not working. We have mail sent by the WeBWorK server, and so have $mail{smtpServer} = 'localhost';.

Gavin

In reply to Gavin LaRose

Re: How set email program to avoid this..."Failed to create a mailer: The SMTP server was not found"

by Christian Seberino -
I  have "localhost" as you suggested.

The odd thing is my /var/log/mail.log says Postfix delivered the email fine...

Sep  9 18:44:11 webwork postfix/smtpd[4133]: connect from localhost[127.0.0.1]
Sep  9 18:44:11 webwork postfix/smtpd[4133]: 8E514A75E: client=localhost[127.0.0.1]
Sep  9 18:44:11 webwork postfix/cleanup[4137]: 8E514A75E: message-id=<20140909_184411_014667.>
Sep  9 18:44:11 webwork postfix/qmgr[1174]: 8E514A75E: from=<>, size=1295, nrcpt=1 (queue active)
Sep  9 18:44:11 webwork postfix/smtpd[4133]: disconnect from localhost[127.0.0.1]
Sep  9 18:44:11 webwork postfix/local[4138]: 8E514A75E: to=<cs@philfour.com>, relay=local, delay=0.06, delays=0.05/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Sep  9 18:44:11 webwork postfix/qmgr[1174]: 8E514A75E: removed