1

Topic: external mail id iredapd

Hi

I am  not able to stop users to send mails to specific external domain.

I will tell what I have done.

In iredAdmin-pro. Selected specific user. Selected restriction. Under Recipient Restriction -> blacklisted restriction, added rediffmail.com.

Now through outlook i send a mail to domain rediffmail.com and the recipient received the mail, but I want that the server should send an error message stating denied domain.

What should I do to enable this?

Please help me.

Regards
Philip

2

Re: external mail id iredapd

Which version of iRedAPD do you use?
Do you have plugin "block_amavisd_blacklisted_senders" enabled?

3 (edited by pipal 2010-12-10 13:38:10)

Re: external mail id iredapd

ZhangHuangbin wrote:

Which version of iRedAPD do you use?
Do you have plugin "block_amavisd_blacklisted_senders" enabled?

I am using iredapd 1.3.3 and plugin "block_amavisd_blacklisted_senders" is enabled. I applied sender restriction-> blacklisted senders and put @rediffmail.com. This is working. I tried sending mail from rediffmail and it bounced.

iredapd-rr.ini contain plugins = ldap_recipient_restrictions
iredapd.ini contain plugins = ldap_maillist_access_policy, block_amavisd_blacklisted_senders

4

Re: external mail id iredapd

Could you please paste detail  LDIF data of this user?
And turn on debug mode in iredapd.ini, sending a test email, paste iredapd log here.

5

Re: external mail id iredapd

The LDIF Data

# saurabh.jain@pipalresearch.com, Users, pipalresearch.com, domains, pipalres
earch.com
dn: mail=saurabh.jain@pipalresearch.com,ou=Users,domainName=pipalresearch.com,
o=domains,dc=pipalresearch,dc=com
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
mail: saurabh.jain@pipalresearch.com
sn: saurabh.jain
uid: saurabh.jain
storageBaseDirectory: /home/vmail
mailMessageStore: vmail01/pipalresearch.com/s/sa/sau/saurabh.jain-2010.08.05.1
3.21.32/
homeDirectory: /home/vmail/vmail01/pipalresearch.com/s/sa/sau/saurabh.jain-201
0.08.05.13.21.32/
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: jabber
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
amavisLocal: TRUE
cn: Saurabh Jain
mailQuota: 104857600
accountStatus: active
memberOfGroup: gurgaon@pipalresearch.com
memberOfGroup: people@pipalresearch.com
memberOfGroup: corecommittee@pipalresearch.com
memberOfGroup: it@pipalresearch.com
memberOfGroup: itgurgaon@pipalresearch.com
amavisBlacklistSender: @gmail.com
mailBlacklistRecipient: @gmail.com

and the Log details

2010-12-13 11:16:31 DEBUG Connect from 127.0.0.1
2010-12-13 11:16:31 DEBUG smtp session: request=smtpd_access_policy
2010-12-13 11:16:31 DEBUG smtp session: protocol_state=RCPT
2010-12-13 11:16:31 DEBUG smtp session: protocol_name=ESMTP
2010-12-13 11:16:31 DEBUG smtp session: client_address=10.10.4.52
2010-12-13 11:16:31 DEBUG smtp session: client_name=pipggn-sjain.pipalresearch.in
2010-12-13 11:16:31 DEBUG smtp session: reverse_client_name=pipggn-sjain.pipalresearch.in
2010-12-13 11:16:31 DEBUG smtp session: helo_name=pipggnsjain
2010-12-13 11:16:31 DEBUG smtp session: sender=saurabh.jain@pipalresearch.com
2010-12-13 11:16:31 DEBUG smtp session: recipient=sjain1008@gmail.com
2010-12-13 11:16:31 DEBUG smtp session: recipient_count=0
2010-12-13 11:16:31 DEBUG smtp session: queue_id=
2010-12-13 11:16:31 DEBUG smtp session: instance=1033.4d05b337.6453c.0
2010-12-13 11:16:31 DEBUG smtp session: size=0
2010-12-13 11:16:31 DEBUG smtp session: etrn_domain=
2010-12-13 11:16:31 DEBUG smtp session: stress=
2010-12-13 11:16:31 DEBUG smtp session: sasl_method=LOGIN
2010-12-13 11:16:31 DEBUG smtp session: sasl_username=saurabh.jain@pipalresearch.com
2010-12-13 11:16:31 DEBUG smtp session: sasl_sender=
2010-12-13 11:16:31 DEBUG smtp session: ccert_subject=
2010-12-13 11:16:31 DEBUG smtp session: ccert_issuer=
2010-12-13 11:16:31 DEBUG smtp session: ccert_fingerprint=
2010-12-13 11:16:31 DEBUG smtp session: encryption_protocol=
2010-12-13 11:16:31 DEBUG smtp session: encryption_cipher=
2010-12-13 11:16:31 DEBUG smtp session: encryption_keysize=0
2010-12-13 11:16:31 DEBUG LDAP connection initialied success.
2010-12-13 11:16:31 DEBUG LDAP bind success.
2010-12-13 11:16:31 DEBUG __get_recipient_dn_ldif (recipient): sjain1008@gmail.com
2010-12-13 11:16:31 DEBUG __get_recipient_dn_ldif (result): []
2010-12-13 11:16:31 DEBUG !!! ERROR !!! __get_recipient_dn_ldif (result): list index out of range
2010-12-13 11:16:31 DEBUG Recipient DN or LDIF is none.
2010-12-13 11:16:31 DEBUG Final action: DUNNO.
2010-12-13 11:16:31 INFO saurabh.jain@pipalresearch.com -> sjain1008@gmail.com, DUNNO
2010-12-13 11:16:31 DEBUG Connection closed

6

Re: external mail id iredapd

pipal wrote:

2010-12-13 11:16:31 DEBUG __get_recipient_dn_ldif (recipient): sjain1008@gmail.com

Can you please try the latest iRedAPD? It will print more debug info to help troubleshoot:
http://code.google.com/p/iredmail/sourc … po=iredapd

7

Re: external mail id iredapd

I was unable to download iredapd from here...

Regards

8

Re: external mail id iredapd

Sorry, what do you mean "can't download iredapd here"?
I can download it here: http://iredmail.org/download.html#iredapd

9 (edited by pipal 2011-01-14 11:16:14)

Re: external mail id iredapd

We are already having the latest iredapd1.3.3 installed on our system....

10

Re: external mail id iredapd

Hi Zhang,

Please help me to resolve this issue. Should I have iredadmin-pro 1.3 ? I have installed iredadmin-pro 1.2 .....