URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 26348
[ Назад ]

Исходное сообщение
"Ошибка m4 -> NONE:0: m4: ERROR: EOF in string"

Отправлено vasily , 12-Фев-03 14:06 
hi all !

поставил sendmail из rpm (os RedHat7.2)
пытаюсь прикрутить poprelay (http://poprelay.sourceforge.net)
положил poprelay.m4 в /usr/share/sendmail-cf/hack такого содержания:
--------- cut ------------
divert(0)
# List of IP addresses we allow relaying from.
Klocalip hash -a<MATCH> /etc/mail/access
Kpopip hash  -a<MATCH> /etc/mail/popip


LOCAL_RULESETS

SLocal_check_rcpt
# Put the address into cannonical form (even if it doesn't resolve to an MX).
R$*                     $: $>Parse0 $>3 $1
R$* < $* > $*           $: $1 < $2 . > $3                               Pretend it's canonical.
R$* < $* . . > $*       $1 < $2 . > $3                                  Remove extra dots.

# Allow relaying if the connected host is a local IP address.
R$*                     $: < $&{client_addr} >                  Get client IP address.
R<>                     $#OK                                    Local is ok.
R< $* . $- > $*         $(localip $1.$2 $: < $1 > . $2 $)       Check last three octets.
R$* < MATCH >           $#OK
R< $- > $*              $: $(localip $1 $: < > $1 $2 $)         Check first octet.
R$* < MATCH >           $#OK

# Allow relaying if the connected host has recently POP3 authenticated.
R$*                     $: < $&{client_addr} >                  Get client IP address.
R< $* >                 $(popip $1 $)                           Check full address.
R$* < MATCH >           $#OK

# IP address didn't match.
--------- cut ------------
добавил в конец /etc/mail/sendmail.mc такую строчку
HACK(`poprelay`)dnl
и запустил m4 sendmail.mc > sendmail.cf
а он мне и говорит, что у меня типо:
NONE:0: m4: ERROR: EOF in string

и что это значит ? где ошибка в poprelay.m4 или в sendmail.mc ?

с уважением,
вася


Содержание

Сообщения в этом обсуждении