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-19-2010, 10:40 AM
Advanced Member
 
Posts: 209
Default [SOLVED] Change the main.cf options

Hi,

I'm afraid because by default my Postfix main.cf set the smtpd_reject_unlisted_recipient to NO !!!

I changed with postconf -e smtpd_reject_unlisted_recipient=yes on zimbra user but if I restart Postfix this directive back to NO.

How to fix this this directive to YES definitely ?

Thanks for your help.

Sam.
__________________
Release 6.0.7_GA_2473.DEBIAN5 DEBIAN5 FOSS edition.
On Debian Vserver
Reply With Quote
  #2 (permalink)  
Old 03-19-2010, 11:09 AM
Moderator
 
Posts: 7,928
Default

Make sure that /opt/zimbra/conf/postfix_recipient_restrictions.cf has the following within it
Code:
reject_unlisted_recipient
__________________
Reply With Quote
  #3 (permalink)  
Old 03-19-2010, 11:29 AM
Advanced Member
 
Posts: 209
Default

Quote:
Originally Posted by uxbod View Post
Make sure that /opt/zimbra/conf/postfix_recipient_restrictions.cf has the following within it
Code:
reject_unlisted_recipient
Look my postfix_recipient_restrictions.cf:

Code:
reject_non_fqdn_recipient
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_unlisted_recipient
%%contains VAR:zimbraMtaRestriction reject_invalid_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_hostname%%
%%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
%%contains VAR:zimbraMtaRestriction reject_unknown_client%%
%%contains VAR:zimbraMtaRestriction reject_unknown_hostname%%
%%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
%%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
%%contains VAR:zimbraMtaRestriction check_policy_service unix:private/policy%%
permit
But on each postfix restart I have to make postconf -e smtpd_reject_unlisted_recipient=yes to set this feature otherwise Zimbra accept mails to unknown receipient !?

Sam.
__________________
Release 6.0.7_GA_2473.DEBIAN5 DEBIAN5 FOSS edition.
On Debian Vserver
Reply With Quote
  #4 (permalink)  
Old 03-19-2010, 12:11 PM
Intermediate Member
 
Posts: 18
Default

I also have problems when wanting to change a directive from the postfix main.cf but does change when you restart postfix is again equal
Any idea how to do
greetings
Reply With Quote
  #5 (permalink)  
Old 03-19-2010, 12:26 PM
Zimbra Employee
 
Posts: 515
Default

You're looking at two different items; reject_unlisted_recipient should be listed in the smtpd_recipient_restrictions, so it's not necessary to also set smtpd_reject_unlisted_recipient.

$ postconf smtpd_recipient_restrictions
smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient, reject_invalid_hostname, reject_non_fqdn_sender, permit

$ postconf smtpd_reject_unlisted_recipient
smtpd_reject_unlisted_recipient = no

If you really want to set it, edit the line for this in /opt/zimbra/conf/zmmta.cf:

POSTCONF smtpd_reject_unlisted_recipient yes
__________________
Search the Forums - Bugzilla - Wiki - Downloads
Reply With Quote
  #6 (permalink)  
Old 03-19-2010, 05:29 PM
Advanced Member
 
Posts: 209
Default

Quote:
Originally Posted by bobby View Post
If you really want to set it, edit the line for this in /opt/zimbra/conf/zmmta.cf:

POSTCONF smtpd_reject_unlisted_recipient yes
Bingo, I changed zmmta.cf to set smtpd_reject_unlisted_recipient = yes (line 109) after restart Postfix this directive stay to "Yes"

Thanks a lot.

For the history we have more than 20 000 mails with unknown user a day and perhaps to send spams, our server was blacklisted, it's the first time I have this problem after 10 years of mail server installation and managment.

Sam.
__________________
Release 6.0.7_GA_2473.DEBIAN5 DEBIAN5 FOSS edition.
On Debian Vserver
Reply With Quote
  #7 (permalink)  
Old 03-21-2010, 07:41 AM
Advanced Member
 
Posts: 209
Default

Just for information:

I had more than 20 000 rejected mails a day for unknown user who generates spam by MALER-DAEMON, and our IP was blacklisted on several RBL.

I had to install Postfix-policyd on our mail relay in front of Zimbra to fix this problem, perhaps it will be useful to integrate Postfix-policyd on Zimbra.

Sam.
__________________
Release 6.0.7_GA_2473.DEBIAN5 DEBIAN5 FOSS edition.
On Debian Vserver
Reply With Quote
  #8 (permalink)  
Old 03-21-2010, 11:20 AM
Moderator
 
Posts: 7,928
Default

Are you saying you are greylisting now ? I have to admit I run MailScanner in-front of my Zimbra installations, which is personally choice, but a lot can be done to kick back those naughty spammers. Are you suffering from backscatter ? or spammers impersonating your domain ?
__________________
Reply With Quote
  #9 (permalink)  
Old 03-22-2010, 06:24 AM
Advanced Member
 
Posts: 209
Default

Quote:
Originally Posted by uxbod View Post
Are you saying you are greylisting now ? I have to admit I run MailScanner in-front of my Zimbra installations, which is personally choice, but a lot can be done to kick back those naughty spammers. Are you suffering from backscatter ? or spammers impersonating your domain ?
From backscatter and our IP is registered on ips.backscatter.org and they ask us to wait 4 weeks to be automatically removed from list or... send 50.00Euros for immediate removing (so nice !)

We use MailScanner too on the mail relay but not as AS/AV we got the best result with Postfix-Policyd, more than 30 000 wrong mails are discarded a day.

I put some RBL in Zimbra MTA Agent (SORBS-DUL, spamcop.net, spamhaus.org) but I'm not sure if this work behind a mail relay, all mails come from only one IP...

Thanks for your help.

Sam.
__________________
Release 6.0.7_GA_2473.DEBIAN5 DEBIAN5 FOSS edition.
On Debian Vserver
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.