LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-09-2006, 09:49 PM   #1
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Rep: Reputation: 31
postfix outgoing port ?


HI,

I want to limit the bandwidth of outing email of my postfix mail server. I know the receiving port is
port25 but not sure what is the outgoing port. Does postfix use the same port to sending out the email?

I need to know the exact port number so to limit traffic base on port. By the way, i am also using amavis-new. Can anyone give me a hand ?


The shaper(cbq.init) config file i used is below:

DEVICE=eth0,100Mbit,10Mbit
RATE=500Kbit
WEIGHT=50Kbit
PRIO=5
RULE=,:25 [from anywhere going to port 25?]
 
Old 04-09-2006, 10:11 PM   #2
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
I believe mail goes out on 110. Try monitoring your ports as you send an email out from that server and see which one opens up.
 
Old 04-09-2006, 11:13 PM   #3
taiwf
Member
 
Registered: Jun 2005
Distribution: debian, ubuntu, redhat,knoppix
Posts: 194

Original Poster
Rep: Reputation: 31
110 seems to be an pop3 local mail delivery, not the mail transport agent like postfix. If you open /etc/services , it mentions so....


I look up my mail.log , and i got sth like smtp[24xxx]. The port is different each time. I wonder if postfix use ramdon port to send out the email?

Last edited by taiwf; 04-09-2006 at 11:15 PM.
 
Old 04-10-2006, 02:18 AM   #4
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
Good call. It could very well be a random port for the email sending, which wouldn't be very good for your situation.
 
Old 07-06-2006, 10:59 AM   #5
jed_reynolds
LQ Newbie
 
Registered: Jun 2005
Location: wa
Distribution: FC, SuSE.
Posts: 3

Rep: Reputation: 0
netstat will help

To see all my open connections, I often use
netstat -ntulp
This lists my open connections.

Most programs that use tcp connections initiate connections using ephemeral (random) high-numbered ports.

The rule you list below would be alright for connections to port 25,
but you might consider 465 as well, if you want to send to SSL enabled mail servers.
 
  


Reply

Tags
outgoing, port, postfix


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
How do I configure Postfix to save my outgoing SMTP mail in my IMAP "Sent Items"? wired Linux - Newbie 1 02-01-2006 12:12 AM
how to add & register filter for intercepting the packets outgoing on port 80? jayashri Programming 2 11-08-2004 01:30 PM
Blocking outgoing traffic from a specific port billy3 Linux - Security 10 09-24-2004 08:10 PM
Postfix - Don't masquerade Local only Outgoing mail... Help please... Vince0000 Linux - General 2 11-27-2003 09:08 AM
postfix outgoing mail fail from outlook express importboy03 Linux - Networking 0 02-20-2003 02:54 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration