LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 01: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, 04: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, 04:57 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Probably not blocking but most ISP's and mailservers will deny DHCP enabled hosts, which you probably have.
 
Old 03-18-2008, 11:49 PM   #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, 09:36 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 02:48 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 03: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, 08: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, 09: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 09:23 PM.
 
  


Reply



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 05:58 AM
If i change my apache port 80 to another port, can this affect google listings? Doomhammer Linux - Networking 4 03-16-2007 08:41 AM
Cannot telnet postfix on port 25 alivewithtechnology Linux - General 6 08-22-2006 03:23 PM
postfix outgoing port ? taiwf Linux - Software 4 07-06-2006 10:59 AM
Using postfix on a port other than 25 newtolinux83 Linux - Networking 7 09-03-2003 11:43 AM

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

All times are GMT -5. The time now is 03:00 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
Open Source Consulting | Domain Registration