Page 1 of 1

enable port 25 for smtp

Posted: 17. Mar 2014, 19:27
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?

Re: enble port 25 for smtp

Posted: 17. Mar 2014, 19:56
by Perryg
Depends on how you set up the guest and which network adapter you are using, NAT, Bridged, Host-only, Etc...

Re: enble port 25 for smtp

Posted: 17. Mar 2014, 19:59
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)

Re: enble port 25 for smtp

Posted: 17. Mar 2014, 20:02
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.

Re: enble port 25 for smtp

Posted: 17. Mar 2014, 20:15
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.

Re: enable port 25 for smtp

Posted: 17. Mar 2014, 20:20
by Perryg
Then it has nothing to do with VirtualBox.

Re: enable port 25 for smtp

Posted: 17. Mar 2014, 20:24
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.

Re: enable port 25 for smtp

Posted: 17. Mar 2014, 20:29
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.