Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    32

    Default Sending the e-mail statistics to an e-mail address

    Hello!
    How can I configure my Exim to send the E-mail Statistics (Main >> Email >> View Mail Statistics) to an e-mail address?
    Thank you!

  2. #2
    Member
    Join Date
    Jul 2009
    Posts
    6

    Default

    Quote Originally Posted by ronaldoo View Post
    Hello!
    How can I configure my Exim to send the E-mail Statistics (Main >> Email >> View Mail Statistics) to an e-mail address?
    Thank you!
    Do you have shell or root access to the server? If so I have a cron that will work for you.

    Brian
    Zimbabwe

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    32

    Default

    Quote Originally Posted by brianell View Post
    Do you have shell or root access to the server? If so I have a cron that will work for you.

    Brian
    Zimbabwe

    Yes, I have shell root access to the server!
    Thank you!

  4. #4
    Member
    Join Date
    Jul 2009
    Posts
    6

    Default

    Quote Originally Posted by ronaldoo View Post

    Yes, I have shell root access to the server!
    Thank you!
    My exim_mainlog commences at 4.02am every Sunday.

    So I run a cron as follows to push the stats in a file called MailStats.
    Code:
    01 4 * * * /usr/sbin/eximstats -ne -nr -nt /var/log/exim_mainlog > MailStats
    I have a small file called 4am which has the single line below in it. This sends me a mail populated with the contents of file MailStats

    Code:
    mail -s "Domain Server Mail Traffic as from 4a.m. Sunday to 4a.m. today" me@domain.com < MailStats
    Then I run a cron as follows

    Code:
    02 4 * * * ./4am
    Rough, but reliable, I am a noob in 'nix, this works for me.

    Hope this helps

  5. #5
    Member
    Join Date
    Jun 2009
    Posts
    32

    Default

    Quote Originally Posted by brianell View Post
    My exim_mainlog commences at 4.02am every Sunday.

    So I run a cron as follows to push the stats in a file called MailStats.
    Code:
    01 4 * * * /usr/sbin/eximstats -ne -nr -nt /var/log/exim_mainlog > MailStats
    I have a small file called 4am which has the single line below in it. This sends me a mail populated with the contents of file MailStats

    Code:
    mail -s "Domain Server Mail Traffic as from 4a.m. Sunday to 4a.m. today" me@domain.com < MailStats
    Then I run a cron as follows

    Code:
    02 4 * * * ./4am
    Rough, but reliable, I am a noob in 'nix, this works for me.

    Hope this helps
    Humm, I'll try it and reply again later. Thank you!

  6. #6
    Member
    Join Date
    Jun 2009
    Posts
    32

    Default

    brianell, thank you so much! I was implemented your solution and all are working fine now!
    So, how can I sent the SPAM statistics too ?
    Thanks!

  7. #7
    Member
    Join Date
    Jul 2009
    Posts
    6

    Default

    I don't do this myself, but I would run the following

    Code:
    01 4 * * * /usr/sbin/eximstats -ne -nr -nt /var/log/exim_rejectlog > RejectStats
    and then set a cron to mail me the contents of RejectStats at an appropraite time.

    Regards
    Brian

Similar Threads & Tags
Similar threads

  1. Disable address validation when sending mail remotely using SMTP
    By noyearzero in forum E-mail Discussions
    Replies: 12
    Last Post: 05-16-2011, 03:57 PM
  2. Mail server keeps sending mail with cpanel account prefix
    By webmonkey in forum E-mail Discussions
    Replies: 2
    Last Post: 09-06-2010, 02:38 PM
  3. View Mail Statistics - Shows Mail From External Domain
    By oshs in forum E-mail Discussions
    Replies: 3
    Last Post: 07-11-2009, 07:20 AM
  4. System Email not sending to proper address (Mail Hosted Externally)
    By TheHeartSmasher in forum E-mail Discussions
    Replies: 2
    Last Post: 12-05-2007, 04:33 PM
  5. mailman sending mail with the incorrect admin address.
    By dkeester in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-05-2003, 09:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube