Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Sergey A. Gontar                     2:5020/400     13 Feb 2004  14:54:45
 To : Arthur Veles
 Subject : Re: Sendmail - проверить домен отправителя
 -------------------------------------------------------------------------------- 
 
 
 
 > Сейчас можно отправить почту только из внутренней сетки, т.е. сервер не
 > является "открытым релеем", но в качестве
 > адреса отправителя можно подставить кого-попало.
 
 FEATURE(`relay_mail_from') не поможет?
 
 relay_mail_from
         Allows relaying if the mail sender is listed as RELAY in
         the access map.  If an optional argument `domain' is given,
         relaying can be allowed just based on the domain portion
         of the sender address.  This feature should only be used if
         absolutely necessary as the sender address can be easily
         forged.  Use of this feature requires the "From:" tag to
         be used for the key in the access map; see the discussion
         of tags and FEATURE(`relay_mail_from') in the section on
         anti-spam configuration control.
 
 А для автоматизации процесса мона еще скриптик по крону пускать:
 =============================================================
 WORKDIR=/etc/mail
 ACCESSFILE=access           #сюда генерим базу
 TEMPLATEFILE=access.tpl     #здесь стандартные определения для access
 DEFAULTDOMAIN=your.domain.com
 
 cat $WORKDIR/$TEMPLATEFILE > $WORKDIR/$ACCESSFILE
 
 cat /etc/passwd | cut -d ":" -f 1,3|tr ":" " "|\
 (while read NAME NUMBER ; do
      if [ $NUMBER -gt 499 ]; then  #у меня UID-ы юзеров начинаются с 500
          echo "From:$NAME@$DEFAULTDOMAIN  RELAY" >> $WORKDIR/$ACCESSFILE
      fi
 done
 
 makemap hash $WORKDIR/access.db < $WORKDIR/$ACCESSFILE
 =============================================================
 --- ifmail v.2.15dev5.3
  * Origin: POE NewsServer (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Sendmail - проверить домен отправителя   Arthur Veles   05 Feb 2004 14:52:01 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   05 Feb 2004 17:24:13 
 Re: Sendmail - проверить домен отправителя   Arthur Veles   05 Feb 2004 17:55:54 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   06 Feb 2004 00:40:55 
 Re: Sendmail - проверить домен отправителя   Arthur Veles   06 Feb 2004 11:15:31 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   07 Feb 2004 12:37:21 
 Re: Sendmail - проверить домен отправителя   Arthur Veles   06 Feb 2004 12:21:12 
 Re: Sendmail - проверить домен отправителя   Serge Pekarsky   06 Feb 2004 15:49:53 
 Re: Sendmail - проверить домен отправителя   Arthur Veles   06 Feb 2004 17:00:37 
 Re: Sendmail - проверить домен отправителя   Lev Walkin   07 Feb 2004 06:54:45 
 Sendmail - проверить домен отправителя   Andrey Ostanovsky   13 Feb 2004 09:37:34 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   07 Feb 2004 12:24:11 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   07 Feb 2004 12:23:10 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   07 Feb 2004 12:37:21 
 Re: Sendmail - проверить домен отправителя   Demin Alexander   09 Feb 2004 11:13:48 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   10 Feb 2004 12:03:22 
 Re: Sendmail - проверить домен отправителя   Arthur Veles   09 Feb 2004 11:49:37 
 Re: Sendmail - проверить домен отправителя   Sergey A. Gontar   13 Feb 2004 14:54:45 
 Re: Sendmail - проверить домен отправителя   Valentin Nechayev   14 Feb 2004 11:23:50 
Архивное /ru.unix.bsd/164664d6983a8.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional