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 04-26-2011, 02:26 AM
Member
 
Posts: 13
Default zmlocalconfig troubleshooting

Hi all,
I am working with zimbra 6.0.12 and I have done a little mistake when I was configuring my zimbra box for black list users. I have used the command 'zmlocalconfig' and by a mistake I put some incorrect values to the main.cf file. Now main.cf file is edited with some incorrect values and I couldn't send or receive emails. please tell me how to change the values back to normal in main.cf file.
my config was,

zmlocalconfig -u 'postfix_smtpd_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit'

output of main.cf once postfix reloaded,

main.cf
queue_run_delay = 300spostfix_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit

I actually wanted to edit the 'smtpd_recipient_restrictions'. But it changed the value in 'queue_run_delay'

error message when postfix reloading

[zimbra@mail2 conf]$ postfix reload
/opt/zimbra/bin/zmshutil: line 39: export: `=300s': not a valid identifier
/opt/zimbra/bin/zmshutil: line 39: export: `=check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit': not a valid identifier
/opt/zimbra/bin/zmshutil: line 39: export: `=': not a valid identifier
postfix/postfix-script: refreshing the Postfix mail system


please tell me how to get rid of this problem, I have checked zmlocalconfig with '-u'. But it doesn't give any sense.

thanks in advance
regards
leo
Reply With Quote
  #2 (permalink)  
Old 04-26-2011, 06:53 AM
Advanced Member
 
Posts: 198
Default

you can use zmlocalconfig -e <args> to edit the configuration.
Reply With Quote
  #3 (permalink)  
Old 04-26-2011, 10:39 AM
Member
 
Posts: 13
Default

Quote:
Originally Posted by Saturdays View Post
you can use zmlocalconfig -e <args> to edit the configuration.
Hi Satudays,
thanks for your reply.
I wanted to edit values in 'smtpd_recipient_restrictions' and my very first configuration was
zmlocalconfig -e 'postfix_smtpd_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit'

it was added to the 'queue_run_delay' attribute instead of editing the 'smtpd_recipient_restrictions' in main.cf. thats why i mentioned that I made a mistake in my configuration. then I tried to recover that by using zmlocalconfig with -u option to unset the values.

zmlocalconfig -u 'postfix_smtpd_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit'

But it doesn't give any positive solution. I tried it again with zmlocalconfig -e with default values of above attributes. But when I reload postfix, above mentioned (postfix reload error in my previous post) error is appearing.
any idea???

regards
leo
Reply With Quote
  #4 (permalink)  
Old 04-26-2011, 10:37 PM
Active Member
 
Posts: 27
Default

I think the correct sintax is:

zmlocalconfig -e postfix_smtpd_recipient_restrictions = "VALUES"

At least that's how they do it in the examples on the wiki.
Reply With Quote
  #5 (permalink)  
Old 04-27-2011, 12:10 AM
Member
 
Posts: 13
Default

Quote:
Originally Posted by jorge_s View Post
I think the correct sintax is:

zmlocalconfig -e postfix_smtpd_recipient_restrictions = "VALUES"

At least that's how they do it in the examples on the wiki.
thanks jorge,

the output of the above command as follows,
Quote:
[zimbra@testpc conf]$ zmlocalconfig -e postfix_smtpd_recipient_restrictions = "VALUES"
Error: argument 'postfix_smtpd_recipient_restrictions' not in key=value form
Is there any other way to define the values in postfix??
let me know if you find anything..
thanks
Reply With Quote
  #6 (permalink)  
Old 05-18-2011, 05:31 AM
Partner (VAR/HSP)
 
Posts: 186
Default

there must be no whitespaces. The exact syntax is e.g.

Code:
zmlocalconfig -e postfix_smtpd_recipient_restrictions="reject_unverified_recipient"
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
Reply With Quote
  #7 (permalink)  
Old 05-18-2011, 11:53 PM
Member
 
Posts: 13
Default

Quote:
Originally Posted by FritzBrause View Post
there must be no whitespaces. The exact syntax is e.g.

Code:
zmlocalconfig -e postfix_smtpd_recipient_restrictions="reject_unverified_recipient"
thanks,
this seems working like no errors. but it doesn't undo what I have done previously. Anyway this was my mistake and i hope nobody else ever done this before.
when I reload postfix following error is appearing, (this is a result of my previous comment as I guess)

[zimbra@testpc conf]$ postfix reload
/opt/zimbra/bin/zmshutil: line 39: export: `=VALUES': not a valid identifier

anyway I have re-installed zimbra in another server while looking a solution for this.
thanks everyone who give their feedbacks.
Reply With Quote
  #8 (permalink)  
Old 05-19-2011, 12:27 AM
Partner (VAR/HSP)
 
Posts: 186
Default

you may do a

Code:
zmlocalconfig -n | grep postfix
to review your actual settings that have been changed from the default values. If you want to delete something you do a

Code:
zmlocalconfig -u postfix_smtpd_recipient_restrictions=""
since postfix_smtpd_recipient_restrictions is a compiled default an cannot be deleted but reset to its default value.
__________________
Best regards

Andreas Wolske

managedhosting.de GmbH

Zimbra Cloud Hosting, Consulting & Support
VMware vCloud Powered Serviceprovider
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.