periodic daily Root Mails

Hello,

I haven't received regular daily root mails for some time now. What is the best way to identify the issue?

/etc/mail/virtuals
Code:
root info@mydomain.com

/etc/crontab
Code:
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD$
#
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
#
#minute hour    mday    month   wday    who     command
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11    *       *       *       *       operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0       *       *       *       *       root    newsyslog
#
# Perform daily/weekly/monthly maintenance.
1       3       *       *       *       root    periodic daily
15      4       *       *       6       root    periodic weekly
30      5       1       *       *       root    periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
1,31    0-5     *       *       *       root    adjkerntz -a

As Mailserver i use:
- OpenSMTPd
- Dovecot

Many thanks for any Idea.
 
did you look in places like /var/spool/mqueue or /var/spool/clientmqueue for temp files?
How about looking at log files for failures?
 
did you look in places like /var/spool/mqueue or /var/spool/clientmqueue for temp files?
How about looking at log files for failures?
Hello,
/var/spool/mqueue and /clientmqueue empty

/log/cron:

Code:
Jul 27 03:00:00 server /usr/sbin/cron[45409]: (operator) CMD (/usr/libexec/save-entropy)
Jul 27 03:00:00 server /usr/sbin/cron[45408]: (root) CMD (newsyslog)
Jul 27 03:00:00 server /usr/sbin/cron[45410]: (root) CMD (/usr/libexec/atrun)
Jul 27 03:01:00 server /usr/sbin/cron[45419]: (root) CMD (adjkerntz -a)
Jul 27 03:01:00 server /usr/sbin/cron[45420]: (root) CMD (periodic daily)
Jul 27 03:05:00 server /usr/sbin/cron[45763]: (root) CMD (/usr/libexec/atrun)
Jul 27 03:10:00 server /usr/sbin/cron[45775]: (root) CMD (/usr/libexec/atrun)
Jul 27 03:11:00 server /usr/sbin/cron[45777]: (operator) CMD (/usr/libexec/save-entropy)

Any Ideas..? Thx
 
Did you fix /etc/mail/mailer.conf?
hm... atm i have this config..:


Code:
# $FreeBSD$
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
# If dma(8) is installed, an example mailer.conf that uses dma(8) instead can
# can be found in /usr/share/examples/dma.
#
sendmail        /usr/libexec/sendmail/sendmail
mailq           /usr/libexec/sendmail/sendmail
newaliases      /usr/libexec/sendmail/sendmail
hoststat        /usr/libexec/sendmail/sendmail
purgestat       /usr/libexec/sendmail/sendmail

should be like this one?:

Code:
sendmail /usr/local/sbin/smtpctl
send-mail /usr/local/sbin/smtpctl
mailq /usr/local/sbin/smtpctl
makemap /usr/local/libexec/opensmtpd/makemap
newaliases /usr/local/libexec/opensmtpd/makemap
 
That looks correct.

Cron uses /usr/sbin/sendmail, which is a symlink to mailwrapper(8). That in turn switches to the correct executable based on the information in /etc/mail/mailer.conf.
Hello, i have fixed /etc/mail/mailer.conf but don't became any reports on mail. What can i next to do?
 
Check the logs of the mailserver to see if anything actually got received and/or sent. Maybe it's stuck in the queue, maybe cron never sent anything.
 
Check the logs of the mailserver to see if anything actually got received and/or sent. Maybe it's stuck in the queue, maybe cron never sent anything.
hm... also, queue is empty

but in /var/log/maillog i see the same, strange patern "from=<> to=<root@server"
What could it be?


Code:
Jul 28 12:34:12 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=aa2d8976 size=46816 nrcpt=1 proto=ESMTP
Jul 28 12:34:12 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=aa2d89762415ec40 from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:12 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=926efb23d0e24154 from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=3s result="Ok" stat="250 2.0.0 aa2d8976
Jul 28 12:34:12 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=783dc67e size=47051 nrcpt=1 proto=ESMTP
Jul 28 12:34:12 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=783dc67ec645df4f from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:12 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=aa2d89762415ec40 from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=0s result="Ok" stat="250 2.0.0 783dc67e
Jul 28 12:34:15 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=d52eb883 size=47286 nrcpt=1 proto=ESMTP
Jul 28 12:34:15 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=d52eb88363dcd0b9 from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:15 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=783dc67ec645df4f from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=3s result="Ok" stat="250 2.0.0 d52eb883
Jul 28 12:34:16 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=e310a8f5 size=47521 nrcpt=1 proto=ESMTP
Jul 28 12:34:16 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=e310a8f5e980230c from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:16 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=d52eb88363dcd0b9 from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=3s result="Ok" stat="250 2.0.0 e310a8f5
Jul 28 12:34:19 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=a7487d0f size=47756 nrcpt=1 proto=ESMTP
Jul 28 12:34:19 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=a7487d0fc7e4a184 from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:19 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=e310a8f5e980230c from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=3s result="Ok" stat="250 2.0.0 a7487d0f
Jul 28 12:34:19 server smtpd[2293]: 023153bae8c66587 smtp authentication user=technicom12 result=permfail
Jul 28 12:34:20 server smtpd[2293]: 023153ae73a5e7e0 smtp message msgid=bd810732 size=47991 nrcpt=1 proto=ESMTP
Jul 28 12:34:20 server smtpd[2293]: 023153ae73a5e7e0 smtp envelope evpid=bd810732398b1ca4 from=<> to=<root@server.#DOMAIN#.com>
Jul 28 12:34:20 server smtpd[2293]: 023153adeda1c463 mta delivery evpid=a7487d0fc7e4a184 from=<> to=<root@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=3s result="Ok" stat="250 2.0.0 bd810732
 
