Results 1 to 3 of 3

Thread: Emailing from the command line

  1. #1
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    97
    Rep Power
    5

    Default Emailing from the command line

    Hi All

    I have a few backups that run on the Zimbra server and I email the logs at the end of the backup. To get this to work I put the full path to send mail but the current issue I am having is that email comes through with out a subject, it just say <no subject> but command does have a subject as below

    /opt/zimbra/postfix/sbin/sendmail mail -s "data backup" example@email.com < /backup-log/backup.txt

    Can anyone shed any light on how I can get this working correctly

    Thanks

  2. #2
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    454
    Rep Power
    5

    Default

    You'll want to review this thread:

    http://www.zimbra.com/forums/users/5...lx-zimbra.html

    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

  3. #3
    Join Date
    Jul 2012
    Location
    Princeton, NJ
    Posts
    11
    Rep Power
    3

    Default

    We are running backups on our ZCS (7.14)as well that email when complete.

    What works for us is:
    mail -s "Backup Done" backups@company.com < /tmp/backup.log

    Hope that helps.

    Moe
    Release 7.2.2_GA_2852.RHEL6_64_20121204211952 RHEL6_64 NETWORK edition.

Similar Threads

  1. Zimbra with command line
    By rodrigofariat in forum Administrators
    Replies: 1
    Last Post: 05-25-2012, 01:30 PM
  2. Command Line Import for TGZ
    By aekstrom in forum Administrators
    Replies: 7
    Last Post: 11-05-2011, 06:21 AM
  3. Command-line IM Client
    By egrueda in forum Developers
    Replies: 1
    Last Post: 08-21-2008, 05:59 AM
  4. Reindexing from the command line
    By plan9 in forum Administrators
    Replies: 5
    Last Post: 08-14-2008, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •