Results 1 to 10 of 10

Thread: Unable to send mail using /usr/bin/mail

  1. #1
    Join Date
    Mar 2007
    Posts
    5
    Rep Power
    8

    Default Unable to send mail using /usr/bin/mail

    Hi,

    I am running Zimbra 4.5.3 on OpenSUSE 10.1.

    I am unable to send mails using the command-line 'mail' tool, since all emails get stuck in the /var/spool/postfix/maildrop directory.

    How can I get mail to work properly?

    Thank you,

    Robert

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Zimbra doesn't use that directory.

    The directory you're looking for is /opt/zimbra/postfix....etc

  3. #3
    Join Date
    Mar 2007
    Posts
    5
    Rep Power
    8

    Default

    Dear jholder,

    Thank you for your reply. I am not trying to send mail using Zimbra's command line tools, but the ones which all the sytem uses, for example for cron jobs.

    Code:
    rombert:/var/spool/postfix/maildrop # which mail
    /usr/bin/mail
    rombert:/var/spool/postfix/maildrop # rpm -qf /usr/bin/mail
    mailx-11.25-14
    As you can see, the 'mail' command does not belong to the zimbra packages and does not follow the zimbra delivery rules, and that is what I am trying to fix.

    Robert

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Take a look here:
    http://gentoo-wiki.com/Maildrop_configuration

    I know you aren't using gentoo, but the config should be generally the same.
    In particular, look at the postfix config section.

    Because it's not a zimbra product(and the fact I've never used it), I'm not quite sure how to help you, but I think this might be your friend:
    http://www.google.com/search?q=maild...ient=firefox-a

  5. #5
    Join Date
    Mar 2007
    Posts
    5
    Rep Power
    8

    Default

    I'll simply have to look some more into that.

    Thank you for your help.

  6. #6
    Join Date
    Mar 2007
    Posts
    5
    Rep Power
    8

    Default

    Just in case someone else encounters this problem:

    To make sure that the local postfix delivery works (sendmail command from existing SuSE postfix rpms), apply the following changes to /etc/postfix/main.cf:

    queue_directory = /opt/zimbra/postfix/spool/
    setgid_group = postdrop

    This will allow the sendmail command to deliver directly to the zimbra postfix mail queue.

    Robert

  7. #7
    Join Date
    Mar 2007
    Posts
    5
    Rep Power
    8

    Default

    To be complete, please note that zimbra uses a different setgid_group that the default openSUSE one, and this causes headaches.

    The default /etc/postfix/main.cf needs to be adjusted to take this into account, and also the postqueue and postdrop binaries need to be chgrp'ed to the new group.

    This caused a bit of pain for me so you might want to incorporate this into the openSuSE integration procedure.

  8. #8
    Join Date
    Feb 2006
    Location
    Rhauderfehn, Germany
    Posts
    22
    Rep Power
    9

    Default

    Another very easy possibility is the following:

    Code:
    mv /usr/sbin/sendmail /usr/sbin/sendmail.orig
    ln -s /opt/zimbra/postfix/sbin/sendmail /usr/sbin/sendmail
    So all sendmail requests were redirect to the Zimbra sendmail.
    There is no need to fight with permissions.

  9. #9
    Join Date
    Jul 2006
    Location
    Australia, ACT
    Posts
    197
    Rep Power
    9

    Default

    FYI. If you are modifying Postfix main.cf the entries should be:
    Code:
    queue_directory = /opt/zimbra/data/postfix/spool
    setgid_group = postdrop
    And change group ownership of these files to
    Code:
    # chown root:postdrop /usr/sbin/postqueue
    # chown root:postdrop /usr/sbin/postdrop
    Last edited by greenrenault; 08-13-2008 at 01:25 AM.

  10. #10
    Join Date
    Jul 2006
    Location
    Australia, ACT
    Posts
    197
    Rep Power
    9

    Question Help please - mail_queue_enter: create file maildrop

    I've tried the above and thought it was working. However, after letting it run for a few days and checking the Zimbra logs I see these errors. Any tips guys?

    Code:
    Aug 13 17:21:25 files postfix/postdrop[1996]: warning: mail_queue_enter: create file maildrop/35042.1996: Permission denied
    Aug 13 17:21:35 files postfix/postdrop[1996]: warning: mail_queue_enter: create file maildrop/35706.1996: Permission denied
    Aug 13 17:21:45 files postfix/postdrop[1996]: warning: mail_queue_enter: create file maildrop/36107.1996: Permission denied
    Aug 13 17:21:55 files postfix/postdrop[1996]: warning: mail_queue_enter: create file maildrop/39926.1996: Permission denied

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  3. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  4. Installed OK - Can send but not recieve email
    By gregbazar in forum Installation
    Replies: 3
    Last Post: 11-05-2005, 04:56 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 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
  •