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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-19-2006, 01:59 PM
New Member
 
Posts: 4
Default Zimbra's postfix main.cf file not saving changes after reboot!

Greetings, I'm running Zimbra on Ubuntu and I what I wanted to do is use BitDefender's antivirus to scan mail instead of clam or whatever it has by default. I edited the Postfix main.cf and master.cf files and marked out the zimbra antivirus and added the lines for the BitDefender antivirus, according to the instructions by BitDefender and reloaded postfix and it worked flawlessly.

However, as soon as I reboot, all of the changes made to the main.cf file concerning the BitDefender antivirus in /opt/zimbra/postfix-2.2.9/conf/ folder are gone and it's back to not working again.

Here is what the main.cf file looks like after I have configured it to use BitDefender before I reboot:

Quote:

#
#content_filter = smtp-amavis:[127.0.0.1]:10024
#

myhostname = localhost.localdomain
recipient_delimiter =
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = yes
smtpd_use_tls = yes
disable_dns_lookups = no
message_size_limit = 10240000
mailbox_size_limit = 0
relayhost =
smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, reject_unauth_destination, permit
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /opt/zimbra/postfix-2.2.9/sbin
daemon_directory = /opt/zimbra/postfix-2.2.9/libexec
header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
mailq_path = /opt/zimbra/postfix-2.2.9/sbin/mailq
manpage_directory = /opt/zimbra/postfix-2.2.9/man
newaliases_path = /opt/zimbra/postfix-2.2.9/sbin/newaliases
queue_directory = /opt/zimbra/postfix-2.2.9/spool
sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf
sendmail_path = /opt/zimbra/postfix-2.2.9/sbin/sendmail
smtpd_client_restrictions = reject_unauth_pipelining
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_reject_unlisted_recipient = no
smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt
smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key
smtpd_tls_loglevel = 1
transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
version = 2.2.9
virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf
virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf
virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf
virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
virtual_transport = error
#Added by BitDefender, do not remove!
content_filter = smtp:127.0.0.1:10025

#End of added lines

Here is what it looks like after I reboot:

Quote:

#
#content_filter = smtp-amavis:[127.0.0.1]:10024
#

myhostname = localhost.localdomain
recipient_delimiter =
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = yes
smtpd_use_tls = yes
disable_dns_lookups = no
message_size_limit = 10240000
mailbox_size_limit = 0
relayhost =
smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, reject_unauth_destination, permit
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /opt/zimbra/postfix-2.2.9/sbin
daemon_directory = /opt/zimbra/postfix-2.2.9/libexec
header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
mailq_path = /opt/zimbra/postfix-2.2.9/sbin/mailq
manpage_directory = /opt/zimbra/postfix-2.2.9/man
newaliases_path = /opt/zimbra/postfix-2.2.9/sbin/newaliases
queue_directory = /opt/zimbra/postfix-2.2.9/spool
sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf
sendmail_path = /opt/zimbra/postfix-2.2.9/sbin/sendmail
smtpd_client_restrictions = reject_unauth_pipelining
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_reject_unlisted_recipient = no
smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt
smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key
smtpd_tls_loglevel = 1
transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
version = 2.2.9
virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf
virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf
virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf
virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
virtual_transport = error
#Added by BitDefender, do not remove!
content_filter =

#End of added lines
Why is it deleting the BitDefender information after reboot, and how can I make it stop?
Reply With Quote
  #2 (permalink)  
Old 10-19-2006, 02:13 PM
Zimbra Employee
 
Posts: 1,434
Default main.cf is auto-generated

Zimbra regenerates main.cf. If you want to persistently change the postfix config, I believe you need to edit /opt/zimbra/conf/zmmta.cf instead and add/change a POSTCONF line.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 10-19-2006, 02:21 PM
New Member
 
Posts: 4
Default

Quote:
Originally Posted by dkarp
Zimbra regenerates main.cf. If you want to persistently change the postfix config, I believe you need to edit /opt/zimbra/conf/zmmta.cf instead and add/change a POSTCONF line.
Thanks for the quick response.

So what you're saying is that in the zmmta.cf the lines that contain the following:

smtp-amavis:[127.0.0.1]:10024

I should change to:

smtp:127.0.0.1:10025

to match the correct BitDefender configuration?
Reply With Quote
  #4 (permalink)  
Old 10-19-2006, 05:37 PM
Zimbra Employee
 
Posts: 274
Default

sounds rights, but we may not blow away zmmta.cf on upgrades, so watch out for that.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 10-19-2006, 09:58 PM
New Member
 
Posts: 4
Default

Quote:
Originally Posted by anand
sounds rights, but we may not blow away zmmta.cf on upgrades, so watch out for that.
Thanks, that worked for me. Much appreciated.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0