Как указать MTA по умолчанию?

1636
Graslandpinguin

Я пытаюсь использовать функцию MAILTO в crontab на моем mybookworld (это NAS)

Я установил довольно незнакомый (я думаю) MTA: ESMPT

С Mutt (консольный почтовый клиент) он работает отлично. Но в crontab нет реакции (даже если я использую тот же файл crontab, что и на моем настольном компьютере с постфиксом, как MTA). Поэтому подумайте, может быть, система не знает, что ESMTP - это MTA, который можно использовать из crontab.

Как я могу сказать crontab, какой MTA использовать?

0

2 ответа на вопрос

1
grawity

Both Vixie-cron and dcron use the MTA at hardcoded location /usr/sbin/sendmail1. Make sure this points to esmtp.

Also, you may need to configure the relay destination system-wide, in /etc/esmtprc, in order to receive output from system cronjobs (/etc/crontab and /etc/cron.*/). This is not necessary if you only use your own crontab.

1 (Some other programs may be using /usr/lib/sendmail.)

спасибо за попытку, но символические ссылки на / usr / sbin / sendmail, / usr / bin / sendmail и / usr / lib / sendmail у меня не работают :( Graslandpinguin 13 лет назад 0
@Captn: Не могли бы вы уточнить, * на что именно вы ссылаетесь * где *? (Для пояснения, запуск `namei -l / usr / sbin / sendmail` должен указывать на ESMTP, и он должен быть читаемым и исполняемым.) grawity 13 лет назад 0
0
Jonathan Ross

Try installing "ssmtp", it's really easy. Just point it at another MTA like your ISP's. Look for "ssmtp.conf".

Sometimes /etc/sendmail is a link to the default MTA if that's what is more of interest.

Unfortunately ssmtp is not in http://ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable/ | link to /etc/sendmail don't work, too. Graslandpinguin 13 лет назад 0
Sorry, I mixed up my Linux flavours a bit there. In qmail on Gentoo there's this symbolic link to boost qmail's sendmail compatibilities: /usr/sbin/sendmail -> /var/qmail/bin/sendmail Jonathan Ross 13 лет назад 0
Here's a link to a SSMTP tutorial. If you can install it and have another mail box to point at (like your ISP's) it'll take two minutes to get running (if you're testing from the command line also install "mailx" or "mail" and type something like "mailx -s "Testing 1,2,3" me@me.com < /dev/null". http://www.linux.com/archive/feature/132006 Jonathan Ross 13 лет назад 0

Похожие вопросы