Empty 'from' might indicate a delivery status email, those typically happen when mail gets bounced. It's also possible your mail server isn't configured correctly to handle locally submitted mail.

Try sending yourself an email from the command line using the mail(1) command. And check your mail logs to see what happens to it.

(moving this to "web and network services" because I think this issue is related to the mail server configuration)
 
Empty 'from' might indicate a delivery status email, those typically happen when mail gets bounced. It's also possible your mail server isn't configured correctly to handle locally submitted mail.

Try sending yourself an email from the command line using the mail(1) command. And check your mail logs to see what happens to it.

(moving this to "web and network services" because I think this issue is related to the mail server configuration)

Thank you - i tried to send local mail and now the same patern repeats many times /var/log/maillog:
Code:
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp message msgid=ee7933fc size=46535 nrcpt=1 proto=ESMTP
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp envelope evpid=ee7933fc9d3164ce from=<> to=<myuser@server.#DOMAIN#.com>
Jul 28 13:18:14 server smtpd[2293]: 023154b46881e95d mta delivery evpid=b3f04089b369b21f from=<> to=<myuser@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=1s result="Ok" stat="250 2.0.0 ee7933fc Message accepted for delivery"
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp message msgid=17e2b109 size=46772 nrcpt=1 proto=ESMTP
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp envelope evpid=17e2b109f16b6284 from=<> to=<myuser@server.#DOMAIN#.com>
Jul 28 13:18:14 server smtpd[2293]: 023154b46881e95d mta delivery evpid=ee7933fc9d3164ce from=<> to=<myuser@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=0s result="Ok" stat="250 2.0.0 17e2b109 Message accepted for delivery"
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp message msgid=00bbe693 size=47009 nrcpt=1 proto=ESMTP
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp envelope evpid=00bbe6935f7ce15b from=<> to=<myuser@server.#DOMAIN#.com>
Jul 28 13:18:14 server smtpd[2293]: 023154b46881e95d mta delivery evpid=17e2b109f16b6284 from=<> to=<myuser@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=0s result="Ok" stat="250 2.0.0 00bbe693 Message accepted for delivery"
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp message msgid=b5437b1f size=47246 nrcpt=1 proto=ESMTP
Jul 28 13:18:14 server smtpd[2293]: 023154b585dcc8f4 smtp envelope evpid=b5437b1f4966f9cb from=<> to=<myuser@server.#DOMAIN#.com>
Jul 28 13:18:14 server smtpd[2293]: 023154b46881e95d mta delivery evpid=00bbe6935f7ce15b from=<> to=<myuser@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=0s result="Ok" stat="250 2.0.0 b5437b1f Message accepted for delivery"
Jul 28 13:18:15 server smtpd[2293]: 023154b585dcc8f4 smtp message msgid=b56861eb size=47483 nrcpt=1 proto=ESMTP
Jul 28 13:18:15 server smtpd[2293]: 023154b585dcc8f4 smtp envelope evpid=b56861eb804db132 from=<> to=<myuser@server.#DOMAIN#.com>
Jul 28 13:18:15 server smtpd[2293]: 023154b46881e95d mta delivery evpid=b5437b1f4966f9cb from=<> to=<myuser@server.#DOMAIN#.com> rcpt=<-> source="xxx.xxx.xxx.78" relay="xxx.xxx.xxx.78 (server.#DOMAIN#.com)" delay=1s result="Ok" stat="250 2.0.0 b56861eb Message accepted for deliv

/etc/hosts:
Code:
::1                     localhost localhost.server.#DOMAIN#.com
127.0.0.1               localhost localhost.server.#DOMAIN#.com

in /etc/mail/domains not hostname "server.#DOMAIN#.com" only "#DOMAIN#.com" - is it right?
/etc/mail/domains:
Code:
#DOMAIN#.com
 
Back
Top