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 08-08-2011, 12:54 PM
Elite Member
 
Posts: 285
Default root

Not sure if this is a Zimbra setup:

2 CentOS servers running Zimbra 7.1.1 FOSS. One 64-bit, one 32-bit.

64-bit:
When I try to send a mail from terminal:
# mail root
Subject: Test
Test
Cc:
#
Mail is gone

32-bit:
# mail root
...
No mail

# mail root@mydomain.com
...
Works.

How can I make my server send mail to root without domain on the 32-bit server?
Reply With Quote
  #2 (permalink)  
Old 08-10-2011, 08:02 AM
Elite Member
 
Posts: 285
Default

The reason why I asked this is the server wasn't mailing the results of the backup script found on this site. In order to fix this I tried a lot of things until I saw a 'Postfix permissions denied' error in the Zimbra log. To fix this I used the command '/opt/zimbra/libexec/zmfixperms --verbose --extended' hoping to fix it.

Last night, when the backup script tried to restart Zimbra things went completely wrong.

zimbramon[2051]: 2051:info: Starting mta via zmcontrol
postfix/postfix-script[4211]: warning: not owned by root: /opt/zimbra/postfix-2.7.4.2z/conf/main.cf
postfix/postfix-script[4212]: warning: not owned by root: /opt/zimbra/postfix-2.7.4.2z/conf/master.cf
postfix/postfix-script[4215]: warning: not owned by postfix: /opt/zimbra/data/postfix/data/./prng_exch
postfix/postfix-script[4216]: warning: not owned by postfix: /opt/zimbra/data/postfix/data/./master.lock
postfix/postfix-script[4231]: starting the Postfix mail system
postfix/master[4232]: fatal: open lock file /opt/zimbra/data/postfix/data/master.lock: cannot open file: Permission denied

Lucky for me there was the Zimbra 7.1.2 update but I don't like to update a broken system. Since I couldn't fix it I ran the update anyway.

The server is back up and running. But why did zmfixperms broke my system?
Reply With Quote
  #3 (permalink)  
Old 08-10-2011, 08:20 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by Tripple View Post
The server is back up and running. But why did zmfixperms broke my system?
That would depend on whether you'd applied any of the patches to your 7.1.1 install, this was fixed by the patch: Bug 57891 – zmfixperms break mta in 7.0.1
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 08-10-2011, 08:29 AM
Elite Member
 
Posts: 285
Default

I was about to say "Yes I did" but searched my own logfiles of everything I do with any server first. There's no entry of any fix there.

Do I have to install a patch or is this fixed in 7.1.2 ?
Reply With Quote
  #5 (permalink)  
Old 08-10-2011, 08:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by Tripple View Post
Do I have to install a patch or is this fixed in 7.1.2 ?
No, you don't need to do anything - any patch for a specific version is incorporated into future releases.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 08-10-2011, 08:33 AM
Elite Member
 
Posts: 285
Default

Thanks. Next time I'll be more carefull.
Reply With Quote
  #7 (permalink)  
Old 08-10-2011, 08:53 AM
Elite Member
 
Posts: 285
Default

I fixed mailing to root by adding an entry in /etc/aliases and run newaliases.
Shouldn't this be /opt/zimbra/postfix/conf/aliases?

Or maybe it's because I'm testing this from console. I'm confused.
Reply With Quote
  #8 (permalink)  
Old 08-10-2011, 09:08 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by Tripple View Post
I fixed mailing to root by adding an entry in /etc/aliases and run newaliases.
Shouldn't this be /opt/zimbra/postfix/conf/aliases?

Or maybe it's because I'm testing this from console. I'm confused.
It's because you are doing this from the console; the (Linux) mail app just uses the system (Zimbra) MTA for transport. That mail looks to the compiled aliases map for valid email addresses. "root" is not a valid email address, so "mail" needs to look it up.

If you ran from the console telnet localhost 25 instead you would talk directly to Zimbra's Postfix and /etc/aliases would be irrelevant.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #9 (permalink)  
Old 08-10-2011, 11:18 AM
Elite Member
 
Posts: 285
Default

Thanks for the info.
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.