Cannot Connect to IP

I am trying to set up an openSuse server as a mail server, however, I’m having trouble getting connectivity across my network after opening up the firewall ports.

As a test, I installed the telnet client and was able to connect to **postfix **and **fetchmail **using ports 110 and 25 – but only if I used localhost.

If I tried to connect by the IP address, I received a Connection refused message.

What else do I need to unblock or configure to get IP to work for networking?

jbailo wrote:
> I am trying to set up an openSuse server as a mail server, however, I’m
> having trouble getting connectivity across my network after opening up
> the firewall ports.
>
> As a test, I installed the telnet client and was able to connect to
> *postfix *and *fetchmail *using ports 110 and 25 – but only if I used
> -localhost-.
>
> If I tried to connect by the IP address, I received a -Connection
> refused- message.
>
> What else do I need to unblock or configure to get IP to work for
> networking?
>
>

Postfix needs to be told to bind to the IP address of an ethernet device.
In /etc/sysconfig/mail:

Set this to “yes” if mail from remote should be accepted

this is necessary for any mail server.

If set to “no” or empty then only mail from localhost

will be accepted.

SMTPD_LISTEN_REMOTE=“yes”

Then run SUSEconfig.

Fetchmail doesn’t bind to any address, so you did not connected to this
program on port 110.
Port 110 is reserved for a POP3 server, such as Courier or Dovecot.

Thanks.

When you say run

SUSEconfig

Is that a line command?

I’m managing this server remotely through ssh (can’t get remote vpn to work --another story).

Is it that you want me to stop and start postfix?

Is there a line command for doing that?

(I’m replacing a redhat mail server with this opensuse, so I’m a little unfamiliar with all the line commands here).

I made the change you suggested in /etc/sysconfig/mail and ran SuSEconfig however I still get the same result. Can connect to localhost but not by IP – even if I’m running telnet locally on the server itself!

Here I show that I can connect with localhost and access postfix. Then I show I cannot do the same by IP. I run ifconfig to show my IP. Lastly I display my /etc/sysconfig/mail file:

susemail:/etc/sysconfig # telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 susemail.vcrm1.com ESMTP Postfix
EHLO susemail
250-susemail.vcrm1.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
QUIT
221 2.0.0 Bye
Connection closed by foreign host.

susemail:/etc/sysconfig # telnet 192.168.25.254 25
Trying 192.168.25.254…
telnet: connect to address 192.168.25.254: Connection refused

susemail:/etc/sysconfig # ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:47:D2:24:D2
inet addr:192.168.25.254 Bcast:192.168.25.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9168 errors:0 dropped:0 overruns:0 frame:0
TX packets:6742 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1490696 (1.4 Mb) TX bytes:2886011 (2.7 Mb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:176 errors:0 dropped:0 overruns:0 frame:0
TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16373 (15.9 Kb) TX bytes:16373 (15.9 Kb)

susemail:/etc/sysconfig # cat /etc/sysconfig/mail

Path: Network/Mail/General

Description: Basic general MTA configuration

Type: yesno

Default: yes

Config: postfix,sendmail

If you don’t want to let SuSEconfig generate your

configuration file, set this to no

MAIL_CREATE_CONFIG=“yes”

Path: Network/Mail/General

Description:

Type: string

Default: “”

Config: postfix

ServiceReload: sendmail,postfix

From:-Line in email and News postings

(otherwise the FQDN is used)

FROM_HEADER=""

Type: yesno

Default: no

Config: postfix

Set this to “yes” if mail from remote should be accepted

this is necessary for any mail server.

If set to “no” or empty then only mail from localhost

will be accepted.

SMTPD_LISTEN_REMOTE=“yes”

Type: yesno

Default: no

Set this to “yes” if the yast2 mail module must not

start with the with the vizard for asking the

configuration type of the mail server.

SKIP_ASK=“no”

Type: string(standard,advanced,undef)

Default: undef

This variable contains the type of the mail server configuration.

CONFIG_TYPE=“undef”
susemail:/etc/sysconfig #

{Smile}

Remember that linux is case sensitive…

The command you want is a “line command”, so, from a terminal, as root…

SuSEconfig

(Rooster had an uppercase ‘u’ in there, small typo, that’s all)

This will cause the system to rebuild the config files as necessary to set up
certain features.

Then you would restart postfix

(as root)
rcpostfix restart

and all should be well.

=================

You would be better off using the “Mail Transfer Agent” module in Yast ->
Network Services to set up your postfix, as it handles some of the ‘quirks’
automatically.

Yast -> Network Services -> Mail Transfer Agent

Tell it you want a ‘standard’ type, and possibly check the ‘skip in future’
option too.

Connection Type is ‘Permanent’

If you have an outgoing mail server, enter it here, along with any
authorization logins (via the authentication button)

Final screen gives options for “Accept remote SMTP connections”, “Open port
in firewall” and a few others. You’d want to select the first two.

Click ‘Finish’… SuSEconfig will be run automatically, and postfix restarted
as needed.

and all should be well.

=============

Hope this helps

Loni


L R Nix
lornix@lornix.com

That worked great for postfix (thx!)

However, after installing and setting up pop3 I cannot connect to it via port 110 remotely.

I can telnet locally into it…but not from a remote machine (that has port 110 open).

Any other configuration I need to do?

(My firewall is off).

For some reason this started working !?

I was using telnet to test as you instructed.

Maybe I typed wrong IP…anyway, thanks for the help!

pop3 accessible!