Добрый день
Попробовал осуществить изложенное в статье http://www.opennet.me/docs/RUS/sendmail_copy/index.html
копирование почты, но столкнулся с трудностью# /usr/sbin/sendmail -bd -C /etc/mail/sendmail.copy.cf
554 5.0.0 /etc/mail/sendmail.copy.cf: line 915: replacement $4 out of boundsвот copymail.m4
LOCAL_RULE_0
# Send all mail (except $={NOCOPY}) to copymail mailer
R$* < @ $+ . > $* $: $1 < @ $2 . > $3 $| $1 @ $2
R$* < @ $+ . > $* $| $={NOCOPY} $@ $1 <@ $2 . > $3
R$* < @ $+ . > $* $| $* $: $1 <@ $2 . > $3 $| $&{client_addr}
R$* < @ $+ . > $* $| $={NOCOPY} $@ $1 <@ $2 . > $3
R$* < @ $+ . > $* $| $* $: $1 <@ $2 . > $3 $| $&f
R$* < @ $+ . > $* $| $: $1 <@ $2 . > $3 $| $4 - вот эта четверка
R$* < @ $+ . > $* $| $={NOCOPY} $@ $1 <@ $2 . > $3
R$* < @ $+ . > $* $| $* $#copymail $@ localhost $: $1 < @ $2 . > $3
и никак не могу понять в чем дело, откуда неизвестная четверка и что
делать если ее не понимают, опечатка ли это, либо что то у меня
не работает так как нужно...
Буду весьма благодарен за пояснениеICQ: 222718169
приведи sendmail.copy.mc
>приведи sendmail.copy.mc
с этим вроде разобрался, но вот вроде заработало, но сыпяться мне паралельно с сообщениями такое вотThe original message was received at Wed, 6 Apr 2005 17:55:50 +0300 (EEST)
from localhost
with id j36EtoGo000473----- The following addresses had permanent fatal errors -----
<opennet@periscope.opennet.ru>----- Transcript of session follows -----
NOCOPY_CONFIG: line 0: cannot open: No such file or directory
554 5.3.5 System file missing
хотя в sendmail.copy.mcdivert(0)dnl
VERSIONID(`$Id: generic-bsd4.4.mc,v 1.1.1.2.6.1 2000/08/27 17:31:00 gshapiro Exp $')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
define('COPYMAIL_MAILBOX',xxi_post@xxi-vek.com.ua')
define('NOCOPY_CONFIG','/etc/mail/sendmail.cf')
define('NOCOPY_USERS','-o /etc/mail/nocopy_users')
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(copymail)
помимо этих сообщений параллельно с входящей почтой при попытке отправить почту с клиента локальной сети ошибка Relaying denied. IPname lookup failed. релэй на локалхост открыт, и на локалку тоже, в файл lokal-host-names внес домен.
# killall sendmail
Press any key to continue...# killall sendmail
No matching processes were found
Press any key to continue...# /usr/sbin/sendmail -bd -C /etc/mail/sendmail.copy.cf
Press any key to continue...# /usr/sbin/sendmail -q30m -C /etc/mail/sendmail.cf
Press any key to continue...# /usr/sbin/sendmail -bt -C /etc/mail/sendmail.copy.cf
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> $={NOCOPY}
pupkin@pupkin.ru
> 3,0 andrew@xxi-vek.com.ua
canonify input: andrew @ xxi-vek . com . ua
Canonify2 input: andrew < @ xxi-vek . com . ua >
Canonify2 returns: andrew < @ xxi-vek . com . ua . >
canonify returns: andrew < @ xxi-vek . com . ua . >
parse input: andrew < @ xxi-vek . com . ua . >
Parse0 input: andrew < @ xxi-vek . com . ua . >
Parse0 returns: andrew < @ xxi-vek . com . ua . >
ParseLocal input: andrew < @ xxi-vek . com . ua . >
ParseLocal returns: $# copymail $@ localhost $: andrew < @ xxi-vek . com . ua . >
parse returns: $# copymail $@ localhost $: andrew < @ xxi-vek . com . ua . >
> nikolaevec@ukr.net
No address!
> 3,0 nikolaevec@ukr.net
canonify input: nikolaevec @ ukr . net
Canonify2 input: nikolaevec < @ ukr . net >
Canonify2 returns: nikolaevec < @ ukr . net . >
canonify returns: nikolaevec < @ ukr . net . >
parse input: nikolaevec < @ ukr . net . >
Parse0 input: nikolaevec < @ ukr . net . >
Parse0 returns: nikolaevec < @ ukr . net . >
ParseLocal input: nikolaevec < @ ukr . net . >
ParseLocal returns: $# copymail $@ localhost $: nikolaevec < @ ukr . net . >
parse returns: $# copymail $@ localhost $: nikolaevec < @ ukr . net . >
> 3,0 andrew@xxi-vek.com.ua.COPYMAIL
canonify input: andrew @ xxi-vek . com . ua . COPYMAIL
Canonify2 input: andrew < @ xxi-vek . com . ua . COPYMAIL >
Canonify2 returns: andrew < @ xxi-vek . com . ua . COPYMAIL >
canonify returns: andrew < @ xxi-vek . com . ua . COPYMAIL >
parse input: andrew < @ xxi-vek . com . ua . COPYMAIL >
Parse0 input: andrew < @ xxi-vek . com . ua . COPYMAIL >
Parse0 returns: andrew < @ xxi-vek . com . ua . COPYMAIL >
ParseLocal input: andrew < @ xxi-vek . com . ua . COPYMAIL >
ParseLocal returns: andrew < @ xxi-vek . com . ua . COPYMAIL >
Parse1 input: andrew < @ xxi-vek . com . ua . COPYMAIL >
MailerToTriple input: < > andrew < @ xxi-vek . com . ua . COPYMAIL >
MailerToTriple returns: andrew < @ xxi-vek . com . ua . COPYMAIL >
Parse1 returns: $# esmtp $@ xxi-vek . com . ua . COPYMAIL $: andrew < @ xxi-vek . com . ua . COPYMAIL >
parse returns: $# esmtp $@ xxi-vek . com . ua . COPYMAIL $: andrew < @ xxi-vek . com . ua . COPYMAIL >
>xxi-vek.com.ua - мой домен
вобщем почему то sendmail 2 не может прочитать NOCOPY_CONFIG, пробовал даже sendmail.cf копировать в sendmail2.cf и все равно, выставил полные разрешения на этот файл... вся почта стопориться, и лишь при перезапуске sendmail в нормальном режиме приходит вся перехваченная почта на postmaster@mydomen.ru , но тому кому она была адресована не приходит...
в чем дело?