enable port 25 for smtp

This is for discussing general topics about how to use VirtualBox.
Post Reply
andreww
Posts: 13
Joined: 8. Mar 2014, 12:02

enable port 25 for smtp

Post by andreww »

I have ubuntu server 12.04 on virtualbox and i can't use telnet localhost on port 25.

sudo netstat -plntu

Code: Select all



    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      1027/dovecot
    tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      1027/dovecot
    tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      1027/dovecot
    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1132/mysqld
    tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      1027/dovecot
    tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      1027/dovecot
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1338/apache2
    tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN      1004/inetd
    tcp6       0      0 :::4190                 :::*                    LISTEN      1027/dovecot
    tcp6       0      0 :::993                  :::*                    LISTEN      1027/dovecot
    tcp6       0      0 :::995                  :::*                    LISTEN      1027/dovecot
How do I enble this port?
Last edited by andreww on 17. Mar 2014, 20:02, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: enble port 25 for smtp

Post by Perryg »

Depends on how you set up the guest and which network adapter you are using, NAT, Bridged, Host-only, Etc...
andreww
Posts: 13
Joined: 8. Mar 2014, 12:02

Re: enble port 25 for smtp

Post by andreww »

Perryg wrote:Depends on how you set up the guest and which network adapter you are using, NAT, Bridged, Host-only, Etc...
I have set up 2 adapters, one is using NAT and the other one is for internal network but is not set up(yet)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: enble port 25 for smtp

Post by Perryg »

And have you forwarded the port yet?

See 6.3.1 Configuring port forwarding with NAT, but use the setup screen in the guest settings ( Advanced ) instead of the CLI ( VBoxManage ) unless you are really good at CLI.
andreww
Posts: 13
Joined: 8. Mar 2014, 12:02

Re: enble port 25 for smtp

Post by andreww »

Perryg wrote:And have you forwarded the port yet?

See 6.3.1 Configuring port forwarding with NAT, but use the setup screen in the guest settings ( Advanced ) instead of the CLI ( VBoxManage ) unless you are really good at CLI.
forwarding is a later task... i want to use telnet for the localhost of the guest inside there, nothing external yet.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: enable port 25 for smtp

Post by Perryg »

Then it has nothing to do with VirtualBox.
andreww
Posts: 13
Joined: 8. Mar 2014, 12:02

Re: enable port 25 for smtp

Post by andreww »

Perryg wrote:Then it has nothing to do with VirtualBox.
I installed ubuntu server on a host machine and i didn't have this problem.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: enable port 25 for smtp

Post by Perryg »

So that makes it a VBox issue?

I think if you look hard enough you will find it to be a configuration issue or missing package, but working strictly on the guest VBox will not have any baring on what works and what does not work locally on the guest. Well except video, but that is another issue.
Post Reply