Results 1 to 9 of 9

Thread: [SOLVED] mail in command line

  1. #1
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    Default [SOLVED] mail in command line

    Hi guys

    I would need my sh scripts to be able to send some logs to an external email. If I try to use mail command from interface the scripts complain that I should install mail and mailx. I am running on Ubuntu Server 8.04 TLS / Release 5.0.13_GA_2791.UBUNTU8 UBUNTU8 FOSS edition

    I would install these application but I am afraid these will interact with Zimbra server in a negative way.

    Any advice ? Has someone tried any solutions ? I think I saw last month some posts on this topic but I am not able to find those posts, so sorry if I am asking same thing as someone has already asked before !

    Thank you in advance for any answer!
    Gabi

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    apt-get install mailx
    If it does pull in another MTA then just stop it.

  3. #3
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    Default

    What other MTA ? I have only Zimbra installed on my server no other apps. This is why I am little bit afraid to installed mail related application, not to get the installation break. So installing only the ailx wil not cause any trouble to my existing zimbra instalation ?

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    It should not do, though when you run the command it will tell you if it is pulling in any other packages.

  5. #5
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    Default

    If I try to install mailx, the dependency are: exim4 exim4-base exim4-config exim4-daemon-light liblockfile1. I have no ideea what are this and how they are influencing the mail server.

    I don't like this. The server is not a test one so I have to be very carefull about installing other apps.

    In /opt/zimbra folder I see two folder postfix/sbin and postfix-2.4.7.5z/sbin both folders containing sendmail. Can't I use sendmail to send mails from command line ? Which one is the correct one to be used ?

  6. #6
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    apt-get install sendemail
    no other dependencies apart from Perl which will already be installed. Once installed run sendEmail for all the options.

  7. #7
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    Default

    Thank you very much for this answer ... this is exactly what I needed. I tested and all orks just fine.

    For others reading this post sendemail != sendmail .... I was confused at the begining .... I have two folder with sendmail ... why nstall another instance

  8. #8
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Code:
    ls -ld /opt/zimbra/postfix
    You will find that it is just a symbolic link to the other one Glad you are sorted now

  9. #9
    Join Date
    Mar 2007
    Location
    Rochester, NY
    Posts
    89
    Rep Power
    8

    Thumbs up

    This was great!

    I ran this:
    ln -s /opt/zimbra/postfix/sbin/sendmail /usr/sbin/sendmail

    and now I can use the mail command from the command line like every other happy linux box. :-)

    Great thread here guys! :-)

    -Cheers, Peter.

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Replies: 30
    Last Post: 01-13-2009, 08:00 AM
  3. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 08:20 AM
  4. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 07:47 AM
  5. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 12:44 PM

Posting Permissions

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