Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

Mailertable - Using comma to simulate MX

已查看 878 次
跳至第一个未读帖子

Ed Spyhill

未读,
2004年10月19日 16:46:522004/10/19
收件人
Quick question. In our DMZ we do not have access to MX records.
Our mailertables use IP addresses delimited with a comma to
simulate a DNS round-robin MX record.

insideDomain.com esmtp:[123.45.67.121],[123.45.67.123]

This returns a random IP of the two listed.

I think we can use a colon or a semi-colon for a weighted
DNS MX record.

What are all the punctuation marks, etc that can be used
in the mailertable? Searched the archives and the Internet
but could not find any docs.

Thank you,

Ed

Andrzej Adam Filip

未读,
2004年10月19日 17:08:002004/10/19
收件人

insideDomain.com esmtp:[123.45.67.121]:[123.45.67.123]

It will work for esmtp, smtp, smtp8, relay, dsmtp.
The above mailers will accept ':' separated list treat it "try in this
sequence". AFAIR it documented somewhere but it is hard to find from
mailertable perspective.

--
Andrzej [en:Andrew] Adam Filip an...@priv.onet.pl an...@xl.wp.pl
Home Page http://anfi.homeunix.net/ [ PageRank 6 ]
*Random Epigram* :
Do not talk Arabic in the house of a Moor.
-- Oriental Proverb

edsp...@yahoo.com

未读,
2004年10月19日 21:44:032004/10/19
收件人

Andrew,

AFAIK, the ':' will act like a weighted MX record.
Using the ':' is the same as:
DNS-MX-name IN MX 10 relay1.domain.com
DNS-MX-name IN MX 40 relay2.domain.com

And using ',' (comma) is the same as a round-robin MX:

DNS-MX-name IN MX 10 relay1.domain.com
DNS-MX-name IN MX 10 relay2.domain.com

I just wanted to ensure we have only the two options,
the comma and colon.

Thank you for the example.

Ed

Claus Aßmann

未读,
2004年10月19日 22:45:052004/10/19
收件人
wrote:

> AFAIK, the ':' will act like a weighted MX record.

> And using ',' (comma) is the same as a round-robin MX:


Note: only ':' is documented behavior and only for listing
hosts for IPC mailers, see doc/op/op.*:

If the mailer is the built-in IPC mailer, the host may
be a colon-separated list of hosts that are searched
in order for the first working address (exactly like MX
records).

Using ':' in other places or using ',' means that you rely on an
undocumented implementation detail which may or may not change at
any time.

The proper way to implement what you want is to use MX records.
--
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Dennis Peterson

未读,
2004年10月20日 01:36:052004/10/20
收件人
Claus Aßmann wrote:
> wrote:
>
>
>>AFAIK, the ':' will act like a weighted MX record.
>
>
>>And using ',' (comma) is the same as a round-robin MX:
>
>
>
> Note: only ':' is documented behavior and only for listing
> hosts for IPC mailers, see doc/op/op.*:
>
> If the mailer is the built-in IPC mailer, the host may
> be a colon-separated list of hosts that are searched
> in order for the first working address (exactly like MX
> records).
>
> Using ':' in other places or using ',' means that you rely on an
> undocumented implementation detail which may or may not change at
> any time.
>
> The proper way to implement what you want is to use MX records.

Note to self: come the dawn go out and discover what the hell an IPC mailer is.
It might be important. Or not.

dp

Jochen Bern

未读,
2004年10月20日 04:45:312004/10/20
收件人
Dennis Peterson wrote:
> Note to self: come the dawn go out and discover what the hell an IPC
> mailer is. It might be important. Or not.

Lemme save the (start of the) day for you:

| # grep IPC /etc/mail/sendmail.cf
| Msmtp, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
| Mesmtp, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
| Msmtp8, P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
| Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
| Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP,
R=MasqSMTP, E=\r\n, L=2040,

Regards,
J. Bern

edspyhill

未读,
2004年10月20日 21:53:532004/10/20
收件人

"Claus Aßmann" <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de>
wrote in message news:cl4jfh$h4o$1...@zardoc.esmtp.org...

Claus,

Thank you. I'll find out why we were denied MX records in the DMZ.
I'll note the unsupported used of commas and pass the info to my
co-workers.

Ed S.


edspyhill

未读,
2004年10月20日 21:56:362004/10/20
收件人

"Andrzej Adam Filip ( http://anfi.homeunix.net/ )" <an...@priv.onet.pl> wrote
in message news:cl3vln$ouj$1...@anfi.homeunix.com...

Andrzej,

Thank you for the reply and information.

Ed S.


aaron....@gmail.com

未读,
2011年10月19日 19:54:592011/10/19
收件人
Just wanted to say this thread came in major handy for me in production =)So happy it was like number one on a Google search for such an obscure topic!!
0 个新帖子