Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

SMTP outgoing random ports

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
philly75
Posts: 7
Joined: Thu Nov 06, 2014 12:11 am

SMTP outgoing random ports
  • Quote

Post by philly75 » Mon Feb 16, 2015 2:36 am

Hi All,

Can anyone please advise why my server gets random ports for outgoing mail?
Running this: netstat -plan| grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 23511/exim
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 23511/exim
tcp 0 1 192.168.1.110:48673 65.55.92.136:25 SYN_SENT 21525/exim
tcp 0 1 192.168.1.110:48671 65.55.92.136:25 SYN_SENT 24051/exim
tcp 0 1 192.168.1.110:48672 65.55.92.136:25 SYN_SENT 23016/exim
tcp 0 1 192.168.1.110:36137 65.54.188.94:25 SYN_SENT 24308/exim
tcp 0 0 :::25 :::* LISTEN 23511/exim
tcp 0 0 :::2525 :::* LISTEN 23511/exim


192.168.1.110 is my servers internal IP and I have submitted a form off my web page, and this is what i see displayed as connections on port 25, see the server IP attached to random ports?

I have installed vestacp, all the default ports for smtp are active, 25,465,587,2525

I have opened my firewall for these SMTP ports to ALLOW to the server but does not.

POP works but SMTP does not.I have removed sendmail and postfix, so only exim and devcot is running.

Anyone have any ideas?

Thanks
Phil
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: SMTP outgoing random ports
  • Quote

Post by sanna » Mon Feb 16, 2015 5:14 pm

philly75 ,
with
netstat -plan| grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LIST EN 28935/exim
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LIST EN 28935/exim
tcp 0 0 :::25 :::* LIST EN 28935/exim
tcp 0 0 :::2525 :::* LIST EN 28935/exim

I have this :
Why support ? See this viewtopic.php?f=12&t=6180

many thanks
Top

philly75
Posts: 7
Joined: Thu Nov 06, 2014 12:11 am

Re: SMTP outgoing random ports
  • Quote

Post by philly75 » Mon Feb 16, 2015 10:15 pm

Hi,

Send an email somewhere or attempt to send one and then run that same command.

Thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: SMTP outgoing random ports
  • Quote

Post by skurudo » Tue Feb 17, 2015 7:44 pm

/etc/exim4/exim4.conf.template

Code: Select all

daemon_smtp_ports = 25 : 465 : 587 : 2525
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: SMTP outgoing random ports
  • Quote

Post by sanna » Wed Feb 18, 2015 10:50 pm

skurudo wrote:/etc/exim4/exim4.conf.template

Code: Select all

daemon_smtp_ports = 25 : 465 : 587 : 2525
Yes I have this in exim.conf (not exim4)

daemon_smtp_ports = 25 : 465 : 587 : 2525

I dont have exim.conf.template file:
/etc/exim/exim.conf.template
-bash: /etc/exim/exim.conf.template: No such file or directory
Last edited by sanna on Thu Feb 19, 2015 3:54 pm, edited 1 time in total.
Top

philly75
Posts: 7
Joined: Thu Nov 06, 2014 12:11 am

Re: SMTP outgoing random ports
  • Quote

Post by philly75 » Thu Feb 19, 2015 12:26 am

Same here.

It seems that VestaCP is doing this or perhaps NGINX reverse proxying something.

There is no way that anyone else in this forum has not come across this and fixed it. If not then no on is using a firewall policy based and has all ports open to public.

I am behind a firewall and I have a BLOCK all rule to my server and have opened ports 80, 443, and all SMTP ports:
25 : 465 : 587 : 2525 and I have opened POP3 before smtp on firewall.

Exim though chooses random ports to send out. Who can help and how to fix this?
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: SMTP outgoing random ports
  • Quote

Post by sanna » Thu Feb 19, 2015 3:50 pm

philly75 wrote:Hi,

Send an email somewhere or attempt to send one and then run that same command.

Thanks
the same,I am waiting for a script installation's email but nothing

[root@srv1 ~]# netstat -plan| grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2808/exim
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 2808/exim
tcp 0 0 :::25 :::* LISTEN 2808/exim
tcp 0 0 :::2525 :::* LISTEN 2808/exim
[root@srv1 ~]#
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password