Results 1 to 8 of 8

Thread: Sending mail from the command line

  1. #1
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    97
    Rep Power
    5

    Default Sending mail from the command line

    Hi All

    I have built a new Zimbra 7.2.0 server on Ubuntu 10.4 this weekend (was running v6 on Centos 5.5)

    I have a few scripts on the machine which backup via rsync and then email using the mail command. I remember I had to install and application on the old Centos box and then disable the service it installed to get this to work. Can anyone advise the best way to go here as I know if I get it wrong I could kill Zimbra. When trying to mail I get

    The program 'mail' can be found in the following packages:
    * heirloom-mailx
    * mailutils

    Thanks

    Glenn

  2. #2
    shanxt is offline Active Member
    Join Date
    Jul 2012
    Location
    Bangalore, India
    Posts
    34
    Rep Power
    3

    Default

    You don't need to install anything. Simply use the '/opt/zimbra/postfix/sbin/sendmail'. You could also create the following soft link, and then it should probably work with the 'mail' command itself.

    Code:
    ln -s /opt/zimbra/postfix/sbin/sendmail /usr/sbin/sendmail

  3. #3
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    97
    Rep Power
    5

    Default

    Perfect. Thanks

    Quote Originally Posted by shanxt View Post
    You don't need to install anything. Simply use the '/opt/zimbra/postfix/sbin/sendmail'. You could also create the following soft link, and then it should probably work with the 'mail' command itself.

    Code:
    ln -s /opt/zimbra/postfix/sbin/sendmail /usr/sbin/sendmail

  4. #4
    baecker is offline Junior Member
    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    2

    Default

    hi,

    I use version 8 and I don't find "sendmail" under the posted directory.
    I need a way to use zimbra-mta to send mails over the cli.

    thanks and
    regards,
    Baecker

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by baecker View Post
    I use version 8 and I don't find "sendmail" under the posted directory.
    So do I and it's there in my directory:

    Code:
    ls -l  /opt/zimbra/postfix/sbin/sendmail
    -rwxr-xr-x 1 root root 862025 Nov  1 00:35 /opt/zimbra/postfix/sbin/sendmail
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    baecker is offline Junior Member
    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    2

    Default

    funny......
    have you sendmail installed before you installed zimbra ?

    regards,
    baecker

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by baecker View Post
    funny......
    have you sendmail installed before you installed zimbra ?
    No but even if I had it wouldn't be installed in the Zimbra directory structure.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    baecker is offline Junior Member
    Join Date
    Feb 2013
    Posts
    5
    Rep Power
    2

    Default

    ok,

    i tried ssmtp and it works! small, easy & great :-)

    thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sending message from the command line
    By liku in forum Administrators
    Replies: 0
    Last Post: 03-02-2012, 02:58 AM
  2. delete old mail son command line
    By rpanis in forum Administrators
    Replies: 0
    Last Post: 06-16-2009, 06:28 AM
  3. sending email via command line?
    By ScottChapman in forum Installation
    Replies: 3
    Last Post: 06-01-2009, 05:12 AM
  4. Sending mail through Zimbra from Windows command line
    By grunty in forum Administrators
    Replies: 2
    Last Post: 04-14-2008, 08:31 AM
  5. Mail forwarding via command line
    By NIRMESH KUMAR in forum Administrators
    Replies: 2
    Last Post: 01-24-2007, 03:19 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
  •