Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 10th May 2006, 22:41
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,126
Thanks: 4
Thanked 43 Times in 40 Posts
Default

I think I added port 2500 to my server by doing this:

open master.cf and change

Quote:
smtp inet n - n - - smtpd
to
Quote:
smtp inet n - n - - smtpd
2500 inet n - n - - smtpd
Reply With Quote
Sponsored Links
  #12  
Old 10th May 2006, 23:04
AgeOfPenguins-com AgeOfPenguins-com is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not that far yet (setting up e-mail clients etc.)

I'm trying to SEND mail from my server, but my ISP blocks any outbound traffic that isn't headed for its own mail server. (They do that to prevent spam, so you can't just set up a mail server at home and have fun sending out millions of e-mails)

The problem is, I'm not a spammer but I'd like to allow my web server to send e-mails like a normal web server. How can I configure Postfix to use port 26 instead of port 25?

I have a professional webhosting account as well, and they have a special service to "start another copy of the mail service on port 26" for those customers who otherwise can't send mail via port 25.

But in my case, the server ITSELF is on the ISP's network, so it can't send mail on port 25. Is that going to prevent me from sending out e-mail altogether?

That might be...

Matthew
Reply With Quote
  #13  
Old 10th May 2006, 23:18
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,126
Thanks: 4
Thanked 43 Times in 40 Posts
Default

Just do as I above and instead of port 2500 use port 26.... your server will then listen to both ports

I just know that port 2500 works fine from my university... they allow use of port 25 only in combination with Lotus Notes ^^
Reply With Quote
  #14  
Old 10th May 2006, 23:42
AgeOfPenguins-com AgeOfPenguins-com is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

But how can my server use another port, when it has to send messages to other servers which are using the standard port 25?

That very traffic will be blocked by my ISP -- because although I have both 25 and 26 open, my server will have to communicate with the other servers on the standard SMTP port, 25.

If my users needed to bypass this kind of blocking, they could contact my server -- but my server itself needs to be able to send e-mails itself. How can it do that if the only standard port is blocked?

For instance, my webhost (Spry.com) is running 2 copies of the mail server -- on ports 25 and 26. That allows me to send mail from that domain name, because my computer and the webserver talk on port 26 -- which isn't blocked by SBCYahoo (DSL). But the server there has to send it to its destination -- so what if THAT server was connected to the Internet via SBCYahoo? Could it ever hope to send out e-mails?

Another way of looking at it -- if blocking port 25 is to prevent spamming, why wouldn't spammers just set up a cheap Linux box and configure it for port 26, and send out spam 24/7? Is it really that simple?

Matthew

Last edited by AgeOfPenguins-com; 10th May 2006 at 23:44.
Reply With Quote
  #15  
Old 10th May 2006, 23:53
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sending SMTP traffic out port 26 will do you no good if the receiving server is not listening on Port 26.

Conclusion: Running a mailserver on your ISP generally is a no go. I would recommend purchasing a hosted server where the petty restrictions of an ISP do not apply.
__________________
themachine
5dollarwhitebox.org
Reply With Quote
  #16  
Old 10th May 2006, 23:57
AgeOfPenguins-com AgeOfPenguins-com is offline
Junior Member
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Would it be possible to send everything through a "relay host" (e.g., mail.domain_using_webhost_listening_on_port_26.com ) and then it would send it to the Internet at large.

But I haven't figured out how to "authenticate" on Postfix -- where do you put in your account name/password to use that SMTP server? I mean, most webhosts require authentication to be able to use their port 25 (to send e-mail) Otherwise spammers could guess the mail server's name and use that.

As you can see, it's possible to use another mail server to do all the sending:

#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mail.mydomain.com]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

BUT how do I send it on Port 26, and how do I authenticate with that mail server, since they all require authentication now?

I have an account there, however, so I should be able to use that server. Especially on my Spry account, which is already listening on ports 25 and 26.

Any advice here?

Matthew

Last edited by AgeOfPenguins-com; 11th May 2006 at 00:15.
Reply With Quote
  #17  
Old 11th May 2006, 00:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by AgeOfPenguins-com
Would it be possible to send everything through a "relay host" (e.g., mail.domain_using_webhost_listening_on_port_26.com ) and then it would send it to the Internet at large.
Yes, have a look here: http://www.howtoforge.com/forums/sho...07&postcount=2
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 12th July 2011, 21:43
mlz mlz is offline
Senior Member
 
Join Date: Dec 2006
Posts: 189
Thanks: 16
Thanked 9 Times in 9 Posts
Default

I tried adding the line to master.cf, and restarting postfix, however, I can not connect. telnet localhost 26 (I set up for port 26 since Optimum doesn't block this port) and can not communicate with smtp.

here is the line I added to master.cf
Code:
26	inet    n	-	n	-	-	smptd
Here is my session with telnet:
Code:
[root@www postfix]# telnet localhost 26
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
ehlo localhost.com
^]
telnet> quit
I'm running ISPConfig 3 with the centos 5 perfect host setup. I need this working as we are on optimum (sic) which blocks port 25, and I'd like to be able to use my own mailserver.
Reply With Quote
  #19  
Old 13th July 2011, 10:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 13th July 2011, 19:13
mlz mlz is offline
Senior Member
 
Join Date: Dec 2006
Posts: 189
Thanks: 16
Thanked 9 Times in 9 Posts
 
Default

Code:
[root@www languages]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:imaps                     *:*                         LISTEN      927/imap-login      
tcp        0      0 *:pop3s                     *:*                         LISTEN      1545/dovecot        
tcp        0      0 localhost.localdomain:10024 *:*                         LISTEN      1927/amavisd (maste 
tcp        0      0 localhost.localdomain:10025 *:*                         LISTEN      15868/master        
tcp        0      0 *:mysql                     *:*                         LISTEN      1898/mysqld         
tcp        0      0 *:submission                *:*                         LISTEN      15868/master        
tcp        0      0 *:pop3                      *:*                         LISTEN      1545/dovecot        
tcp        0      0 localhost.local:dyna-access *:*                         LISTEN      1810/clamd          
tcp        0      0 *:imap                      *:*                         LISTEN      927/imap-login      
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1715/portmap        
tcp        0      0 *:ftp                       *:*                         LISTEN      1961/pure-ftpd (SER 
tcp        0      0 www.m-l-z.com:domain        *:*                         LISTEN      1689/named          
tcp        0      0 localhost.localdomai:domain *:*                         LISTEN      1689/named          
tcp        0      0 *:smtp                      *:*                         LISTEN      15868/master        
tcp        0      0 localhost.localdomain:rndc  *:*                         LISTEN      1689/named          
tcp        0      0 *:26                        *:*                         LISTEN      15868/master        
tcp        0      0 localhost.localdomain:51649 localhost.localdomain:mysql ESTABLISHED 23321/amavisd (ch11 
tcp        0      0 localhost.localdomain:54495 localhost.localdomain:mysql ESTABLISHED 2020/amavisd (ch1-a 
tcp        0      0 www.m-l-z.com:pop3s         184.167.249.243:53082       TIME_WAIT   -                   
tcp       13      0 localhost.localdomain:26    localhost.localdomain:39249 CLOSE_WAIT  -                   
tcp       34      0 localhost.localdomain:26    localhost.localdomain:39251 CLOSE_WAIT  -                   
tcp        0      0 localhost.localdomain:mysql localhost.localdomain:51649 ESTABLISHED 1898/mysqld         
tcp        0      0 localhost.localdomain:mysql localhost.localdomain:54495 ESTABLISHED 1898/mysqld         
tcp        0      0 *:imaps                     *:*                         LISTEN      927/imap-login      
tcp        0      0 *:pop3s                     *:*                         LISTEN      1545/dovecot        
tcp        0      0 *:pop3                      *:*                         LISTEN      1545/dovecot        
tcp        0      0 *:rockwell-csp2             *:*                         LISTEN      1794/sshd           
tcp        0      0 *:imap                      *:*                         LISTEN      927/imap-login      
tcp        0      0 *:webcache                  *:*                         LISTEN      4825/httpd          
tcp        0      0 *:http                      *:*                         LISTEN      4825/httpd          
tcp        0      0 *:tproxy                    *:*                         LISTEN      4825/httpd          
tcp        0      0 *:ftp                       *:*                         LISTEN      1961/pure-ftpd (SER 
tcp        0      0 *:domain                    *:*                         LISTEN      1689/named          
tcp        0      0 ::1:rndc                    *:*                         LISTEN      1689/named          
tcp        0      0 *:https                     *:*                         LISTEN      4825/httpd          
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38149 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38151 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:37982 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38001 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:37993 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:220.181.94.227:61376 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38046 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38038 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38032 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:119.63.196.118:34483 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38024 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38073 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38065 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38060 TIME_WAIT   -                   
tcp        0   6624 www.m-l-z.com:rockwell-csp2 ::ffff:184.167.249.24:35028 ESTABLISHED 8060/0              
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38107 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          crawl-66-249-71-206.g:34578 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38080 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          b3091271.crawl.yahoo.:45542 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38140 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38133 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38120 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38116 TIME_WAIT   -                   
tcp        0      0 www.m-l-z.com:http          ::ffff:184.167.249.24:38114 TIME_WAIT   -
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailserver / Postfix Problems oaky Server Operation 31 7th August 2007 19:50
Suse Postfix + Dovecot + ISP Config + smtp Auth; recieving problem! fatum112 HOWTO-Related Questions 2 15th January 2006 19:03
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 15:20
ISPs blocking smtp-auth on port 25 oneinchpunch HOWTO-Related Questions 1 8th December 2005 02:36
Postfix SMTP Auth Configuration kisong Installation/Configuration 6 20th October 2005 01:06


All times are GMT +2. The time now is 16:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.