LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   can't telnet to port 25 (https://www.linuxquestions.org/questions/mandriva-30/cant-telnet-to-port-25-a-389102/)

varun_saa 12-04-2005 07:54 AM

can't telnet to port 25
 
Hello,

I am setting up a mail server
on Mandriva 2006.

I am not able telnet to port 25.

[root@mail varun]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


What is the problem ?

Port 110 works.

Thanks

Varun

edcutis 12-04-2005 10:10 AM

I know it sounds a bit silly, but have you opened that port on the firewall (and router if using)?

varun_saa 12-04-2005 10:52 AM

No firewall.

Varun

tkedwards 12-04-2005 07:27 PM

What email server are you using? Postfix (the default in Mandriva)? If so have you configured it? What's in /etc/postfix/main.cf?

mikeyman 12-05-2005 05:04 AM

check the state of the service and make sure it's running and set to accept connections from your IP Address. Postfix has many security options to limit abuse. You may be running into one of them.

varun_saa 12-05-2005 09:18 AM

Thanks Mikeyman,

Can you be elaborate a little.

Thanks in advance

Varun

mikeyman 12-05-2005 11:14 AM

OK. What mailserver are you attemping to configure (sendmail, postfix, qmail)? If it is indeed postfix (Mandriva default) you have to check the contents of /etc/postfix/main.cf. The default is only active from the local host interface. Read the /etc/postfix/main.cf.dist for the full commented configuration file. You can do a LOT to customize the server and to keep abuse and relaying to a minimum. Try also typing man postfix at a prompt.

If you are trying to configure sendmail, the cause/effect is similar, but Sendmail can be a real beast to configure properly.

tkedwards 12-05-2005 03:56 PM

To get you started here is what I added to my postfix config after the default config lines in the main.cf:
Code:

mydomain = example.com
myorigin = $myhostname

#mydestination is the list of domains that will be considered to mean the local server. In this case it
#includes the server's internal and external domain names (example.com and example.com.au) and
#the localhost (so that email can be sent to tim@localhost for example)
mydestination = example.com, $myhostname, localhost.$mydomain

mynetworks = 192.168.1.0/24, 127.0.0.0/8

#deliver all mail through procmail (if there's no procmail rules file it should just go into the default /var/spool/mail/whatever file
mailbox_command = /usr/bin/procmail
#By default postfix has a stupid ~50MB limit on the size of the mailbox it will deliver to (even if going through postfix or whatever). Zero means infinite size.
mailbox_size_limit = 0

This is just for a simple local delivery mail server (for fetchmail). It also allows the sending of emails, both internal and external. It also allows machines on the LAN to send email to local addresses. HTH.

varun_saa 12-05-2005 08:36 PM

Thanks a lot.

Sorry it is Postfix. Should have mentioned that.

I shall try and let you know.

Varun


All times are GMT -5. The time now is 01:04 PM.