local mail setup to debug root cron jobs on debian
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running the following setup:
beaglebone black [wireless version - 4.9.82-ti-r102 #1 SMP PREEMPT] -- running debian 9.3 stretch.
I've attempted to install the latest postfix mail server -- just so
I can read the debug messages from cron.
I notice that the mailque is full of emails to
root@beaglebone.localdomain.
Yet, if I try to:
> sudo mail
I get :
no mail for root
Question:
What should my root email address be ?
Obviously not root@beaglebone.localdomain!
Is there something wrong with either my postfix conf or the contab?
My /etc/postfix/main.cf looks like this:
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
relayhost =
The root contrab looks like this:
MAILTO="root@beaglebone.localdomain"
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
5,35 * * * * cd /home/debian/bbbwifilogger/ && Rscript /home/debian/bbbwifilogger/graph.R &>/home/debian/bbbwifilogger/cron.log
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/moist.png /var/www/html/
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/tdegc.png /var/www/html/
7,37 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/dnlddata.zip /var/www/html/
3,33 * * * * /etc/init.d/networking restart
10,40 * * * * /usr/sbin/rtcwake -m mem -u -t $(date +%s -d "20 minutes") >> /home/debian/bbbwifilogger/bbblogger.log 2>&1
Thanks in advance for your advice.
debian cron postfix
add a comment |Â
up vote
0
down vote
favorite
I'm running the following setup:
beaglebone black [wireless version - 4.9.82-ti-r102 #1 SMP PREEMPT] -- running debian 9.3 stretch.
I've attempted to install the latest postfix mail server -- just so
I can read the debug messages from cron.
I notice that the mailque is full of emails to
root@beaglebone.localdomain.
Yet, if I try to:
> sudo mail
I get :
no mail for root
Question:
What should my root email address be ?
Obviously not root@beaglebone.localdomain!
Is there something wrong with either my postfix conf or the contab?
My /etc/postfix/main.cf looks like this:
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
relayhost =
The root contrab looks like this:
MAILTO="root@beaglebone.localdomain"
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
5,35 * * * * cd /home/debian/bbbwifilogger/ && Rscript /home/debian/bbbwifilogger/graph.R &>/home/debian/bbbwifilogger/cron.log
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/moist.png /var/www/html/
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/tdegc.png /var/www/html/
7,37 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/dnlddata.zip /var/www/html/
3,33 * * * * /etc/init.d/networking restart
10,40 * * * * /usr/sbin/rtcwake -m mem -u -t $(date +%s -d "20 minutes") >> /home/debian/bbbwifilogger/bbblogger.log 2>&1
Thanks in advance for your advice.
debian cron postfix
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running the following setup:
beaglebone black [wireless version - 4.9.82-ti-r102 #1 SMP PREEMPT] -- running debian 9.3 stretch.
I've attempted to install the latest postfix mail server -- just so
I can read the debug messages from cron.
I notice that the mailque is full of emails to
root@beaglebone.localdomain.
Yet, if I try to:
> sudo mail
I get :
no mail for root
Question:
What should my root email address be ?
Obviously not root@beaglebone.localdomain!
Is there something wrong with either my postfix conf or the contab?
My /etc/postfix/main.cf looks like this:
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
relayhost =
The root contrab looks like this:
MAILTO="root@beaglebone.localdomain"
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
5,35 * * * * cd /home/debian/bbbwifilogger/ && Rscript /home/debian/bbbwifilogger/graph.R &>/home/debian/bbbwifilogger/cron.log
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/moist.png /var/www/html/
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/tdegc.png /var/www/html/
7,37 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/dnlddata.zip /var/www/html/
3,33 * * * * /etc/init.d/networking restart
10,40 * * * * /usr/sbin/rtcwake -m mem -u -t $(date +%s -d "20 minutes") >> /home/debian/bbbwifilogger/bbblogger.log 2>&1
Thanks in advance for your advice.
debian cron postfix
I'm running the following setup:
beaglebone black [wireless version - 4.9.82-ti-r102 #1 SMP PREEMPT] -- running debian 9.3 stretch.
I've attempted to install the latest postfix mail server -- just so
I can read the debug messages from cron.
I notice that the mailque is full of emails to
root@beaglebone.localdomain.
Yet, if I try to:
> sudo mail
I get :
no mail for root
Question:
What should my root email address be ?
Obviously not root@beaglebone.localdomain!
Is there something wrong with either my postfix conf or the contab?
My /etc/postfix/main.cf looks like this:
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
relayhost =
The root contrab looks like this:
MAILTO="root@beaglebone.localdomain"
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
5,35 * * * * cd /home/debian/bbbwifilogger/ && Rscript /home/debian/bbbwifilogger/graph.R &>/home/debian/bbbwifilogger/cron.log
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/moist.png /var/www/html/
6,36 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/tdegc.png /var/www/html/
7,37 * * * * cd /home/debian/bbbwifilogger/ && cp /home/debian/bbbwifilogger/dnlddata.zip /var/www/html/
3,33 * * * * /etc/init.d/networking restart
10,40 * * * * /usr/sbin/rtcwake -m mem -u -t $(date +%s -d "20 minutes") >> /home/debian/bbbwifilogger/bbblogger.log 2>&1
Thanks in advance for your advice.
debian cron postfix
debian cron postfix
asked Aug 20 at 2:24
user2449710
1
1
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
To avoid mailbox full issue just increase email box size or rotate the mailbox.
/etc/postfix/main.cf:
message_size_limit = 31457280
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To avoid mailbox full issue just increase email box size or rotate the mailbox.
/etc/postfix/main.cf:
message_size_limit = 31457280
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
add a comment |Â
up vote
0
down vote
To avoid mailbox full issue just increase email box size or rotate the mailbox.
/etc/postfix/main.cf:
message_size_limit = 31457280
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
add a comment |Â
up vote
0
down vote
up vote
0
down vote
To avoid mailbox full issue just increase email box size or rotate the mailbox.
/etc/postfix/main.cf:
message_size_limit = 31457280
To avoid mailbox full issue just increase email box size or rotate the mailbox.
/etc/postfix/main.cf:
message_size_limit = 31457280
edited Aug 20 at 6:23
answered Aug 20 at 6:04
EBIN GLADSON
776
776
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
add a comment |Â
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
Sorry Ebin, as indicated, I am trying to send the email to a local email address -- ie on the machine. The machine is not always connected to the internet. As you can see from the config files, I've attempted to configure this. You can also see that I have set the MAILTO in crontab.
â user2449710
Aug 20 at 6:17
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
@user2449710 please see my update answer.
â EBIN GLADSON
Aug 20 at 6:24
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
Hi Ebin, I don't think I have a mailbox full issue. It's just not being directed to the correct address.
â user2449710
Aug 21 at 2:23
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f463556%2flocal-mail-setup-to-debug-root-cron-jobs-on-debian%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password