LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-10-2012, 02:59 PM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Rep: Reputation: Disabled
Sending email with GNU Emacs - "Process SMTP not running" error


Hello,
I have read the relevant sections of the emacs manual hoping to get my emacs program set up to send email.

My ISP uses an SMTP server on port 465 and I have verified that the server is up and running by an nmap port scan. I have even inserted the IP number rather than the hostname address.

My machine is running FreeBSD 9 and is fully up to date.

This is the contents of my .emacs file:

----------

(setq send-mail-function 'smtpmail-send-it
smtp-starttls-credentials '(("62.254.26.195" 465 nil nil))
smtpmail-auth-credentials (expand-file-name "~/.authinfo"))
(setq smtpmail-smtp-server "62.254.26.195")
(setq smtpmail-smtp-service 465)

-----------

When i C-C C-C to send the message, I get an error in the mini buffer that says:

"Process SMTP not running"

I have tried to find the answer via google but no clear answer seems to be available. Is anyone able to help with this?
 
Old 07-10-2012, 03:20 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Can you do a basic telnet to the IP on that port from the server and send email manually?
 
Old 07-10-2012, 03:22 PM   #3
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
Can you do a basic telnet to the IP on that port from the server and send email manually?
Perhaps - but I want to get emacs to do it.
Thanks
 
Old 07-10-2012, 03:24 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Perhaps? yes or no. Your first troubleshooting step is to eliminate your variables and isolate the problem. Verify the basic connectivity from your server to the SMTP server before you start to troubleshoot emacs.

http://www.debianhelp.co.uk/mail.htm
 
Old 07-10-2012, 03:28 PM   #5
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Original Poster
Rep: Reputation: Disabled
The problem is not the server. I can send email using other mail user clients on the smtp server. I do not know how to send email manually by telnet and don't think this will bring me any further forward. The error message states 'Process SMTP not running' - do you know what this means?
 
Old 07-10-2012, 03:35 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Unless you're willing to take the steps I suggest I can't help you. I gave you a link to send the email over telnet and that should be sufficient.


The error, although I haven't seen it before, seems to indicate that emacs is not able to contact the SMTP server which is why we are looking at that. So heres your basic telnet email session incase you missed the link I posted to you:

Code:
telnet 62.254.26.195 465
helo youremaildomain.com
MAIL FROM: youraddress@youremaildomain.com
RCPT TO: addressto@deliverto.com
DATA
Test 1 2 3
.
 
Old 07-10-2012, 04:40 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
IF the above works please implement the following into your emacs user config file:

smtpmail-debug-info
smtpmail-debug-verb


And provide the output when attempting to send.
 
Old 07-12-2012, 09:45 AM   #8
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
IF the above works please implement the following into your emacs user config file:

smtpmail-debug-info
smtpmail-debug-verb


And provide the output when attempting to send.
Where does the output go? I may not be able to provide the output as the machine i am using only has command line tools. If this website is lynx friendly then i might be able to transmit full output
 
Old 07-12-2012, 10:12 AM   #9
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
Can you do a basic telnet to the IP on that port from the server and send email manually?
When I telnet , it connects as i get Escape character is ^]

I then type in helo my user name

and get 'connection closed by foreign host'

-------
Icedove works and I have looked again at the settings for smtp:

server name: smtp.virginmedia.com
port : 465
secure authentication: NO
connection security: SSL/TLS

-------

So far I have tried a few 'how tos' i have found on the net - which all seem to involve gmail. I need to connect to my isp as that is my main email account.

I have even tried updating my emacs to emacs 24 but that caused so many problems with outdated dependencies that i had to do a complete re-install of my FreeBSD yesterday to make sure I have a stable system.

There is no way that this can be a real bug as emacs has been around for a long long time.

I am going to start again now from scratch with editing the .emacs file.
 
Old 07-12-2012, 11:53 AM   #10
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The connection closed error indicates either a syntax error on the telnet connection or a security rule on the SMTP server side. You would implement the directives I gave you in your .emacs config file along with the other directives. It should give you the output on stderr which is your terminal.
 
Old 07-12-2012, 12:52 PM   #11
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Kustom42 View Post
The connection closed error indicates either a syntax error on the telnet connection or a security rule on the SMTP server side. You would implement the directives I gave you in your .emacs config file along with the other directives. It should give you the output on stderr which is your terminal.
Thank you for your help - After another 7 hours I have decided that this is ridiculous. I am going to use alpine instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "SIOCADDRT: No such process" when running "service network restart" cmlorentz Linux - Networking 1 11-26-2010 02:06 PM
Need solution to "failed to fork PTY" and "error creating the child process" problems Gnusboy Linux - Newbie 4 01-02-2010 08:54 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 05:23 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 05:55 AM
how should I respond to "Encryption key for doc.gpg?" in GNU Emacs? Joseph Schiller Programming 1 10-24-2003 12:51 PM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration