LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2011, 09:19 PM   #16
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8

dbrazeau,

It appears your local system is trying to gmail as it's smtp server. You must have something misconfigured. If you actually want to use Gmail as your smtp gateway, you need to look at their directions for setting up imap clients and use your gmail credentials to access their smtp servers. And yes, you must have some kind of mailer daemon running to send mail unless you use an external smtp server like gmail. So please, check and see if you have a mail daemon running that supports smtp. Additionally, once you figure out what that daemon is, please post the config file here and we will walk you through it. We need more info to offer more help. Personally, I don't like sendmail. If I were to setup an MTA, I would use Qmail or Postfix, which it appears you are running postfix. Please consult their page and familiarize yourself with their commands well enough to make sure you know how to check the service, start it, and stop it.

www.postfix.org/postfix.1.html

One last thing, you need to use your ISP provided hostname as your domain, like this: you@yourmachine.yourisp.com. Otherwise, there will be no return path. However, if you have your own domain, and that domain name is pointing toward the IP address of your machine, then just set it up to use your domain, you@yourdomain.com

HTH,

KaBar's Edge
Linux User #431029
 
Old 03-04-2011, 02:17 PM   #17
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 178

Original Poster
Rep: Reputation: 28
Quote:
dbrazeau,

It appears your local system is trying to gmail as it's smtp server. You must have something misconfigured. If you actually want to use Gmail as your smtp gateway, you need to look at their directions for setting up imap clients and use your gmail credentials to access their smtp servers. And yes, you must have some kind of mailer daemon running to send mail unless you use an external smtp server like gmail. So please, check and see if you have a mail daemon running that supports smtp. Additionally, once you figure out what that daemon is, please post the config file here and we will walk you through it. We need more info to offer more help. Personally, I don't like sendmail. If I were to setup an MTA, I would use Qmail or Postfix, which it appears you are running postfix. Please consult their page and familiarize yourself with their commands well enough to make sure you know how to check the service, start it, and stop it.

www.postfix.org/postfix.1.html

One last thing, you need to use your ISP provided hostname as your domain, like this: you@yourmachine.yourisp.com. Otherwise, there will be no return path. However, if you have your own domain, and that domain name is pointing toward the IP address of your machine, then just set it up to use your domain, you@yourdomain.com

HTH,

KaBar's Edge
Linux User #431029
__________________
KaBar's Edge
Registered Linux User #431029
Windows free since 05/2000
Yes I am using postfix, and yes I agree it is much easier than sendmail (even though I don't have it quite working yet). I am trying to send an email to a server/account on my local network. I don't want to use my ISP domain, as this system will eventually be on a closed network without an ISP. Would it work if I just configured my system to use the same domain as the local network mail server(not local as on my machine)? If so how do I configure linux/postfix for this. For example the local email server I am trying to send to is mail.mydomain.com and the email address is myemail@mydomain.com.

I've been trying for a couple of days now to get this to work. How do I need to setup my Linux hostname, /etc/hosts, postfix main.cf, postfix master.cf, etc. to do this. Assume I'm starting from the default postfix config. Thanks for all the help.

Last edited by dbrazeau; 03-04-2011 at 03:15 PM.
 
Old 03-08-2011, 08:07 AM   #18
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8
I really believe a full postfix walk-through is beyond the scope of this forum. However, there are a number of good walk-throughs out there on the web. Here is one:

http://beginlinux.com/server_trainin...-server-set-up

It seems fairly cut and dry. Let me know if you need more help.

Take care,

KaBar's Edge
 
Old 03-09-2011, 12:21 PM   #19
dbrazeau
Member
 
Registered: Aug 2009
Distribution: Fedora, OpenSuse, DENX Embedded Linux
Posts: 178

Original Poster
Rep: Reputation: 28
I think I found my issue. All I had to do is set my relayhost=my.mail.server, and I was able to send emails to my email address/server on my LAN. I am still having issues sending emails to my gmail account, but I believe this is because I don't have SASL authentication setup. Since I don't really need to send emails to my gmail account I will probably not bother setting this up. Thanks for all the help!
 
  


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
Send email from command line markotitel Linux - Newbie 4 10-26-2009 09:41 AM
how to send email with attachments from the command line km4hr Linux - Software 1 09-18-2007 11:10 AM
send email from command line djionel82 Programming 6 11-29-2005 01:12 AM
trying to send internet email from a command line...is it possible rutman Linux - Newbie 8 06-26-2004 03:19 AM
Can Pine send an email without from the command line without.. rutman Linux - Newbie 2 06-11-2004 05:34 PM


All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration