LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-09-2008, 02:46 PM   #1
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Rep: Reputation: 15
Slackware Server, Mail is never received by receiver ?


Hello everyone,
I have a slackware (10.2) server set up my webpages work great and everything but when i try to send myself a email i never receive it.

ive sent mail in the command prompt by typing
Code:
mail myemail@yahoo.com
thesubject
themessage
ctrl-d
and it "looks" like it was sent but when i go check my email it never shows up (not even in bulk folder).

Ive also tried sending via a php webpage with mail() but that never shows up either.

I had made a webpage that would send out tons of emails, it would send emails when users connected (to those who wished to be notified) and it would send out text messages also. I have disabled this because it was sending out tons of emails to users who stopped using the page or signed up with some fake email. I would constantly have to clear out my /mail folder because it was full of "mail returned" receiver dont exist type messages.

Is it possible that i got blacklisted from yahoo or something. How would i do a quick email setup ?

TIA
 
Old 02-09-2008, 03:01 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It's worth checking firstly that your mail server is running. Do you get similar output if you run the following command?
Code:
# netstat -tnap | grep :25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     2884/sendmail: acce
If you do, then you may need to relay your non-local mail through your ISP. With sendmail you add a SMART_HOST entry to sendmail.mc and re-generate your sendmail.cf file. For example:
Code:
sendmail.mc entry
define(`SMART_HOST', `mail.your.isp.address')dnl
 
Old 02-09-2008, 03:39 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The other thing to do is find your mail logs and se what they tell you
 
Old 02-09-2008, 04:23 PM   #4
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
i had tons of mail logs so i deleted them, i also setup my hostname better before it was just off. Im not sure where that "sendmail.mc" file is so ill just wait for the maillog to get something in it
 
Old 02-09-2008, 05:51 PM   #5
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Well now im really really confused. Http server is working fine.

i tried sending mail in the command prompt to my yahoo address and also to users on my linux machine, none of them went through.

So i cant send local or other mail ? But my maillog shows nothing this is what i get when i look at maillog


root@zonemikel:/var/log# vi maillog
skipping 2 old session files
reading maillog


weird . . .

root@zonemikel:/var/log# netstat -tnap | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1860/sendmail: acce


Any ideas ?
 
Old 02-09-2008, 07:26 PM   #6
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
does your mailserver have a legitimate MX record?
 
Old 02-09-2008, 09:29 PM   #7
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by frndrfoe View Post
does your mailserver have a legitimate MX record?
is that something i would set up on my nameserver (yahoo) or on my server?

I know it used to work, then i reinstalled and it just stopped working. It dosen't make sense that i cant even mail other users on the same linux box! Much less external email.
 
Old 02-10-2008, 10:09 AM   #8
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Well i got a lot of this in my maillog, not sure what it means though

Code:
Feb 10 04:41:37 zonemikel sm-mta[13548]: m1AATsKF013497: to=<nobody@zonemikel.zonemikel.com>, delay=00:11:43, xdelay=00:00:00, mailer=esmtp, pri=212055, relay
=zonemikel.zonemikel.com., dsn=4.0.0, stat=Deferred: Name server: zonemikel.zonemikel.com.: host name lookup failure
 
Old 02-10-2008, 12:34 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It's trying to deliver mail to the user "nobody" at the host zonemikel.zonemikel.com, but it can't resolve (get an IP address for) zonemikel.zonemikel.com. Do you have a box called zonemikel.zonemikel.com on your LAN?
 
Old 02-10-2008, 12:49 PM   #10
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
yes,

when i go through netconfig it asks what the name should be then the host so i put zonemikel and zonemikel.com i guess thats where its getting the zonemikel.zonemikel.com

Where is it getting the nobody from ?
 
Old 02-10-2008, 01:01 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
The user nobody is used to run some processes on servers. If it's a task that is still running, you can check with this:
Code:
ps aux | grep nobody | grep -v grep
If it's a task that runs and exits, you should be able to find it by checking the root user (crontab -l) and system cron jobs (/etc/cron*).
 
Old 02-10-2008, 01:26 PM   #12
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Ahh, its nobody thats running /usr/sbin/httpd so thats normal i guess.

So what do i do to get my mail working. If i run netconfig again its gonna ask me what is the computer name, what is the domain so if i put
anything
anythingelse.com
its always going to be anything.anythingelse.com and wont be able to send mail.

I dono, you guys can just point me in the direction of a tutorial if im beyond help.
 
Old 02-10-2008, 05:26 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
You could add a line to your /etc/hosts file like this:
Code:
127.0.0.1  zonemikel.zonemikel.com  zonemikel
If the box is only on a LAN and doesn't need to be resolved by other boxes it's no problem.
 
Old 02-12-2008, 07:50 AM   #14
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
You could add a line to your /etc/hosts file like this:
Code:
127.0.0.1  zonemikel.zonemikel.com  zonemikel
If the box is only on a LAN and doesn't need to be resolved by other boxes it's no problem.
Well it is a webserver, so should i still do the above ?

Also looking at my hosts file i have
Code:
//some stuff
# for loopbacking.
127.0.0.1             localhost
192.168.2.150         zonemikel.zonemikel.com zonemikel

# end of hosts
is there something wrong with my hosts file ?
 
Old 02-12-2008, 04:09 PM   #15
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
In the log message it says it cannot resolve zonemikel.zonemikel.com. with a trailing dot. Do you have that set up in your mailertable? If so, it should not have the trailing dot, it should just be zonemikel.zonemikel.com
 
  


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
Need to received mail from postfix to desknow mail server lakshan Linux - Server 0 10-24-2007 06:27 AM
Squirrelmail no mail received in INBOX antanas Linux - Software 7 04-24-2007 05:13 AM
Programs to edit received mail? elyk Linux - Software 5 02-03-2007 12:11 PM
Ok, i have just received distros in mail, now wich one? Optyx Linux - Newbie 1 01-18-2004 01:56 AM
pop3 mail receiver sami Programming 2 11-23-2002 07:12 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
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