[Zope] sendmail problem or issue?

Randall F. Kern randy@spoke.net
Sun, 29 Apr 2001 18:18:40 -0700


First, yes you are correct in that Zope connects to the SMTP server to
send the message from the Zope server, not from the browser client.

I bet this problem is due to permissions on the mailhost object.  By
default only managers can use mailhost objects (to keep anonymous users
from using your Zope server as a spam box.)

If you want people other than managers to be able to send mail, you must
set the "Manager" proxy role on the DTML method you use to send the
message.

-Randy

> -----Original Message-----
> From: Tim Haines [mailto:tim@ims.co.nz]
> Sent: Sunday, April 29, 2001 4:28 PM
> To: zope@zope.org
> Subject: [Zope] sendmail problem or issue?
>=20
>=20
> Hi there,
>=20
> I've run into a few problems with the sendmail tag this morning.
>=20
> 1) I have the sendmail tag using the mailhost arg.  Running=20
> the page from
> the server works fine.  If I try and run it from another=20
> machine, zope tells
> me it can't find mailhost.
>=20
> 2) I have the sendmail tag using the smtphost arg.  Works=20
> fine from the
> server and from other machines in the internal network (which=20
> are allowed to
> use the smtp server), but of course it doesn't work from=20
> machines external
> to the network, i.e. Jim Bob from X Corp across town can't=20
> run the page
> because his machine isn't allowed to use the smtp server.
>=20
> I would have expected that the mail is created and sent by the machine
> running zope, not the machine running the browser.  What's=20
> going on here,
> and what should I do to fix the problem?
>=20
> Tim.
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20