Results 1 to 3 of 3

Thread: Zimbra 8: forced removal of all SMTP software: mail from command line broken

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Question Zimbra 8: forced removal of all SMTP software: mail from command line broken

    (Distro: Ubuntu 10.04 64 bit)

    Hi,

    When I upgraded from Zimbra 7 to 8, it told me to remove Exim, because it would interfere with the Postfix mailing system Zimbra was going to install (Zimbra 7 did allow it). However, my Exim was installed with the following in /etc/default/exim:

    Code:
    QUEUERUNNER='queueonly'
    This made sure it didn't claim port 25.

    The importance of this was, that mailing from the command line worked:

    Code:
    $ cat /etc/aliases
    mailer-daemon: postmaster
    postmaster: root
    nobody: root
    hostmaster: root
    usenet: root
    news: root
    webmaster: root
    www: root
    ftp: root
    abuse: root
    noc: root
    security: root
    zimbra: root
    
    # Not using my zimbra-email account. If a lot on
    # this machine fails, including zimbra, I have no mail..
    root: myaddress@gmail.com
    Code:
    $ echo "mail me" | mail -s subject root


    It doesn't work anymore. It doesn't give an error. It just does nothing.

    This means that all messages sent by my own maintenance scripts, cron, etc, aren't sent anymore. This is kind of inconvenient.

    bsd-mailx is installed.

    Note: the following does work:

    Code:
    $ echo "mail me" | mail -s subject address@domain.com
    So, it doesn't expand the aliases anymore. But even when I type "mail" as root, it says "no mail".

    Is there a way to get command line mailing functionality back?
    Last edited by halfgaar; 12-01-2012 at 02:44 AM.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by halfgaar View Post
    Is there a way to get command line mailing functionality back?
    Use sendmail?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    47
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    Well, as often suggested, I could make a sendmail symlink. But, it's already there:

    Code:
    # lh /usr/sbin/sendmail 
    lrwxrwxrwx 1 root root 33 Nov  2 22:36 /usr/sbin/sendmail -> /opt/zimbra/postfix/sbin/sendmail
    And I also tried editing /opt/zimbra/postfix-2.10-20120422.2z/conf/aliases instead of /etc/aliases, to no avail. I also made /etc/aliases.db chown zimbra:zimbra and ran /opt/zimbra/postfix-2.10-20120422.2z/sbin/newaliases as user zimbra, but that didn't work either.

    Mailing works, but only to fully qualified addresses; not to aliases. When I mail to root and run mailq as user zimbra, there's a message in the queue for a while to root@fqdn.of.machine, which disappears after a few seconds. But, I don't know where it's going. /opt/zimbra/log/mailbox.log doesn't show anything about it.

Similar Threads

  1. delete old mail son command line
    By rpanis in forum Administrators
    Replies: 0
    Last Post: 06-16-2009, 06:28 AM
  2. [SOLVED] mail in command line
    By petricag in forum Administrators
    Replies: 8
    Last Post: 04-24-2009, 11:35 AM
  3. Replies: 4
    Last Post: 09-01-2008, 02:44 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, 02: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
  •