|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Michael Tokarev (mjt
tls.msk.ru)Date: Sun Mar 03 2002 - 20:27:55 CST
iml
interconnect.net wrote:
>
> On Mon, 04 Mar 2002 05:09:17 +0300, you wrote:
[]
> >When you use
> >
> > domain.com smtp:some.machine.name
> >
> >postfix will lookup some.machine.name in DNS, looking to MX records, and if
> >not found, A records. If you use
> >
> > domain.com smtp:[some.machine.name]
> >
> >or, like in your case,
> >
> > domain.com smtp:[ip.add.re.ss]
> >
>
> So you are saying if I stated:
>
> domain.com smtp:mail.domain.com
>
> instead of:
>
> domain.com :mail.domain.com
>
> in my transport file then it wouldn't give me an mx loop?
Please reread my reply -- you're too unpatient and did read it only partially
(it is continues below). By default, with default_transport=smtp in main.cf,
those two lines are equivalent and will behave equally. You need to place
mail.domain.com into [], i.e. :[mail.domain.com] or smtp:[mail.domain.com]
in order to avoid MX lookups.
> >postfix will lookup A record only (for name, not for ip.add.re.ss). This
> >is documented. (Note that empty transport name means $default_transport;
> >and this particular interpretation of transport definition is specific
> >to smtp transport; for other transports, semantic and interpretation will
> >be different).
> >> Part 2 of this question is how do I make the headers show
> >> mailhub.domain.com when it talks to other servers. Right now it shows
> >> a little something like:
> >>
> >> Received: from mailhub.domain.com [192.168.0.1] by ....
> >
> >This is what 192.168.0.1 tells in HELO:
> >
> > HELO mailhub.domain.com [192.168.0.1]
> >
> >(this is syntactically incorrect). Format of postfix's Received line
> >for smtpd looks like:
> >
> > Received: by HELO (hostname [ip.add.re.ss])
> > by $myhostname ...
> >
>
> Actually, this is the other way around. This is the header and this
> is postfix talking to another mail server. Postfix is using the
> primary IP of the machine instead of a secondary IP
> (mailhub.domain.com) is a secondary IP. I was looking for a way for
> Postfix to use this secondary IP as the connection IP to other mail
> servers.
Oh well, so I misunderstand your question. And so yes, smtp_bind_address
can be useful here too. My apologizes.
Postfix does not binds to any address while making connections -- unless
smtp_bind_address is set or inet_interfaces lists only one IP address.
Thus, outgoing connection will be made from those IP address that is used
by you OS in this case -- on linux, check with `ip route' command, look
to `src' values.
Regards,
Michael.
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]