Forum OpenACS Q&A: Re: email relay

2: Re: email relay (response to 1)
Posted by Gustaf Neumann on
There are several options:

Suspending notification handling:
- Notification is handled by sweep_notifications, registered by [1], if you disable (i.e. comment out) the registry of the schedules procedures, this processing stops.
- in general different delivery methods are allowed configured, default is "email", and the delivery works over [2]

Suspending outgoing emails:
- mail sending works for non immediate cases vial a mail queue, which is processed via acs_mail_lite::sweeper [3]
- one can deactivate the sweeper by commenting out the
registry of the scheduled procedure in [4]

Deactivating schedules procedures can also be done by getting the scheduled id (e.g. via nsstats) and unregister the scheduled proc.

One can also deactivate mail queue processing temporarily (without server stopping) be setting the nsv "acs_mail_lite send_mails_p" to a value larger than 0, telling the sweeper, that it should not process it.

For configuring SMTP delivery, the following parameter in acs-mail-lite can be used: SMTPHost, SMTPTimeout, SMTPPort, SMTPUser, SMTPPassword. Adjusting these parameter should be sufficient for most mail relays.

Hope this helps

[1] packages/notifications/tcl/sweep-init.tcl
[4] packages/acs-mail-lite/tcl/acs-mail-lite-init.tcl