> Что надо прописать в aliase что бы вся почта, которая > предназначенна для моего сервера, но посланная > несуществующему пользователю автоматически форвардилась на > root'а?????? А с чего ты взял, что оно делается через алиасы?
Вот тебе кусок документации на этот счет:
---CUT---
To do this, a few changes are needed to sendmail's configuration file. Edit /etc/mail/sendmail.cf and look for the lines near the start of the file which read:
# "Smart" relay host (may be null)
DSyour ISP's smart mail host
After this section, insert the following lines:
# place to which unknown users should be forwarded
Kuser user -m -a<>
# deliver mail for unknown users to postmaster locally
DLlocal:postmaster
If you want to deliver mail for unknown users to some user other than postmaster, replace postmaster with the name of the user who should receive such mail. Note that the username specified here must exist as a real Solaris user or must be listed as an alias in the /etc/aliases file. By default, postmaster is an alias for the real user root.
Then look for the section headed:
### Ruleset 5
and, a few lines further on:
# prepend an empty "forward host" on the front
R$+ $: <> $1
Immediately after these two lines, insert the following:
# send unrecognized local users to a relay host
R< > $+ $: < $L . > $(user $1 $) look up user
R< $* > $+ <> $* $: < > $2 $3 found; strip $L
R< $* . > $+ $: < $1 > $2 strip extra dot
господа... у меня к вам маленький вопросик....
:
Что надо прописать в aliase что бы вся почта, которая предназначенна для моего сервера, но посланная несуществующему пользователю автоматически форвардилась на root'а??????
заранее благодарен :))))))
sendmail.. во всех своих проявлениях :)01.03.02 14:27 Автор: _lesha_ <lesha> Статус: Member
> Что надо прописать в aliase что бы вся почта, которая > предназначенна для моего сервера, но посланная > несуществующему пользователю автоматически форвардилась на > root'а?????? А с чего ты взял, что оно делается через алиасы?
Вот тебе кусок документации на этот счет:
---CUT---
To do this, a few changes are needed to sendmail's configuration file. Edit /etc/mail/sendmail.cf and look for the lines near the start of the file which read:
# "Smart" relay host (may be null)
DSyour ISP's smart mail host
After this section, insert the following lines:
# place to which unknown users should be forwarded
Kuser user -m -a<>
# deliver mail for unknown users to postmaster locally
DLlocal:postmaster
If you want to deliver mail for unknown users to some user other than postmaster, replace postmaster with the name of the user who should receive such mail. Note that the username specified here must exist as a real Solaris user or must be listed as an alias in the /etc/aliases file. By default, postmaster is an alias for the real user root.
Then look for the section headed:
### Ruleset 5
and, a few lines further on:
# prepend an empty "forward host" on the front
R$+ $: <> $1
Immediately after these two lines, insert the following:
# send unrecognized local users to a relay host
R< > $+ $: < $L . > $(user $1 $) look up user
R< $* > $+ <> $* $: < > $2 $3 found; strip $L
R< $* . > $+ $: < $1 > $2 strip extra dot