亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2700 | 回復(fù): 5
打印 上一主題 下一主題

設(shè)置corn通知郵件,不生效的原因 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-03-10 21:32 |只看該作者 |倒序瀏覽
請教各位大俠:

[root@myhost1 log]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=testHOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
You have new mail in /var/spool/mail/root
[root@myhost1 log]#
[root@myhost1 log]# /etc/init.d/crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]
[root@myhost1 log]#

測試 test用戶可以正常接收root賬號的郵件

/var/log/cron

Jan 27 06:39:40 myhost1 anacron[1921]: Job `cron.weekly' terminated
Jan 27 06:39:40 myhost1 anacron[1921]: Job `cron.monthly' started
Jan 27 06:39:40 myhost1 anacron[1921]: Job `cron.monthly' terminated
Jan 27 06:39:40 myhost1 anacron[1921]: Normal exit (3 jobs run)
Jan 27 06:40:01 myhost1 crond[2291]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:41:01 myhost1 crond[2303]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:42:01 myhost1 crond[2343]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:43:01 myhost1 crond[2355]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:44:01 myhost1 crond[2367]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:45:01 myhost1 crond[2378]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:46:01 myhost1 crond[2390]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:47:01 myhost1 crond[2401]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:48:01 myhost1 crond[2413]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:49:01 myhost1 crond[2425]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:50:01 myhost1 crond[2436]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:51:01 myhost1 crond[2448]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:52:01 myhost1 crond[2459]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:53:01 myhost1 crond[2471]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:54:01 myhost1 crond[2483]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:55:01 myhost1 crond[2523]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:56:01 myhost1 crond[2535]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:57:01 myhost1 crond[2546]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:58:01 myhost1 crond[2558]: (root) CMD (/bin/mail -s "this is success" tina)
Jan 27 06:59:01 myhost1 crond[2570]: (root) CMD (/bin/mail -s "this is success" tina)

有STDOUT的也有STDERROR的,但是test用戶都無法接收到通知郵件,系統(tǒng)會把郵件發(fā)送到root
U2685 root@myhost1.org      Thu Jan 27 17:07  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2686 root@myhost1.org      Thu Jan 27 17:07  24/843   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
U2687 root@myhost1.org      Thu Jan 27 17:10  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2688 root@myhost1.org      Thu Jan 27 17:10  24/843   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
U2689 root@myhost1.org      Thu Jan 27 17:11  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2690 root@myhost1.org      Thu Jan 27 17:12  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2691 root@myhost1.org      Thu Jan 27 17:12  24/843   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
U2692 root@myhost1.org      Thu Jan 27 17:13  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2693 root@myhost1.org      Thu Jan 27 17:13  24/843   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
U2694 root@myhost1.org      Thu Jan 27 17:14  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
U2695 root@myhost1.org      Thu Jan 27 17:14  24/843   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
U2696 root@myhost1.org      Thu Jan 27 17:15  24/856   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
>N2697 root@myhost1.org      Thu Jan 27 17:15  23/833   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
N2698 root@myhost1.org      Thu Jan 27 17:16  23/846   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
N2699 root@myhost1.org      Thu Jan 27 17:16  23/833   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
N2700 root@myhost1.org      Thu Jan 27 17:17  23/846   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
N2701 root@myhost1.org      Thu Jan 27 17:17  23/833   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
N2702 root@myhost1.org      Thu Jan 27 17:18  23/846   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
N2703 root@myhost1.org      Thu Jan 27 17:18  23/833   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
N2704 root@myhost1.org      Thu Jan 27 17:19  23/846   "Cron <root@myhost1> /bin/test -s "this is success" tina1"
N2705 root@myhost1.org      Thu Jan 27 17:19  23/833   "Cron <root@myhost1> /bin/mail -s "this is success" tina"
N2706 root@myhost1.org      Thu Jan 27 17:20  23/846   "Cron <root@myhost1> /bin/test -s "this is success" tina1"

/var/log/maillog沒有test賬號的通信記錄


請教各位大俠,往下我該如何進行調(diào)查呢

論壇徽章:
0
2 [報告]
發(fā)表于 2011-03-10 21:48 |只看該作者
回復(fù) 1# qmailer


    test@。。。。    寫完整呢?

    或做個alias

論壇徽章:
0
3 [報告]
發(fā)表于 2011-03-10 21:55 |只看該作者
本帖最后由 qmailer 于 2011-03-10 22:02 編輯

感謝回復(fù),測試過了,寫完整也不行

如何做alias??

論壇徽章:
9
2015亞冠之阿爾納斯?fàn)?日期:2015-09-10 16:21:162015亞冠之塔什干火車頭
日期:2015-07-01 16:23:022015年亞洲杯之巴勒斯坦
日期:2015-04-20 17:19:46子鼠
日期:2014-11-13 09:51:26未羊
日期:2014-08-28 18:13:36技術(shù)圖書徽章
日期:2014-02-21 09:30:15酉雞
日期:2014-01-14 11:12:49天蝎座
日期:2013-12-09 17:56:53平安夜徽章
日期:2015-12-26 00:06:30
4 [報告]
發(fā)表于 2011-03-11 09:56 |只看該作者
回復(fù) 3# qmailer


  修改 /etc/aliases

論壇徽章:
0
5 [報告]
發(fā)表于 2011-03-22 18:31 |只看該作者
為什么修改這個文件? 如何修改?

論壇徽章:
0
6 [報告]
發(fā)表于 2011-03-22 18:44 |只看該作者
回復(fù) 5# qmailer


    root: ***@ .com
  
    里面加是為了郵件轉(zhuǎn)發(fā)給別的帳戶
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP