On Mon, Aug 15, 2005 at 09:46:50PM -0500, Mathew Simon wrote:
Is there a way to make SQWEBMAIL to handover the outgoing mails to the
MTA using SMTP?
Only by getting it to invoke a local program which in turn sends the mail
out via SMTP.
However, recent version of exim have a neat feature for this:
http://www.exim.org/exim-html-4.50/doc/html/spec_47.html
That is, you can install exim with a minimal configuration file, and point
sendit.sh to it. When sqwebmail invokes it, exim will run in the foreground
and immediately open an SMTP connection to your chosen smarthost. If the
connection fails for any reason, exim will terminate with an error code (and
sqwebmail will display an error back to the user). Exim does not put the
message into any local queue at all.
I use Postfix and ASSP spam filter. The ASSP listens on the SMTP port
and builds a database of all outgoing and incoming mails for building
the Bayesian spam filter. Right now, the SQWEBMAIL is handing over the
mail directly to Postfix skipping the ASSP and hence it is missing the
good outgoing mails to build it's filter. If I can find a way to send
the outgoing mails from SQWEBMAIL to ASSP through SMTP, then my problem
would be solved.
The solution above will do the trick. There may be other fake sendmail
replacements which do the same (e.g. ssmtp), but I trust exim to handle my
mail :-)
Regards,
Brian.