ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Рассылка
Date: Sat, 20 Feb 2010 17:21:16 +0200
Message-ID: <20100220152116.GX18188@osdn.org.ua> (raw)
In-Reply-To: <4B7FCBE8.8010802@sbor.net>

On Sat, Feb 20, 2010 at 02:47:52PM +0300, Xakka wrote:
> Необходими в корпоративной сети осуществить рассылку паролей по
> электронной почте.  Имеется файл с структурой:
> email    login    pass
> длинной в 500 строк.  Каким иструментом поспользоватся для
> рассылки ?  Почтовый сервер postfix.

Что-то вроде

while read email login pass; do
	echo -e "login: $login\npassword: $pass" \
	| mail -s "your password" "$email"
done < file.txt

Только лучше проверить сперва на тестовом файле из пары строк
со своим адресом, ну и может возникнуть желание вместо mail(1)
использовать nail(1) либо чуток настроенный (set from) mutt(1).

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      parent reply	other threads:[~2010-02-20 15:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-20 11:47 Xakka
2010-02-20 13:09 ` Anton Farygin
2010-02-20 15:21 ` Michael Shigorin [this message]

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=20100220152116.GX18188@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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