Discussion:
relayhost in master.cf
(too old to reply)
David Hill
2004-04-15 15:35:47 UTC
Permalink
Hello -
Where do i specify relayhost for a virtual IP?
The smtpd portion works, but postfix wont send all email over to smtp.domain.com.
I have tried qmgr as well.

10.0.0.1:25 inet n - n - - smtpd
-o myhostname=mail.virtualhost.com
-o mynetworks=/usr/local/etc/postfix/mynetworks
10.0.0.1:rewrite unix - - n - - trivial_rewrite
-o relayhost=[smtp.domain.com]
Ralf Hildebrandt
2004-04-15 15:47:15 UTC
Permalink
Post by David Hill
Where do i specify relayhost for a virtual IP?
I'd say that's not possible. Routing decisions are made by the qmgr.
Post by David Hill
I have tried qmgr as well.
How?

--=20
Ralf Hildebrandt ***@charite=
.de
my current spamtrap ***@charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-1=
55
"If it is blue and winding, it is biology. If it stinks, it is chemistry.=
If
it doesn=B4t work, it is physics. If it is unintelligible, it is mathemat=
ics.
If it is all of above, it must has been made by M$." -- Holger Dittm=
ann
David Hill
2004-04-15 15:57:07 UTC
Permalink
Post by Ralf Hildebrandt
Post by David Hill
Where do i specify relayhost for a virtual IP?
I'd say that's not possible. Routing decisions are made by the qmgr.
Post by David Hill
I have tried qmgr as well.
How?
--
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
"If it is blue and winding, it is biology. If it stinks, it is chemistry. If
it doesn?t work, it is physics. If it is unintelligible, it is mathematics.
If it is all of above, it must has been made by M$." -- Holger Dittmann
10.0.0.1:qmgr fifo n - n 300 1 qmgr
-o relayhost=[smtp.domain.com]
--
David Hill ***@wmis.net
WMIS Internet 888-482-9647 x1011
V***@morganstanley.com
2004-04-15 15:57:30 UTC
Permalink
Post by Ralf Hildebrandt
Post by David Hill
Where do i specify relayhost for a virtual IP?
I'd say that's not possible. Routing decisions are made by the qmgr.
Routing decisions are implemented in the queue manager with the data
coming from trivial-rewrite(8). The relayhost parameter is only used by
the trivial-rewrite service and in a configuration sanity check in the
smtp(8) delivery agent.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
Ralf Hildebrandt
2004-04-15 16:01:03 UTC
Permalink
Post by David Hill
10.0.0.1:qmgr fifo n - n 300 1 qmgr
-o relayhost=[smtp.domain.com]
Uhhh, that cannot work.
There can be only one! (queuemanager per postfix instance)

Unless Victor comes up with a brainwarping idea, I'd say: Use two or
more Postfix instances!
--
Ralf Hildebrandt ***@charite.de
my current spamtrap ***@charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
Your mantra for today is: Don't let data from the network near a
shell. Bad things happen. -- Randall Schwartz
V***@morganstanley.com
2004-04-15 16:13:34 UTC
Permalink
Post by Ralf Hildebrandt
Post by David Hill
10.0.0.1:qmgr fifo n - n 300 1 qmgr
-o relayhost=[smtp.domain.com]
Uhhh, that cannot work.
There can be only one! (queuemanager per postfix instance)
Unless Victor comes up with a brainwarping idea, I'd say: Use two or
more Postfix instances!
Sorry, my brain does not warp that far. Exactly one queue manager per
Postfix instance.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
Ralf Hildebrandt
2004-04-15 16:15:29 UTC
Permalink
Post by V***@morganstanley.com
Sorry, my brain does not warp that far. Exactly one queue manager per
Postfix instance.
I was rather thinking of an ugly one-instance hack...
--
Ralf Hildebrandt ***@charite.de
my current spamtrap ***@charite.de
http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
"Real programmers can write assembly code in any language."
-- Larry Wall
V***@morganstanley.com
2004-04-15 16:37:46 UTC
Permalink
Post by Ralf Hildebrandt
Post by V***@morganstanley.com
Sorry, my brain does not warp that far. Exactly one queue manager per
Postfix instance.
I was rather thinking of an ugly one-instance hack...
I know, but running two queue managers inside a single Postfix instance is
not an option.

The "postsuper -s" repair would only cover the primary queue on startup.

The post-install code would not be able to set correct permissions on the
secondary queue.

The new queue manager would need a separate cleanup instance a second
defer/trace/bounce daemon and a second set of delivery agents.

Cramming all of that into a single master.cf is a crime punishable by 20
years solitary confinement in padded room of a psychiatric ward. :-)
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
Loading...