Hi, Kalyan,
For me, the solution was to install "exim4" instead of "smail". But for
you, I think, it's better to follow the method of Lucas.
But if you are interested, I could tell you how to configure it(you'll need to
add a couple lines).
Here it is:
(I assume, that you choose configuration in one file)
in the file "/etc/exim4/exim4.conf.template"
you should find the following lines:
### transport/30_exim4-config_remote_smtp_smarthost
#################################
# This transport is used for delivering messages over SMTP connections
# to a smarthost. The local host tries to authenticate and does some
# modification in headers and return-path.
# This transport is used for smarthost and satellite configurations.
remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for [EMAIL PROTECTED]"
driver = smtp
hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
tls_tempfail_tryclear = false
DEBCONFheaders_rewriteDEBCONF
DEBCONFreturn_pathDEBCONF
#####################################################
You should insert the line "port=587" to make them look like this:
...
remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for [EMAIL PROTECTED]"
driver = smtp
###Should be added the following line:
port=587
hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
tls_tempfail_tryclear = false
DEBCONFheaders_rewriteDEBCONF
DEBCONFreturn_pathDEBCONF
...
Also, in the file "/etc/exim4/passwd.client" you should add for example:
*:[EMAIL PROTECTED]:your_googlemail_password
That's all folks!
Roma, out
31.01.2006 16:52, Kalyan Mukherjea (wrote):
> Hi again Lucas! and any other listers who might help,
>
> This letter has to do with my efforts to set up smtpmail to send out
> mail using gmail.
>
> What I have in my .emacs under
> ;smtp stuff is very much like yours. Here it is:
>
> ;smtpstuff
> (setq user-mail-address "[EMAIL PROTECTED]")
> (setq send-mail-function 'smtpmail-send-it)
> (setq smtpmail-default-server nil)
> (setq smtpmail-smtp-server "smtp.gmail.com")
> (setq smtpmail-smtp-service 587);you had `25; but gmail.com
> specifies `465' or 587'
> (setq smtpmail-debug-info t);
> (setq smtpmail-debug-verb t);
>
>
> The last line helped me as follows:
>
> When I tried to send mail by typing C-c C-c
>
> the *Messages* buffer told me simply that sending failed, smtp
> protocol error
>
> But the trace of smtp session told me that:
> Starttls has to be started. (This additional info appears after the
> last line in the "smtp-stuff is included)
>
> So I checked that starttls had indeed been succesfully installed 5
> minutes earlier by doing
> `which starttls' . Then I ran a shell command starttls in the
> minibuffer and did C-c C-c again. No joy! I have a feeling that
> another line of lisp code is needed to start starttls.
>
> Can you figure out what I am doing wrong?
>
> Cheers.
> Kalyan
> _______________________________________________
> Oralux mailing list
> [email protected]
> http://lists.freearchive.org/mailman/listinfo/oralux
_______________________________________________
Oralux mailing list
[email protected]
http://lists.freearchive.org/mailman/listinfo/oralux