* [Comm] как послать всем письмо?
@ 2003-09-08 12:11 Dmitry Kovalsky
2003-09-08 12:23 ` Leonid B. Sysoletin
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Dmitry Kovalsky @ 2003-09-08 12:11 UTC (permalink / raw)
To: community
Привет
как можно послать письмо всем кто находиться в одном домене ( к примеру
mycompany.com).
На серваке стоит используется Postfix
Дима
E-mail: dikov@imbg.org.ua
Fax: +380 (44) 266-0759
Tel.: +380 (44) 266-5589
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 12:11 [Comm] как послать всем письмо? Dmitry Kovalsky
@ 2003-09-08 12:23 ` Leonid B. Sysoletin
2003-09-08 12:34 ` Andrew Nazarkin
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Leonid B. Sysoletin @ 2003-09-08 12:23 UTC (permalink / raw)
To: community
В сообщении от 8 Сентябрь 2003 16:11 Dmitry Kovalsky написал(a):
> как можно послать письмо всем кто находиться в одном домене ( к примеру
> mycompany.com).
> На серваке стоит используется Postfix
Стандартными средствами, в общем виде - не приведи Г-дь.
--
Л. Сысолетин,
webmaster@unicon-ms.ru, webmaster@bdo.ru
[Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
[Team Я люблю свою фортунку] [Team Фортунка в переписку не вступает]
"Microwave oven? Whaddya mean, it's a microwave oven? I've been watching
Channel 4 on the thing for two weeks."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 12:11 [Comm] как послать всем письмо? Dmitry Kovalsky
2003-09-08 12:23 ` Leonid B. Sysoletin
@ 2003-09-08 12:34 ` Andrew Nazarkin
2003-09-08 12:59 ` Mike Lykov
2003-09-08 13:00 ` ipAlex
3 siblings, 0 replies; 7+ messages in thread
From: Andrew Nazarkin @ 2003-09-08 12:34 UTC (permalink / raw)
To: community
В сообщении от 8 Сентябрь 2003 16:11 Dmitry Kovalsky написал:
> Привет
>
> как можно послать письмо всем кто находиться в одном домене ( к
> примеру mycompany.com).
> На серваке стоит используется Postfix
>
> Дима
А зачем? Спамить собрались? ;-)
/etc/aliases - прописываете туда левого юзера, а после двоеточия - всех
пользователей, которые должны получать письма, посланные этому юзеру.
>
> E-mail: dikov@imbg.org.ua
> Fax: +380 (44) 266-0759
> Tel.: +380 (44) 266-5589
>
>
>
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community
--
With Best Regards
Andrew N. Nazarkin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 12:11 [Comm] как послать всем письмо? Dmitry Kovalsky
2003-09-08 12:23 ` Leonid B. Sysoletin
2003-09-08 12:34 ` Andrew Nazarkin
@ 2003-09-08 12:59 ` Mike Lykov
2003-09-08 13:00 ` ipAlex
3 siblings, 0 replies; 7+ messages in thread
From: Mike Lykov @ 2003-09-08 12:59 UTC (permalink / raw)
To: community
В сообщении от Понедельник 08 Сентябрь 2003 17:11 Dmitry Kovalsky написал:
> как можно послать письмо всем кто находиться в одном домене ( к примеру
> mycompany.com).
> На серваке стоит используется Postfix
поставить сервер рассылок minimalist и всех подписать
--
Mike
registered linux user #315334
jabber id: combr@jabber.ru
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 12:11 [Comm] как послать всем письмо? Dmitry Kovalsky
` (2 preceding siblings ...)
2003-09-08 12:59 ` Mike Lykov
@ 2003-09-08 13:00 ` ipAlex
2003-09-08 14:00 ` Dmitry Kovalsky
3 siblings, 1 reply; 7+ messages in thread
From: ipAlex @ 2003-09-08 13:00 UTC (permalink / raw)
To: community
В сообщении от 8 Сентябрь 2003 15:11 Dmitry Kovalsky написал(a):
> как можно послать письмо всем кто находиться в одном домене ( к примеру
> mycompany.com).
> На серваке стоит используется Postfix
я делаю так:
1) создаю /etc/postfix/maillist-all
cat /etc/passwd | cut -d: -f1,3 | grep [5-9][0-9][0-9] | cut -d: -f1 >
/etc/postfix/maillist-all
2) добавляю в /etc/postfix/aliases
# Maillists aliases
all: :include:/etc/postfix/maillist-all
3) делаю `newaliases`
Чтобы немного автоматизировать сий процесс при добавлении новых юзеров делаю
скриптик и вызываю его после useradd:
$ cat /etc/postfix/maillist-all.add
#!/bin/bash
maillist="/etc/postfix/maillist-all"
if [ -z $1 ]; then
echo "Usage: `basename $0` <username>"
exit;
fi
echo "$1" >> $maillist
echo "Для активизации нового списка maillist-all"
echo "необходимо выполнить команду 'newaliases'"
echo -n "Выполнить команду 'newaliases' сейчас? (Y/n) [Y]"
read CONFIRM
[ -z $CONFIRM ] || [ "$CONFIRM" = "Y" -o "$CONFIRM" = "y" ] && newaliases
Один недостаток: почту всем смогут посылать все юзеры
Если это критично, то придется строку all: в /etc/postfix/aliases держать
закомментированной и включать ее только перед посылкой сообщения и сразу
после этого выключать - соответственно это тоже можно автоматизировать
скриптиком
--
Наилучшие пожелания, Registered .--.
Пирогов Алексей Linux User #293162 |@_@ |
mailto:ipalex@ukr.net |!_/ |
mailto:ipalex@ferplast.com.ua // \ \
(AlekseyPirogov@ferplast.com.ua) (| | )
UIN:172368093 /'\_ _/`\
Powered by Linux \___)=(___/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 13:00 ` ipAlex
@ 2003-09-08 14:00 ` Dmitry Kovalsky
2003-09-08 14:33 ` ipAlex
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Kovalsky @ 2003-09-08 14:00 UTC (permalink / raw)
To: community
Спасибо помогло!
а про то что таким макаром все могут отсылать так мона придумать имя этого
юзера более мутное тогда его хрен кто придумает
Дима
On Monday 08 September 2003 16:00, ipAlex wrote:
> В сообщении от 8 Сентябрь 2003 15:11 Dmitry Kovalsky написал(a):
> > как можно послать письмо всем кто находиться в одном домене ( к примеру
> > mycompany.com).
> > На серваке стоит используется Postfix
>
> я делаю так:
> 1) создаю /etc/postfix/maillist-all
> cat /etc/passwd | cut -d: -f1,3 | grep [5-9][0-9][0-9] | cut -d: -f1 >
> /etc/postfix/maillist-all
>
> 2) добавляю в /etc/postfix/aliases
> # Maillists aliases
> all: :include:/etc/postfix/maillist-all
>
> 3) делаю `newaliases`
>
> Чтобы немного автоматизировать сий процесс при добавлении новых юзеров
> делаю скриптик и вызываю его после useradd:
> $ cat /etc/postfix/maillist-all.add
> #!/bin/bash
> maillist="/etc/postfix/maillist-all"
> if [ -z $1 ]; then
> echo "Usage: `basename $0` <username>"
> exit;
> fi
> echo "$1" >> $maillist
> echo "Для активизации нового списка maillist-all"
> echo "необходимо выполнить команду 'newaliases'"
> echo -n "Выполнить команду 'newaliases' сейчас? (Y/n) [Y]"
> read CONFIRM
> [ -z $CONFIRM ] || [ "$CONFIRM" = "Y" -o "$CONFIRM" = "y" ] && newaliases
>
>
> Один недостаток: почту всем смогут посылать все юзеры
> Если это критично, то придется строку all: в /etc/postfix/aliases держать
> закомментированной и включать ее только перед посылкой сообщения и сразу
> после этого выключать - соответственно это тоже можно автоматизировать
> скриптиком
--
Sincerely yours,
Ph.D. Student Dmytro Kovalskyy
Institute of Molecular Biology & Genetics
150 Akad. Zabolotnogo Street,
Kiev-143, 03143
UKRAINE
E-mail: dikov@imbg.org.ua
Fax: +380 (44) 266-0759
Tel.: +380 (44) 266-5589
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] как послать всем письмо?
2003-09-08 14:00 ` Dmitry Kovalsky
@ 2003-09-08 14:33 ` ipAlex
0 siblings, 0 replies; 7+ messages in thread
From: ipAlex @ 2003-09-08 14:33 UTC (permalink / raw)
To: community
В сообщении от 8 Сентябрь 2003 17:00 Dmitry Kovalsky написал(a):
>
> а про то что таким макаром все могут отсылать так мона придумать имя этого
> юзера более мутное тогда его хрен кто придумает
это не поможет - при получении письма они его увидят в заголовке
--
Наилучшие пожелания, Registered .--.
Пирогов Алексей Linux User #293162 |@_@ |
mailto:ipalex@ukr.net |!_/ |
mailto:ipalex@ferplast.com.ua // \ \
(AlekseyPirogov@ferplast.com.ua) (| | )
UIN:172368093 /'\_ _/`\
Powered by Linux \___)=(___/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-09-08 14:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-08 12:11 [Comm] как послать всем письмо? Dmitry Kovalsky
2003-09-08 12:23 ` Leonid B. Sysoletin
2003-09-08 12:34 ` Andrew Nazarkin
2003-09-08 12:59 ` Mike Lykov
2003-09-08 13:00 ` ipAlex
2003-09-08 14:00 ` Dmitry Kovalsky
2003-09-08 14:33 ` ipAlex
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git