Skip to main content

Thread: mail and crontab


to start i'm new ubuntu , working in linux. in short, i'm trying email notification working through crontab running backup script plone.
i'm working off ubuntu 12.1 install.
story far.
setup thunderbird email connect companies exchange network using normal company email.
added mailto directive crontab : mailto=jreed@lfinance.ca, directive prior crontab directive , on seperate line.
did not work , wouldn't throw event mail.log or mail.err
did research , lead me installing postfix. when setup postfix gave me series of options of selected satellite sounded pertinent situation.
amended crontab read as:

# mailto=jreed@lfinance.ca
41 * * * * ../../usr/local/plone/zeocluster/bin/backup >> ../../usr/local/plone/zeocluster/var/backups/cron.log 2>&1 mail -s 'backup confirmation' jreed@lfinance.ca


the time set run after saved current job, changed later.
gave me log entry as:



apr 24 11:41:02 plone postfix/pickup[14988]: d5c98a20350: uid=0 from=<root>
apr 24 11:41:02 plone postfix/cleanup[15280]: d5c98a20350: message-id=<20130424184102.d5c98a20350@plone>
apr 24 11:41:02 plone postfix/qmgr[14989]: d5c98a20350: from=<root@lfinance.ca>, size=653, nrcpt=1 (queue active)
apr 24 11:41:02 plone postfix/local[15284]: d5c98a20350: to=<root@lfinance.ca>, orig_to=<root>, relay=local, delay=0.27, delays=0.23/0/0/0.03, dsn=2.0.0, status=sent (delivered mailbox)
apr 24 11:41:02 plone postfix/qmgr[14989]: d5c98a20350: removed



i guess i'm not sure going down here, , why sending root@ instead of jreed@
i'm guessing have setup postfix erroneously, not sure how correct , work current situation.
appreciated!

anyone have info or link on how setup postfix situation this?
fyi, email domain have here has been altered...


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] mail and crontab


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP