Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run postfix on another port?

26 views
Skip to first unread message

Soon Lai Kang

unread,
Sep 25, 2003, 1:55:11 PM9/25/03
to
I have been searching around, but I couldn't find any info on running
postfix on other port than 25. How do i do it? I wanna be able to run
multiple instances of postfix on the same machine.

--
Soon Lai Kang


Ralf Hildebrandt

unread,
Sep 25, 2003, 1:57:57 PM9/25/03
to
* Soon Lai Kang <sk...@knowledgemicro.com>:


> I have been searching around, but I couldn't find any info on running
> postfix on other port than 25. How do i do it? I wanna be able to run
> multiple instances of postfix on the same machine.

master.cf, first column
--
Ralf Hildebrandt Ralf.Hil...@charite.de
my current spamtrap spam...@charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Programmer /n./ A red-eyed, mumbling mammal capable of conversing with
inanimate objects.

Tony Earnshaw

unread,
Sep 25, 2003, 2:22:37 PM9/25/03
to
Soon Lai Kang wrote:

> I have been searching around, but I couldn't find any info on running=20
> postfix on other port than 25. How do i do it? I wanna be able to run=
=20


> multiple instances of postfix on the same machine.

You do not run Postfix on any port. You might run a Postfix daemon on a=20
port. E.g., smtpd. In place of the service listed in /etc/services, you=20
simply enter the port number in the left-hand column of master.cf.

Watch out, 'cos a hell of a lot of other things might bite. All depends=20
on what you want to do.

sample-master.conf

--Tonni

--=20
Tony Earnshaw

Millom kaksar eg litet kann trivast, millom jamningar helst er eg n=F8gd

http://www.billy.demon.nl
Mail: to...@billy.demon.nl

Soon Lai Kang

unread,
Sep 25, 2003, 2:30:13 PM9/25/03
to
Ralf Hildebrandt wrote:
> * Soon Lai Kang <sk...@knowledgemicro.com>:
>
>
>
>>I have been searching around, but I couldn't find any info on running
>>postfix on other port than 25. How do i do it? I wanna be able to run
>>multiple instances of postfix on the same machine.
>
>
> master.cf, first column

can you give me an example? like running it on port 6025.

WHere do i specify the port? change smtp to 6025?
smtp inet n - y - - smtpd


--
Soon Lai Kang

Derrick 'dman' Hudson

unread,
Sep 25, 2003, 4:17:33 PM9/25/03
to

--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 25, 2003 at 11:26:42AM -0700, Soon Lai Kang wrote:
| Ralf Hildebrandt wrote:
| >* Soon Lai Kang <sk...@knowledgemicro.com>:
| >

| >>I have been searching around, but I couldn't find any info on running=
=20


| >>postfix on other port than 25.

It's in the docs, somewhere. (I don't remember where offhand, but I
know I've read it several places. Possibly even in the comments at
the top of master.cf)

| >>How do i do it? I wanna be able to run=20


| >>multiple instances of postfix on the same machine.
| >
| >master.cf, first column

|=20


| can you give me an example? like running it on port 6025.

Sure.

| WHere do i specify the port? change smtp to 6025?
| smtp inet n - y - - smtpd

6025 inet n - y - - smtpd

-D

--=20
Whoever loves discipline loves knowledge,
but he who hates correction is stupid.
Proverbs 12:1
=20
http://dman13.dyndns.org/~dman/

--0OAP2g/MAC+5xKAE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/c01DiB6vp1xAVUARAivtAJ9WfXEsyt9vzEtjjwjE0W2CJf7LAQCeNA7i
W4c57l1QWP0Db/2z2Uda3XY=
=U1CT
-----END PGP SIGNATURE-----

--0OAP2g/MAC+5xKAE--

Ralf Hildebrandt

