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
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
Zimbra doesn't use that directory.
The directory you're looking for is /opt/zimbra/postfix....etc
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.
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.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
Robert
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
I'll simply have to look some more into that.
Thank you for your help.
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
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.
Another very easy possibility is the following:
So all sendmail requests were redirect to the Zimbra sendmail.Code:mv /usr/sbin/sendmail /usr/sbin/sendmail.orig ln -s /opt/zimbra/postfix/sbin/sendmail /usr/sbin/sendmail
There is no need to fight with permissions.
FYI. If you are modifying Postfix main.cf the entries should be:
And change group ownership of these files toCode:queue_directory = /opt/zimbra/data/postfix/spool setgid_group = postdrop
Code:# chown root:postdrop /usr/sbin/postqueue # chown root:postdrop /usr/sbin/postdrop
Last edited by greenrenault; 08-13-2008 at 12:25 AM.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)