Forum OpenACS Q&A: Sending mail via SMTP

Collapse
Posted by Claudio Pasolini on
I've always configured Aolserver with the parameter mailhost set to localhost, but now I need to set it to an external SMTP server.

So far so good, but what if I need to authenticate passing user and password? I'm sure I'm missing something, but I didn't find how to do so with config.tcl.

I found that the tcllib command smtp::sendmessage allows passing authentication parameteres, but my usual setup requires acs-mail-lite, because I have to send attachments along with the mail.

Any hints?

Collapse
2: Re: Sending mail via SMTP (response to 1)
Posted by Patrick Giagnocavo on
I think what you are asking for is SMTP-AUTH support.

Usually when doing this for customers, we simply add the IP address of the AOLserver machine to the list of allowed machines that can send without a password. Your provider may allow you to do that.

Collapse
3: Re: Sending mail via SMTP (response to 1)
Posted by Malte Sussdorff on
If you need to authenticate, install acs-mail-lite from HEAD. This has in the complex_send function a parameter for Authentication (both to be passed when calling as well as a parameter in acs-mail-lite parameters). NOTE: You have to install TCLLIB for this to work.
Collapse
4: Re: Sending mail via SMTP (response to 3)
Posted by Claudio Pasolini on
Thank You Patrick and Malte!

I've not yet asked my client's provider to SMTP-AUTH the application server, but in any case I'll give a try to the HEAD version of acs-mail-lite.

Collapse
5: Re: Sending mail via SMTP (response to 3)
Posted by kousalya S on
Hi ,

I need to send mail from mailto:xxx@gmail.com
where i need to specify the authentication.

I have acs-mail-lite and tcllib installed.

please specify the steps to be configured everywhere in the package to send the email to any domain.

Collapse
6: Re: Sending mail via SMTP (response to 5)
Posted by Ryan Gallimore on
Have you tried setting the acs-mail-lite parameters in the SMTP section?
Collapse
7: Re: Sending mail via SMTP (response to 6)
Posted by kousalya S on
I have give in config file
"ns_param mailhost smtp.gmail.com"

and i have given in acs-mail-lite parameters:

BounceDomain: smtp.gmail.com
SendmailBin SMTP

what else to be configured.

Collapse
8: Re: Sending mail via SMTP (response to 7)
Posted by kousalya S on
we have a mail server where i configured for it .
I can send the email within the email server but not to any other email domain.

so what else to be done?

Collapse
9: Re: Sending mail via SMTP (response to 7)
Posted by Emmanuelle Raffenne on
Hi,

What version of OpenACS are you using?

Also you may want to check on the configuration of your local mail server. OpenACS will use your mail server to send emails out so if you can't reach any domain but yours, it's probably related to the configuration of your local mail server.