Results 1 to 3 of 3

Thread: Emailing from the command line

  1. #1
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    93
    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
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    440
    Rep Power
    5

    Default

    You'll want to review this thread:

    How to use mailx and Zimbra

    Doug
    Ben Franklin quote:

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

  3. #3
    myarmush is offline Member
    Join Date
    Jul 2012
    Location
    Princeton, NJ
    Posts
    11
    Rep Power
    2

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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