Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th June 2006, 06:16
eKg eKg is offline
Junior Member
 
Join Date: Mar 2006
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Lightbulb Running SMTP on multiple ports (postfix)

Hello all;

As with most large ISP's, my ISP filters port 25 (SMTP). As a web hosting provider, I felt that my customers should be able to use my email server to send email, as well as receive it. It's kind of a value added feature

So, here's how I did it:

Open /etc/postfix/master.cf and add the following line:
Code:
587       inet  n       -       n       -       -       smtpd
This is for postfix only. Restart postfix and your done. This doesn't really have anything to do with ISPConfig, however maybe it should be an option...?

EDIT: I forgot to tell you, SMTP will listen on ports 25 and 587

Last edited by eKg; 12th June 2006 at 07:04.
Reply With Quote
The Following User Says Thank You to eKg For This Useful Post:
bizna (29th August 2010)
Sponsored Links
  #2  
Old 31st July 2006, 17:10
alex916 alex916 is offline
Member
 
Join Date: Dec 2005
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a great solution but when i try to send an email using 587 port, no auth is required and the server become an open relay.
Any idea?
Reply With Quote
  #3  
Old 1st August 2006, 14:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Have a look here: http://www.howtoforge.com/forums/sho...28&postcount=4
__________________
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
  #4  
Old 2nd August 2006, 18:52
alex916 alex916 is offline
Member
 
Join Date: Dec 2005
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, i tried to send a email from my network.
Running telnet localhost 587 this is the output:

debian:/etc/postfix# telnet localhost 587
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 debian.domain.tld ESMTP Postfix (Debian/GNU)
ehlo localhost
250-debian.domain.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
Reply With Quote
  #5  
Old 3rd August 2006, 09:21
alex916 alex916 is offline
Member
 
Join Date: Dec 2005
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried to use this tip from a remote pc with an outside ip but it doesn't work.
When I send an email, i can't authenticate me using port 587.
Reply With Quote
  #6  
Old 3rd August 2006, 16:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by alex916
Running telnet localhost 587 this is the output:

debian:/etc/postfix# telnet localhost 587
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 debian.domain.tld ESMTP Postfix (Debian/GNU)
ehlo localhost
250-debian.domain.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.
Looks fine.

Quote:
I tried to use this tip from a remote pc with an outside ip but it doesn't work.
When I send an email, i can't authenticate me using port 587.
What's the exact error message? What's in the mail log? Did you enable "Server requires authentication." in your email client?
__________________
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
  #7  
Old 3rd August 2006, 18:05
alex916 alex916 is offline
Member
 
Join Date: Dec 2005
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looking mail.log, when i use port 587, i have this error:

Aug 3 16:14:58 debian postfix/smtpd[3759]: connect from unknown[192.168.0.4]
Aug 3 16:14:58 debian postfix/smtpd[3759]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Aug 3 16:14:58 debian postfix/smtpd[3759]: warning: unknown[192.168.0.4]: SASL LOGIN authentication failed
Aug 3 16:14:58 debian postfix/smtpd[3759]: lost connection after AUTH from unknown[192.168.0.4]
Aug 3 16:14:58 debian postfix/smtpd[3759]: disconnect from unknown[192.168.0.4]

Thanks Falko
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
Fedora 4 TPS mail problem Hagforce HOWTO-Related Questions 13 10th February 2010 19:23
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
smtp authentication (postfix and courier imap) chrno Installation/Configuration 1 8th May 2006 22:22
postfix courier not running in ssl mode? shadowsa Server Operation 4 19th December 2005 14:20


All times are GMT +2. The time now is 02:00.


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