unread,
Sep 25, 2003, 4:40:05 PM9/25/03
to
* Soon Lai Kang <sk...@knowledgemicro.com>:
> Ralf Hildebrandt wrote:
> >* Soon Lai Kang <sk...@knowledgemicro.com>:
> >
> >
> >
> >>I have been searching around, but I couldn't find any info on running
> >>postfix on other port than 25. How do i do it? I wanna be able to run
> >>multiple instances of postfix on the same machine.
> >
> >
> >master.cf, first column
>
> can you give me an example? like running it on port 6025.
>
> WHere do i specify the port? change smtp to 6025?
> smtp inet n - y - - smtpd

6025 inet n - y - - smtpd

--

Why you can't find your system administrators:
Is in luser's office, trying to explain why "export VAR=xxx" from one xterm window doesn't have any effect on the other windows. "But they're all on the same Xstation -- what's the problem?" -- Michael Hartwig har...@lfs.loral.com

Zbigniew Lisiecki

unread,
Sep 25, 2003, 6:24:25 PM9/25/03
to
On czw 25. of September 2003 22:17, Derrick 'dman' Hudson wrote:
> On Thu, Sep 25, 2003 at 11:26:42AM -0700, Soon Lai Kang wrote:
> | Ralf Hildebrandt wrote:
> | >* Soon Lai Kang <sk...@knowledgemicro.com>:
> | >>I have been searching around, but I couldn't find any info on running
> | >>postfix on other port than 25.
>
> It's in the docs, somewhere. (I don't remember where offhand, but I
> know I've read it several places. Possibly even in the comments at
> the top of master.cf)
>
> | >>How do i do it? I wanna be able to run
> | >>multiple instances of postfix on the same machine.
> | >
> | >master.cf, first column
> |
> | can you give me an example? like running it on port 6025.
>
> Sure.

>
> | WHere do i specify the port? change smtp to 6025?
> | smtp inet n - y - - smtpd
>
> 6025 inet n - y - - smtpd
>
isn't it enough (and better) to change /etc/services ?
z
--
http://zbyszek.evot.org

Derrick 'dman' Hudson

unread,
Sep 25, 2003, 11:27:59 PM9/25/03
to

--3lcZGd9BuhuYXNfi

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 26, 2003 at 12:32:09AM +0200, Zbigniew Lisiecki wrote:
| On czw 25. of September 2003 22:17, Derrick 'dman' Hudson wrote:
| > On Thu, Sep 25, 2003 at 11:26:42AM -0700, Soon Lai Kang wrote:
| > | Ralf Hildebrandt wrote:
| > | >* Soon Lai Kang <sk...@knowledgemicro.com>:

| > | >>I have been searching around, but I couldn't find any info on runni=


ng
| > | >>postfix on other port than 25.

| > | >master.cf, first column

| > 6025 inet n - y - - smtpd
|
| isn't it enough (and better) to change /etc/services ?

It's enough, but arguably not better. If any other program uses the
smtp entry in /etc/services in any context other than connecting to
this locally running postfix then /etc/services must not be changed.

-D

--=20
A wise servant will rule over a disgraceful son,
and will share the inheritance as one of the brothers.
Proverbs 17:2
=20
http://dman13.dyndns.org/~dman/

--3lcZGd9BuhuYXNfi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/c7IkiB6vp1xAVUARAhBwAJkBSgeYrPTx33dsgTznoa9FdeyCmACdGmNy
2saoApfA4nD+Gn+2q4D0Exw=
=We9w
-----END PGP SIGNATURE-----

--3lcZGd9BuhuYXNfi--

Ralf Hildebrandt

unread,
Sep 26, 2003, 2:23:01 AM9/26/03
to
* Zbigniew Lisiecki <zby...@evot.org>:

> > 6025 inet n - y - - smtpd
> >
> isn't it enough (and better) to change /etc/services ?

Why would anyone change /etc/services? Has IANA recently changed the
port for SMTP?

--
Ralf Hildebrandt Ralf.Hil...@charite.de
my current spamtrap spam...@charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Why you can't find your system administrators:

Hiding in wiring closet.

0 new messages