LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-17-2023, 08:21 PM   #16
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751

You really need to talk to your VPS provider and ask them about firewalls.
Is firewall installed by default and if so, is it set to block by default and you have to open ports, or is it set open (or not installed), in which case you'd have to block ports.

Don't ask me about firewall SW; it's been years since I messed with it, and it was a completely different distro.


Note that just because a port is not blocked, as long as no server SW is listening on that port, it won't be used.
In other words, in practical terms, it's not an issue - in strict security terms you should block any ports from incoming calls, unless you are using them.
Cmd to chk for ports being used ( run this cmd as root)
Code:
netstat -tanp
Do NOT try to change the default port nums that server SW eg SSH, SMTP etc use.
Also, FYI, any port num < 1024 can only be used by root owned processes. This is not a problem, as any SW that needs that will also need to be installed by root user anyway.

HTH

PS Ask them about those 'missing' cmds as well.

Last edited by chrism01; 01-18-2023 at 06:32 PM.
 
Old 01-18-2023, 09:19 AM   #17
b1bb2
Member
 
Registered: Oct 2021
Posts: 90

Original Poster
Rep: Reputation: Disabled
To: chrism01
I have open port: 22 Secure Shell (SSH). I have closed port: 25 Simple Mail Transfer Protocol (SMTP). I am trying to open port 25. Thank you for trying, but your last post was not much help. It sounds like you did all you could. I did talk to my VPS provider and ask them about firewalls: And I told you the reply. I agree the reply was vague. As one port is open and the rest are closed, I guess that a firewall is installed and running. Or what else can cause this? I already checked for ports being used: I know that answer. As you recommend, I will not try to change the port numbers, I am simply trying to open one more port. I will not ask my host about missing commands: If I want a command, I will simply install the package. I delay package install until needed because I like to keep my system install fresh.
 
Old 01-27-2023, 12:04 PM   #18
giesbert
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: Debian 12
Posts: 57

Rep: Reputation: 12
This thread is very confusing. Why do you think port 25 is closed? If it is closed, why would you open port 25 if you have not setup a mailserver listening? A mailserver needs more ports then just port 25. You might want to do some reading first. If you do not set it up in the right way, your server will be a spambox, or worse. Read about security before starting.
Upgrading to debian 11: example.

From what I read in your posts, I would strongly advise you to have a look at "mailcow - dockerized", as said before. it is an all in one solution, setup in docker container. (using: postfix, dovecot, nginx, rspamd, mariadb, redis, etc.)
 
Old 01-28-2023, 03:19 PM   #19
b1bb2
Member
 
Registered: Oct 2021
Posts: 90

Original Poster
Rep: Reputation: Disabled
To: giesbert
The thread is very confusing because I do not know much about this subject. And I started with little. Later, I did get a better VPS. You may ask questions to clarify.

I think port 25 is closed because https://www.whatismyip.com/port-scanner/ (and many other sites) say it is.

iredmail Instructions say: before installing software, open port 25.

I do not know what a mailserver list is, I guess iredmail software will make one or tell me how to get one when it is time.

I am preparing my VPS for installation of iredmail. And doc says I need open port 25.

I have done much reading. My priority is to get it running. Later I will worry about spambox.

I did follow your advice and looked into Mailcow. Thank you, that was very helpful and I chose a similar product: iredmail.

This is taking me a long time because I got sidetracked and I am reading. I wish to satisfy prerequisites before installing software.
 
Old 02-27-2023, 10:40 PM   #20
b1bb2
Member
 
Registered: Oct 2021
Posts: 90

Original Poster
Rep: Reputation: Disabled
I got iredmail working. The port automatically opened when I installed. I wish I knew why. This seems to counterdict the documentation. I now mark this thread as solved.
 
  


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
How to migrate email server from shared hosting to Linux VPS dreamcoder Linux - Server 2 08-04-2012 02:30 PM
How to redirect all traffic from a VPS to another VPS 124748768 Linux - Networking 0 07-08-2011 10:36 AM
web server setup VPS dujlinvik Linux - Server 2 05-07-2009 04:22 AM
2 vps vs 1 vps bmayhem Ubuntu 0 05-04-2009 03:08 PM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:36 PM.

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