change smtp port

decafranky

Verified User
Joined
Aug 22, 2004
Messages
120
i want to change the default port 25 for smtp to for example 26

changed this line in exim.conf
daemon_smtp_ports = 25 : 587
to
daemon_smtp_ports = 26 : 587

Opened firewall for this port, but no mails are delivered any more

Do i miss some config, dovecot?

Franky
 
If exim is not listening on port 25 then no other mail server will be able to send email to your hosted domains. The other mail servers do not you changed the port, how could they.
 
Dovecot does not receive email from anything. Its not relevant.

Look at your post:

changed this line in exim.conf
daemon_smtp_ports = 25 : 587
to
daemon_smtp_ports = 26 : 587

Now mine:

If exim is not listening on port 25 then no other mail server will be able to send email to your hosted domains.
 
And obviously if you change something in anything and it stops working then you need to change it back.

If you pull a spark plug out of car and it stops working what do you have to do? You have to put it back.

You changed the port in exim and it stopped working. Change it back.
 
of course it is back to 25 .. i am not stupid

and it's on a testing server

you're not helping how to get it work on port 26, so i am wondering why are you wasting your time with your irrelevant posts ...

And obviously if you change something in anything and it stops working then you need to change it back.

If you pull a spark plug out of car and it stops working what do you have to do? You have to put it back.

You changed the port in exim and it stopped working. Change it back.
 
of course it is back to 25

Well you didn't say so.

You already have your answer to get it to listen to port 26 as well but I have no idea why you would want to do that.

daemon_smtp_ports = 25 : 587

You already know about changing the above line to get it to listen to other ports as well so the only thing left to help you with is to type it into the exim file for you. Right above that line it says:

# next line to allow incoming email submission port 587

So if you want it to listen to port 26 as well then you have to add the number 26 to that line.

daemon_smtp_ports means the ports that the smtp daemon is going to listen on. You already have the example of adding 587. Just follow the example.

Code:
daemon_smtp_ports = 25 : 587 : 26

If you are clear about your questions then we can be clear about the answers.

I am hoping somewhere in this post is the answer to your question. I am still not sure what that is.

You original post indicated you wanted to change the default port to 26 but then you complained about not receiving email. So are you asking how to change the default port or are you asking about why you are not receiving email.

You also something about Dovecot which has nothing to do with exim or email delivery. So I am not what that question was.

The reason you are not receiving email is because you changed the default port. I explained that in my first post.

You replied with something about Dovecot again but no question.

Looking at the dovecot.conf file I see this about listening ports:

# IP or host address where to listen in for connections. It's not currently
# possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
# "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4
# interfaces depending on the operating system. You can specify ports with
# "host:port".
imap_listen = *
pop3_listen = *

But again your original question was about smtp which has nothing to do with Dovecot.

why are you wasting your time with your irrelevant posts

Because I don't know what you really want? Do you want Exim to listen on port 26 or Dovecot? They are two different things and you are mixing them together as if they are one. Since you have not filled us in on the details we cannot presume to know what you really want and why.

So now I have posted on how to get both to listen on port 26. But of course they both cannot be listening on the same port at the same time.

And again it might be helpful to know why you would even want to do such thing.
 
i only want to change the default smtp port to something, because everybody can use now the outgoing mailserver / smtp from my servers : have a lot of spam

fixed that by settings a limit of 200 mails per user per day

but i thought changing the default smtp port to something else would also help against spammers who are using our servers as there ougoing mailservers, right?

sorry i wasn't clear enough
 
because everybody can use now the outgoing mailserver / smtp from my servers

Only your users can use your server to send mail out to other servers. They either have to login to their pop account on your server first or they have to send their login information when they send email.

If you want to limit spam FROM your server then you have to delete those users on your server.

Changing the port will keep all other servers from sending you mail as well as your users from using the default port to send mail using your server. Changing the default port basically makes your mail server useless except for the few people who use port 587 to send mail using your server. But your server cannot receive email at that point.
 
are you really sure about that?
i believed there was no identification for that

Only your users can use your server to send mail out to other servers. They either have to login to their pop account on your server first or they have to send their login information when they send email..
 
PS: thanks for sharing info

Only your users can use your server to send mail out to other servers. They either have to login to their pop account on your server first or they have to send their login information when they send email.

If you want to limit spam FROM your server then you have to delete those users on your server.

Changing the port will keep all other servers from sending you mail as well as your users from using the default port to send mail using your server. Changing the default port basically makes your mail server useless except for the few people who use port 587 to send mail using your server. But your server cannot receive email at that point.
 
Okay, let's try to straighten this mess out without getting personalities involved:

The default DirectAdmin configuration in the /etc/exim.conf file only allows authenticated users to send emai; DirectAdmin's exim is by default NOT an open relay. If you've messed with your configuration, you may have broken it.

That said: have you put any domain names into /etc/virtual/whitelist_domains? That's no longer recommended; for example if you've got gmail.com in that list then anyone who spoofs their return addrss as gmail.com can relay through your server.

We recommend emptying /etc/virtual/whitelist_domains. Beginning with the final release of SpamBlocker Version3 there will be a built-in whitelist of all major ISPs which will not allow relaying.

Since port 25 is the port that all mailservers use to receive email if you change that to any other port no one will be able to send email to your server.

That behavior is normal and to be expected.

Jeff
 
Back
Top