LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-07-2004, 02:18 PM   #1
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Rep: Reputation: 0
Can receive email but can't send


I have a gateway / mailserver running Red Hat 9, and 2 client pcs (Slackware 9, and Windows 2000).
I can receive email on both client pcs by running ipop3 on the server, now how do i send email?
Sendmail is installed on the server in its default configuration.

Can anyone help?
 
Old 03-07-2004, 03:49 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Make sure that SMTP is running correctly. FIrst test is to telnet to the mailserver to port 25. The command is
telnet serverIP 25
What does it print? Can you connect?
 
Old 03-07-2004, 03:57 PM   #3
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
i can connect using telnet from the client pc but when i try and send an email from Kmail it says something like "621 can not relay" (thats from memory, i'm at work now)
 
Old 03-08-2004, 12:54 PM   #4
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
There is some configuration that must be done with Sendmail if you are going to use it for a mail server. Look at the file sendmail.mc located in /etc/mail. Follow the guidelines in the file and make changes as necessary. Mostly you would need your mail domain name(i.e.: mail.server.com) whether or not you will be relaying through another mail server (from your isp) and some other data you might need (your public ip address). Since you are using RH9 you will probably have to use the m4 engine to convert your sendmail.mc file into the sendmail.cf file. Look at one of the man pages to walk you through the proper syntax. It is just a one line code but I always have to look it up. Then just make sure that sendmail is running. Do a ps aux |grep sendmail and look for it to be running. If it isn't start it. Come to think of it, you'll have to resart it once you compile the new sendmail.cf file.
 
Old 03-14-2004, 02:15 AM   #5
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
Still having problems here...

I have set up Sendmail as my outgoing account in Kmail and i can send an email but then later i get this message in local mail:

The original message was received at Mon, 8 Mar 2004 07:50:28 +1100
from localhost [[UNIX: localhost]]

----- The following addresses had permanent fatal errors -----
<user@example.com>

----- Transcript of session follows -----
451<example.com>: Name server timeout
Message could not be delivered for 5 days
Message will be deleted from queue
 
Old 03-14-2004, 03:55 PM   #6
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Well, there are actually quite a few things that can cause such problems.

1) Is sendmail up and running and listening? Check by doing "ps -ef | grep sendmail" Look for one saying that sendmail is in fact listening.

2) Do the MX records actually point to your email server? If not check with your isp and make sure they are.

3) Do you have all the clients who you want to have email accounts actually have accounts on the server? They will have to before it will work.

4) Have you gone through the /etc/aliases file and registered all of the aliases for the authorized user? Look at the examples to see the proper sysntax. After making any changes you will have to run "newaliases" from a command prompt to validate the new file. No parenthesis necessary.

Try looking at these things and then reposting.
 
Old 03-15-2004, 03:57 AM   #7
retarded
LQ Newbie
 
Registered: Nov 2003
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the reply...

1. Yes, Sendmail is running

2. I only have an MX record for my local mail server not my ISP's mail server, is this the problem?

3. Yes

4. I havent set up any aliases, do i have to alias my ISP email to my local network name?
 
Old 03-18-2004, 07:37 AM   #8
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Sorry I didn't get back to you. I have been out of town at a cyber security seminar. It would appear that everything is like it is supposed to be. One question I do have is are you in fact using this machine as a mail server available out on the internet at a public ip address? If so, then all your isp needs to do is make sure that their MX records point to your server. That way all the mail that will come through them gets routed to your server. As far as your aliases, the aliases are just for the users/clients on your server. You might have a user called Billy Bob. In the aliases file you might have all of his aliases listed: billy.bob@mailserver.com, billybob@mail.server.com, etc... it is often used for sending mail to one person that might come in addressed to different people. For example, the mail that is sent to postmaster will usually get forwarded to root. This is done in the aliases file. You would also have to enter yourself in the aliases file as all mail going to root should be forwarded to you.

After looking at the message again and finding this info out, it might be that your machine can't get to a DNS server to resolve the email. Do you have all of that kind of info entered correctly in your eth0 config? Check it out and repost.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't send out email neither receive any... ultrax Linux - Wireless Networking 2 02-12-2008 09:16 AM
Can send email, not receive hanasi SUSE / openSUSE 5 07-16-2005 04:05 PM
can't receive email but ok to send? taiwf Linux - Newbie 2 07-05-2005 05:27 PM
Can receive email but can't send it 60s TV Batman Fedora 10 06-26-2005 07:37 AM
I can send but cannot receive email quickk Linux - Newbie 1 11-03-2004 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 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