LinuxQuestions.org
Visit Jeremy's Blog.
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 08-05-2011, 07:57 PM   #1
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Rep: Reputation: 0
mail question


forget about this lol
Attached Thumbnails
Click image for larger version

Name:	Screenshot-root@bneva: ~-Desktop.png
Views:	26
Size:	38.7 KB
ID:	7738  

Last edited by b-neva; 08-20-2011 at 11:36 PM.
 
Old 08-05-2011, 08:12 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,155
Blog Entries: 15

Rep: Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082
What have you done to configure sendmail?

I don't know how to do it (although I've read about it), but it needs to be configured to know where to send the mail. It won't send mail to the internet out of the box.
 
Old 08-20-2011, 11:41 PM   #3
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Original Poster
Rep: Reputation: 0
First off I am using Ubuntu if that means anything. Alright forget about my first post I'll just rewrite what my question is....

I've tried using the mail command many times now with something as simple as

Code:
mail -s "foo" email@hotmail.com
then with a simple message after

I don't receive anything in my hotmail inbox. ONE time I received an email from root in my junk mail which I found out a few hours after I got it. So 99.9% of the time it won't reach my inbox, but one time it decided to.

My friend uses mail and it works 100% perfect for him. He said all he installed was the package "mail", whereas I don't even find anything called just "mail" I have to download "heirloom-mailx" AND "sendmail" for it to even let me use the mail command. I posted in the ubuntu forum as well and they were saying my ISP might be blocking port 25, but my friend also has the same ISP and for him, everything works perfect.

Last edited by b-neva; 08-20-2011 at 11:42 PM.
 
Old 08-21-2011, 12:26 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
A good start would be to look in the maillog for errors.
If you are using a dynamic IP, you need to set the smtp from your provider as a mail relay.
Most SMTP servers refuse mail sent from a dynamic IP.

Kind regards
 
Old 08-22-2011, 08:05 AM   #5
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
A good start would be to look in the maillog for errors.
If you are using a dynamic IP, you need to set the smtp from your provider as a mail relay.
Most SMTP servers refuse mail sent from a dynamic IP.

Kind regards
what if I have a static ip? Can I still set it to say a hotmail server or something? The logs all say relay=localhost and ONE time it was mx1.hotmail or something like that.

It just bothers me because a long time ago (about 2 years ago) I used mail/sendmail and it all worked perfect from the start, now its broke lol
 
Old 08-22-2011, 08:38 AM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
Go to the site mxtoolbox.com and enter your ip and or domain into the system. It will give you a report showing how your system is viewed as a mail server. Due to the massive amount of spam and the fact that 99% of it originates on compromised home systems that have been turned into zombie bots, the major email providers tend to reject mail from non approved and all residential domains. Having a an IP address that is static is not enough anymore and even if it is static, it can still be classified as a residential IP block.
 
Old 08-22-2011, 05:32 PM   #7
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Original Poster
Rep: Reputation: 0
well when I put in my domain name it says no records found
 
Old 08-22-2011, 08:03 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,155
Blog Entries: 15

Rep: Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082Reputation: 3082
Klaatu did a podcast on configuring sendmail etc. last year.

It's episode 5x06 on this page: http://thebadapples.info/index5.html
 
Old 08-23-2011, 07:41 AM   #9
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
Quote:
well when I put in my domain name it says no records found
This tells me that you don't have a public domain, or at least one functioning properly. Did you try the IP address? I think you should verify that you are not going to be blocked from sending mail to the internet (more often than not, you are) before you spend time trying to configure sendmail for this purpose.
 
Old 08-29-2011, 01:53 PM   #10
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Original Poster
Rep: Reputation: 0
sorry for not replying for so long...

my friend said for him to fix this problem he just had to add our ISP mail server to the relay list and it worked. Now my question is, how do I add a relay for this?
 
Old 08-29-2011, 02:40 PM   #11
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
In sendmail, you can configure what is called a smarthost. Point this at your friend's mail (SMTP) server that has been configured to relay for your domain and you should be good to go. One caveat, which I can't answer with the information provided is that your friend may have set up authentication requirements. You will need to check wit them.
 
Old 08-29-2011, 03:11 PM   #12
b-neva
LQ Newbie
 
Registered: May 2009
Posts: 23

Original Poster
Rep: Reputation: 0
I figured it out, had to put it in the "sendmail.cf" under the "Smart" relay host
 
  


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
Mail question jorasmi Slackware 3 03-29-2005 02:20 AM
Mail question -- what to use??? peeples Slackware 4 09-15-2003 02:59 PM
Question re: Mail phil1076 Linux - Software 2 07-18-2003 11:22 AM
mail question plisken Linux - General 1 04-18-2003 05:04 PM
mail question sqn Linux - Networking 2 05-18-2002 01:17 PM


All times are GMT -5. The time now is 02:26 PM.

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