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 07-28-2011, 07:16 AM
Trained Alumni
 
Posts: 336
Default Problems with Greylisting: mails gets rejected

Hi.

I'm trying to set up Greylisting as per the wiki:
Improving Anti-spam system - Zimbra :: Wiki
looks quite easy to, do, but I'm having troubles.

When I set up Zimbra to use postgrey, mails are rejected like when the user is not found, so they are not retried!

In logs I see this (hosts and ips masked)
Code:
postfix/smtp[18539]: 8A4857FC82: to=<maxxer@fake.com>, relay=none, delay=587, delays=566/0.01/21/0, dsn=4.4.1, 
status=deferred (connect to testzimbra[1.1.1.1]:25: Connection timed out)
postgrey[4708]: action=greylist, reason=new, client_name=posta.myserver.it, client_address=1.1.1.1, sender=maxxer@fake,com, recipient=admin@ubuntu10.ufficyo.com
postfix/smtpd[12382]: NOQUEUE: reject: RCPT from posta.myserver.it[10.6.1.1]: 450 4.2.0 <admin@ubuntu10.ufficyo.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/ubuntu10.ufficyo.com.html; from=<my@testdomain.it> to=<admin@ubuntu10.ufficyo.com> proto=ESMTP helo=<posta.myserver.it>
but then I get to the sender a mail saying mailbox does not exists!
In my /opt/zimbra/conf/postfix_recipient_restrictions.cf I have
Code:
%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:127.0.0.1:10031%%
reject_non_fqdn_recipient
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_unlisted_recipient
check_policy_service inet:127.0.0.1:10023
%%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%%
(port is fine, as i'm on ubuntu).

what's wrong?
thanks
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #2 (permalink)  
Old 11-24-2011, 07:13 AM
ip2 ip2 is offline
Member
 
Posts: 11
Default

Hi Maxxer

I am also having the same problem.
Has solved?

Thanks
Reply With Quote
  #3 (permalink)  
Old 11-24-2011, 07:17 AM
Trained Alumni
 
Posts: 336
Default

no I never solved, I had to remove greylisting, never had time to investigate more
__________________
YetOpen S.r.l. ~ Your open source partner
Lecco (LC) - ITALY
http://www.yetopen.it
Reply With Quote
  #4 (permalink)  
Old 11-24-2011, 07:26 AM
ip2 ip2 is offline
Member
 
Posts: 11
Default

Ok I'll keep searching.
Any new share the resolution

thank you
Reply With Quote
  #5 (permalink)  
Old 11-24-2011, 09:24 AM
raj raj is offline
Moderator
 
Posts: 768
Default

i dont think policyD is ready to be used in current version of zimbra..i may be wrong.
what i know is the ORDER in which the line
%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:127.0.0.1:10031%%
appears in the main thing.
in my personal policyd setting outside of zimbra i put below few lines and then i had to change some code to make it work properly as i liked.

from this implementation of zimbra your SMTP AUTH will get greylisted..as policy line is on top of
permit_sasl_authenticated

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #6 (permalink)  
Old 12-14-2011, 07:25 AM
ip2 ip2 is offline
Member
 
Posts: 11
Default

Quote:
Originally Posted by raj View Post
i dont think policyD is ready to be used in current version of zimbra..i may be wrong.
what i know is the ORDER in which the line
%%contains VAR:zimbraServiceEnabled cbpolicyd, check_policy_service inet:127.0.0.1:10031%%
appears in the main thing.
in my personal policyd setting outside of zimbra i put below few lines and then i had to change some code to make it work properly as i liked.

from this implementation of zimbra your SMTP AUTH will get greylisted..as policy line is on top of
permit_sasl_authenticated

Raj
Hi Raj

I changed the order as said.
I'm still the same problem.

When I create a new account to receive the first time the other domains prevents Greylist.

action = Greylist, reason = new
Recipient address rejected: Greylisted, see Postgrey Help

Order postfix_recipient_restrictions.cf
%% contains VAR: zimbraServiceEnabled cbpolicyd, check_policy_service inet: 127.0.0.1:10031%%
reject_non_fqdn_recipient
permit_mynetworks
check_policy_service inet: 127.0.0.1:60000
permit_sasl_authenticated
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%%
explodes reject_rbl_client%% VAR:%% zimbraMtaRestrictionRBLs
%% contains VAR: zimbraMtaRestriction check_policy_service unix: private / policy%%
permit

Any idea?

Thanks
Robson
Reply With Quote
  #7 (permalink)  
Old 12-17-2011, 04:59 AM
ip2 ip2 is offline
Member
 
Posts: 11
Default

Any idea? Please
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.