Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-2007, 10:44 AM
Junior Member
 
Posts: 5
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
Reply With Quote
  #2 (permalink)  
Old 03-14-2007, 11:37 PM
Former Zimbran
 
Posts: 5,606
Default

Zimbra doesn't use that directory.

The directory you're looking for is /opt/zimbra/postfix....etc
Reply With Quote
  #3 (permalink)  
Old 03-15-2007, 12:16 AM
Junior Member
 
Posts: 5
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
Reply With Quote
  #4 (permalink)  
Old 03-15-2007, 07:44 AM
Former Zimbran
 
Posts: 5,606
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
Reply With Quote
  #5 (permalink)  
Old 03-15-2007, 08:18 AM
Junior Member
 
Posts: 5
Default

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

Thank you for your help.
Reply With Quote
  #6 (permalink)  
Old 04-25-2007, 02:01 PM
Junior Member
 
Posts: 5
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
Reply With Quote
  #7 (permalink)  
Old 07-13-2007, 12:10 AM
Junior Member
 
Posts: 5
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.
Reply With Quote
  #8 (permalink)  
Old 08-30-2007, 05:30 AM
Intermediate Member
 
Posts: 22
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.
Reply With Quote
  #9 (permalink)  
Old 08-08-2008, 03:50 PM
Partner (VAR/HSP)
 
Posts: 197
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 12:25 AM..
Reply With Quote
  #10 (permalink)  
Old 08-13-2008, 12:17 AM
Partner (VAR/HSP)
 
Posts: 197
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.