postfix outgoing port ?
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:
RULE=,:25 [from anywhere going to port 25?]
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.
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?
Good call. It could very well be a random port for the email sending, which wouldn't be very good for your situation.
netstat will help
To see all my open connections, I often use
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.
|All times are GMT -5. The time now is 07:59 PM.|