LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2003, 07:29 PM   #1
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Rep: Reputation: 15
Unhappy postfix, smtp and pop3


I am setting up my system as a mailserver. I followed all the docs on postfix.org and linuxsecurity.com on setting up postfix.

I am using Kmail as my mail client. For sending mail Kmail wants to use smtp.mydomain.com and for receiving mail it wants to use pop.mydomain.com.
Yet when I try to send or receive mail I get an error message saying " cannot find server smtp.mydomain.com" or "cannot find server pop3.mydomain.com."

I have pop3 running through inetd. I thought smtp ran through postfix.

Am I missing something? Or will Kmail not work for this?

I have my router configured to use ports 110 for pop and 25 for smtp and have them pointed to my server.

Last edited by artman62; 01-03-2003 at 07:31 PM.
 
Old 01-04-2003, 02:56 AM   #2
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
Postfix is the SMTP server and runs almost perfect right out of the box, there isn't much of the config you need to change just to get it to run and to accept mail.

Kmail will work.
Are you using kmail locally? or remotely? are those real hosts? (smtp.mydomain.com + pop.mydomain.com) which means they are setup in your DNS or you have them faked by putting them in your hosts file? if not use localhost for pop or tell it to use the local file (/var/spool/mail/<user>) and sendmail to send. actually, any email program will work on and off the box if setup correctly.
If you actually want to use those ports to send and receive mail
and you are local to the mailserver can you telnet localhost 110 and 25? do those ports respond with a server ready? what about remotely? does a netstat -at show that smtp and pop3 are listening? do you have them blocked with TCP_Wrappers? Hmm... never looked to see if you could block smtp with tcp_wrappers. but I know you can with pop3. what about a firewall? if you have port 25 blocked then you will only receive local mail.
Your router configuration will not matter if you are local to the mail server.

so much to cover for such a simple question

Hope this helps,
rewt
 
Old 01-05-2003, 10:08 AM   #3
Doug04567
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
Angry KMAIL Config Question

I have a standard dial-up connection and believe I've set up kmail correctly...
However, When I send a message, it's received by my netscape email client instead of KMAIL ! Help please ?

 
Old 01-06-2003, 06:25 PM   #4
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
rewt,

Thanks for the help. entering localhost allowed me to send mail.
Telnet to port 25 worked fine. Port 110 is another story. Telnet said the connection was refused, so I checked it with netstat and found nothing on port 110.

I found I don't have pop3 loaded. It is supposed to be loaded with imap, which isn't loaded either. I can't seem to find either in my Mandrake 9.0 package manager. I selected the mail server configuration when I installed 9.0, but it looks like those didn't load.

I am using kmail locally for now. But I also want to use it to access my mail from home also.

As for smtp.domain.com and pop3.domain.com, I don't have either set up in my DNS or hosts file. I am not sure how to put these in my hosts file, so I guess I'll look it up.

I don't know if this makes a difference, but I am using static IP's for this system that I was given by my DSL provider. The only DNS service I have set is their DNS server. All the IP's of my systems here in my office are set manually.

thanks for the help
 
Old 01-07-2003, 07:13 AM   #5
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
To enter the hosts in your hosts file should be easy enough, this is basically what you will find in your /etc/hosts

127.0.0.1 localhost.localdomain localhost

if you wanted to use the pop3.domain.com you could do it just add a line like this: (you shouldn't remove the original localhost line)

127.0.0.1 pop3.domain.com pop3

you can also find more info by typing: man hosts
at the command prompt.

Last edited by rewt; 01-07-2003 at 07:16 AM.
 
Old 01-07-2003, 11:16 AM   #6
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks rewt.

I was playing around with this after I sent my reply. I entered that info.
But i have run into another issue. In Mandrake 8.2 to load pop3 you needed to load IMAP. I'm using 9.0 now and I cannot for the like of me find IMAP or POP3.
Do you happen to know if they have changed from 8 to 9?
 
Old 01-07-2003, 11:38 AM   #7
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
I havent used that distro as of lately but on this list of packages:
http://www.linux-mandrake.com/en/9.0...tation/15.php3
Looks like it comes with imap 2001a I would just search the RPM directories on the CD's if you have them all and find that package. That package does come bundled with both IMAP and POP3 or so the page says: (imap 2001a : Server daemons for IMAP and POP network mail protocols.)

That package should do it for ya

hope that helps,
rewt
 
Old 01-08-2003, 10:16 AM   #8
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks again.

I did find the imap2001 package. But now I have run into another problem. I can't access my cd drive. I get the message
"you do not have permission to access this device" whether I am logged in as root or myself.

I noticed that on this server and my ftp server that the /dev/hdc icons have a lock on them.

On this server I have no /dev/mnt/cdrom directory like I do on my ftp server.

I went into mandrake control center and checked my hardware and it is showing the cd drive and the driver it is using.

This system is running Mandrake 9.0 and the ftp server running Mandrake 8.2, so I must have done something in the setup.

I checked around the forum and Mandrakes site but could find anything relating to this.

any ideas?
 
Old 01-08-2003, 11:41 AM   #9
rewt
Member
 
Registered: May 2001
Posts: 44

Rep: Reputation: 15
Glad you found that package, Hope it works well for you.

Looks like your not the only one having that CD drive problem-

http://www.linuxquestions.org/questi...t=access+drive

The thread above also references the mandrake expert forum, you might check to see if they have figured out why this is happening. You might also want to post your drive question in the hardware forum. Someone there may be able to help.

sorry I couldn't be of more help,
rewt
 
Old 01-08-2003, 12:18 PM   #10
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks rewt,

I tried a search on cdrom but got so many threads I never got to the ones you linked to.

Same issue I am having. Kind of bugs me that this issue has been on MandrakeExpert so long with no response. It is obviously a problem.

Thanks again
 
Old 01-28-2003, 04:12 AM   #11
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 620

Rep: Reputation: 31
I have the same problem with the mail server, it doesn't respond, I tried
telnet to port 25 thereis no response , how to activate it

telnet 172.19.10.50 25
Trying 172.19.10.50.. (address of my server ).
telnet: connect to address 172.19.10.50: Connection refused

thank for help

here it is the netstat

netstat -at
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 *rinter *:* LISTEN
tcp 0 0 *op3s *:* LISTEN
tcp 0 0 *:echo *:* LISTEN
tcp 0 0 *:rsync *:* LISTEN
tcp 0 0 *:9098 *:* LISTEN
tcp 0 0 *oppassd *:* LISTEN
tcp 0 0 *:9099 *:* LISTEN
tcp 0 0 *op3 *:* LISTEN
tcp 0 0 *:imap *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 mail.iap.dz:domain *:* LISTEN
tcp 0 0 localhost:domain *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 localhost:rndc *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 *:https *:* LISTEN

thank for 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
SMTP/ Postfix / IMAP-POP3 / Courier ?? vladimir-dk Linux - Software 3 04-09-2004 04:31 AM
POP3 and SMTP mithras Linux - Newbie 2 01-22-2004 07:46 AM
Pop3\smtp evalduxx Linux - Software 4 12-05-2003 06:33 PM
Pop3/smtp Bensoft Kill MS Linux - Newbie 2 08-24-2003 09:44 PM
POP3 and SMTP PcHammer Linux - Networking 5 02-07-2001 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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