ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Afanasov Dmitry <ender@comp-mir.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] postfix последовательно на разных ip
Date: Tue, 2 Aug 2005 14:22:06 +0400
Message-ID: <20050802102206.GB27281@nick.comp-mir.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]

достал меня postfix.

у меня на работе один ip адрес - выдаётся динамически (можно конечно в
dhcp гвоздями приколотить к маку, но подсетей две - два здания, так что 
всё равно ip будут разные).
дома - другой. админом домашней сети я не являюсь, так что ip могу
использовать только выданный.

инетом пользуюсь и дома и на работе. куда ж админу без инета-то :)

теперь почему достал: postifix привязывается к определённому адресу
(myhostname). этот myhostname дома и на рабоетразные, так что когда
приползаю домой, postfix отваливается. когда возвращаюсь на работу он уже
в дауне и послать письмо не получается. соображаю бывает только под вечер,
что у меня в очереди полно писем а mail system в дауне. а то бывает и на
следующий день - не часто я пишу самЮ больше читаю, причём через imap, так
что от локальной почтовой систмы не завишу.

есть конечно вариант привязать его не к ip а к имени хоста, но fqdn машин
дома и на работе разные, так что через dns не получится. в hosts если
прописывать, то привязка будет опять к ip, а они, как я сказал, меняются.

и что делать - хрен его знает.

хотя есть вариант - при получении от dhcp имени, писать эту связку в
/etc/hosts (для удобства можно каталог завести /etc/hosts.d). при отказе
dhcp сервера откатываться на старый /etc/hosts, как сейчас почти
происходит с /etc/resolv.conf (не всегда, но происходит - /etc/chroot.d/resolv.conf 
при отказе dhcp не бывает не отрабатывает). вот только не знаю - кошерно
ли ето будет?
-- 
 С уважением,
 Афанасов Дмитрий

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2005-08-02 10:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 10:22 Afanasov Dmitry [this message]
2005-08-02 12:28 ` Afanasov Dmitry
2005-08-02 12:38 ` Afanasov Dmitry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050802102206.GB27281@nick.comp-mir.ru \
    --to=ender@comp-mir.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git