LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2011, 04:47 PM   #1
laredotornado
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
Trouble sending email


Hi,

I'm using Linux 11.04 and just installed the most recent version of Postfix. I'm trying to send a simple email (through a relay) but when I run the command

sendmail davea@mydomain.com FROM: fromemail@gmail.com SUBJECT: hello world this is a test email .

It just hangs there. There is nothing in /var/log/mail.log or in any of its accompanying files. Any ideas how I can figure out what's going wrong?

Thanks, - Dave
 
Old 05-04-2011, 07:15 AM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
I've never tried sending email this way, though I've seen the examples. If you're running sendmail on your box by cron or as a daemon, I send mail off the server using the mail utilities. If that's not installed, it should be.
 
Old 05-04-2011, 08:17 AM   #3
laredotornado
Member
 
Registered: Apr 2011
Posts: 71

Original Poster
Rep: Reputation: 0
The example I gave is just something I ran from the shell. What way do you use? Could you provide an example? I'm searching for something that will give me a little more information about what's going wrong.

Thanks, - Dave
 
Old 05-04-2011, 09:29 AM   #4
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
Hi,

If your talking about Ubuntu 11.04 you might want to check out the following links. I had set up system email alerts via google once before using a combination of the tutorials on these following links. I found that the exim4 config had changed a little bit; so, had to kinda mix things up a bitt. Also, you can send the email using the -vv switch to get it to be more verbose and run tail -f /var/log/daemon.log in another terminal to see if you can get any errors.

http://wiki.debian.org/GmailAndExim4

http://www.howtogeek.com/<<this one helped, but referenced config entries that did not seem to match./

http://www.cyberciti.biz/faq/apt-get...des-available/

http://kleinekevin.freeforumit.com/v...php?f=38&t=316


Good Luck!
 
Old 05-04-2011, 05:32 PM   #5
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Example

Quote:
Originally Posted by laredotornado View Post
The example I gave is just something I ran from the shell. What way do you use? Could you provide an example? I'm searching for something that will give me a little more information about what's going wrong.

Thanks, - Dave
mail -s "test" someone@somewhere.com
this is line 1
this is line 2
the next line is a '.' which terminates the message
.
<Prompted for Cc:>

end of mail.

You'd need to make sure mail utilities were installed.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble in sending and receiving email heyson Linux - Newbie 1 11-23-2009 05:03 AM
Problem sending email through new email server bigben747 Linux - Server 3 01-26-2009 05:16 PM
sending email cambie Linux - Software 1 11-20-2004 06:02 PM
Having trouble sending email with Open Web Mail wolfman423 Linux - Software 4 02-26-2004 07:30 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration