1 (edited by SntPx 2014-02-07 02:03:04)

Topic: Greylisting not working on alias mails

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian Wheezy
- Related log if you're reporting an issue:
Feb  5 22:02:32 x-machine amavis[24519]: (24519-07) Passed CLEAN {RelayedOpenRelay}, [xxx.xxx.xxx.207]:40594 [xxx.xxx.xxx.207] <user@other_domain.tld> -> <user@iredmail_machine.tld>, Queue-ID: 85B061240CD0, Message-ID: <9e754781c74fcd4fa007ebf16b9179f9@other_domain.tldr>, mail_id: BTJ3MigMIWIb, Hits: -, size: 1779, queued_as: AA8071240CED, 174 ms
Feb  5 22:02:32 x-machine postfix/smtpd[28355]: disconnect from localhost[127.0.0.1]
Feb  5 22:02:32 x-machine postfix/qmgr[28216]: AA8071240CED: from=<user@other_domain.tld>, size=2181, nrcpt=1 (queue active)
Feb  5 22:02:32 x-machine postfix/cleanup[28351]: AA8071240CED: message-id=<9e754781c74fcd4fa007ebf16b9179f9@meltdown.fr>
Feb  5 22:02:32 x-machine postfix/smtpd[28355]: AA8071240CED: client=localhost[127.0.0.1]
Feb  5 22:02:32 x-machine postfix/smtpd[28355]: connect from localhost[127.0.0.1]
Feb  5 22:02:32 x-machine postfix/smtpd[28346]: disconnect from other_domain.tld[xxx.xxx.xxx.207]
Feb  5 22:02:32 e-studs postfix/qmgr[28216]: 85B061240CD0: from=<user@other_domain.tld>, size=1779, nrcpt=1 (queue active)
====

Hi, all !

I have just installed iRedMail and I tried sending e-mails from another server/domain I own to a couple alias mails I created and it appears greylisting won't work with these addresses. I receive the mail right away hmm
When I try to e-mail the real user (the target adress of the aliases) greylisting is triggered just fine. Is this a known issue ?

Here's one of the entries I created (LDIF format) :
dn: mail=aliasUser@domain.tld,ou=Aliases,domainName=domain.tld,o=domains,dc=domain,dc=tld
accountstatus: active
enabledservice: mail
enabledservice: deliver
mail: aliasUser@domain.tld
mailforwardingaddress: targetUser@sub.domain.tld
objectclass: mailAlias
objectclass: top

Note : sorry for the pretty straightforward message, I wrote it just before leaving for work this morning smile

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Greylisting not working on alias mails

Could you please turn on debug mode in Cluebringer, restart Cluebringer service, send testing email again, and paste related log in Cluebringer log file to help troubleshoot?

# File /etc/cluebringer/cluebringer.conf
log_level=4
log_detail=modules,tracking,policies,protocols

3

Re: Greylisting not working on alias mails

Hi Zhang,

Here is a link to the full log : http://pastebin.com/XFcHmGRC

Thanks for your great work !

4

Re: Greylisting not working on alias mails

*) According to your log,  'sender' => 'school@domain.fr', 'recipient' => 'webmaster@target.com'.
*) As you can see in the log:

DEBUG: [ID:3/Name:Default Inbound]: Main policy destinations '%internal_domains'
DEBUG: [ID:3/Name:Default Inbound]: Group 'internal_domains' has 1 destination(s) => @achero.target.com
DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_domains): - Resolved destination '@achero.target.com' to a email address specification, match = 0
DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_domains): Destination group result: matched=0
INFO: [ID:3/Name:Default Inbound]: Destination matching result: matched=0

You mark domain 'achero.target.com' as internal domain, but not 'target.com'. So it doesn't match policy 'Default Inbound', and greylisting is enabled on 'Default Inbound' by default.

The solution is, add domain 'target.com' as member of policy group '%internal_domains' manually in Cluebringer database.
If you have iRedAdmin-Pro, please execute script "tools/sync_cluebringer_internal_domains.py" instead, it will sync all internal domains to Cluebringer policy group '%internal_domains' for you. (NOTE: iRedAdmin-Pro will sync %internal_domains automatically when you add/delete domain with iRedAdmin-Pro.)

5

Re: Greylisting not working on alias mails

Yes indeed.

It all works just perfectly now !

Thanks a lot, once again.