LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2008, 02:55 PM   #1
tomkis
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Question how can I change port 25 for other (Postfix)


Hi I have a problem with sending mail, I can send it to myself, but doesn't work for outside world. I am using dyndns, but I am not sure if my ISP is blocking port 25, Dovecot works fine I can receive my mails. I know that there was another thread, but I am just wondering if it is possible in postfif/main.cf
 
Old 03-17-2008, 05:56 PM   #2
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Rep: Reputation: 15
Same here

I have the exact same problem. I posted in the newbie thread though. I would just like 1 of 3 virtual domains to relay the mail via other smtp. I am going to keep searching for the solution.
 
Old 03-17-2008, 05:57 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
Probably not blocking but most ISP's and mailservers will deny DHCP enabled hosts, which you probably have.
 
Old 03-19-2008, 12:49 AM   #4
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Rep: Reputation: 15
I'm still able to telnet my.mailhost.com [port] to my mail server and test fine.
 
Old 03-19-2008, 10:36 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by slozzy View Post
I'm still able to telnet my.mailhost.com [port] to my mail server and test fine.
It's not a matter of your port being blocked. Most ISP's and other mail servers do not allow email or messages from mail servers with DHCP and no reverse DNS of the actual domain to be delivered. This is a way to block potential spam(mers) that might have taken control of a host that isn't intended to be a mailserver but to be used to send email.
 
Old 03-19-2008, 03:48 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
If you are running your mail server on a port other than 25, how is my mail server supposed to know that ? My mail server would try to send mail to your mail server using port 25. there is no way to automatically tell my mail server to send to a different port when it attempts to connect to your mail server, that I am aware of.

And yes, my mail server denies mail from Dynamically assigned addresses and server with no reverse DNS as well. Still see thousands of SPAM messages hit the filters daily.
 
Old 03-19-2008, 04:35 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The easiest way around this, unless for some reason it really doesn't suit, is to relay outgoing mail via your ISP's smtp server. All ISP's that offer mail accounts offer this capability, and it resolves all the issues outlined above regarding reverse DNS, port numbers, etc.

Check your ISP's details for getting your email - they will have given you details of their smtp server and pop server.
 
Old 03-19-2008, 09:41 PM   #8
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Rep: Reputation: 15
Yes this is what I'm trying to do. Get the mail out on a port other than port 25 to my hoster's SMTP. The email will go out from there on port 25. Previously the PTR and MX records were setup and I was sending mail directly but now have to make this change for the client.
 
Old 03-19-2008, 10:20 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No, your ISP's smtp will listen on port 25. Thsi is different from your domain name hoster which is where your other post is at.

Is there a reason why you don't use your ISP's smtp? The only downside is it may show the connection comming from a server that isn't yours to recipients, but who cares.

Last edited by billymayday; 03-19-2008 at 10:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
If i change my apache port 80 to another port, can this affect google listings? Doomhammer Linux - Networking 4 03-16-2007 09:41 AM
Cannot telnet postfix on port 25 alivewithtechnology Linux - General 6 08-22-2006 04:23 PM
postfix outgoing port ? taiwf Linux - Software 4 07-06-2006 11:59 AM
Using postfix on a port other than 25 newtolinux83 Linux - Networking 7 09-03-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration