Can't enable SendMail when using SMTP port other than 25

5 posts / 0 new
Last post
#1 Tue, 05/11/2010 - 19:54
grantman16

Can't enable SendMail when using SMTP port other than 25

I can't use port 25 for SMTP, so I set up SendMail to use port 250. However, when I go into Virtualmin->System Settings->Features and Plugins and try to enable Mail for domain, I get this message:

Failed to save enabled features : Sendmail is only accepting SMTP connections on the following ports : 127.0.0.1 port 250. Email from other systems on the Internet will not be accepted. This can be changed in the Sendmail Mail Server module.

How can I fix this without using port 25?

Thanks!
Grant

Tue, 05/11/2010 - 22:14
andreychek

If you have the "Mail for Domain" feature enabled, it implies that you wish to receive email. And if Sendmail isn't listening on port 25, you're not really able to receive email.

So, Virtualmin is telling you that it's being told to do something that won't work.

Rather than shutting off port 25, you could always enable an additional port. Also, protocols such as SMTPS and/or Submission allow you to use port 465 and 587 for sending email, while also keeping port 25 online.

However, if you don't want to receive email, you could always disable the Mail for Domain feature.

-Eric

Wed, 05/12/2010 - 19:05 (Reply to #2)
grantman16

Hmm... I didn't think about that.

I need to be able to receive email, as I will be hosting my private email along with email for my websites.

I can't use port 25 because if I set up my router to forward port 25 requests to my server, then SMTP responses will get send to the server as well, which means I wont be able to send email from my other computers. Unless there is a way to avoid this, I will have to use a port other than 25.

If I (somehow) get Sendmail to use SMTPS (port 465), will other computers know to send messages to my server through port 465 (using SMTPS) rather than port 25? If so, how do I set up SMTPS?

Thanks!
Grant

Wed, 05/12/2010 - 19:47
andreychek

If I (somehow) get Sendmail to use SMTPS (port 465), will other computers know to send messages to my server through port 465 (using SMTPS) rather than port 25? If so, how do I set up SMTPS?

Sorry, there's no way to have other servers send email to your server on an alternate port. Email has to be on port 25 in order to receive email.

The benefit of the alternate port is purely in dealing with desktops that you control -- you can configure the desktop to send email using port 465.

But in order to receive email, your server has to be listening on port 25.

-Eric

Wed, 05/12/2010 - 19:50 (Reply to #4)
grantman16

OK. Thanks!

Topic locked