Posts: 17

Topic: forwarding issue

Hi,

In IredAdmin Pro 1.3 I have created one domain (domain1.com) and added alias domain (domain2.com). Then I created a mailbox user@domain1.com and created forward from that mailbox to user@externaldomain.com. So now, when I send mail to user@domain1.com "forward" works fine, but if I send mail to user@domain2.com when "forward" doesn't work. Also, I tried to add a filter (which should work similar to "forward") via roundcube webmail, but it doesn't work too when I send mail to user@domain2.com. Please, help as soon as possible. Thanx.

Re: forwarding issue

Both user_filter and pass_filter are correct.

Could you please paste filter rules? It should be /var/vmail/sieve/domain1.com/user/dovecot.sieve.And paste related delivery log in /var/log/dovecot.log or /var/log/sieve.log?Or show us other related information about your word: "but if I send mail to user@domain2.com when "forward" doesn't work"?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

Re: forwarding issue

ZhangHuangbin wrote:

Both user_filter and pass_filter are correct.

Could you please paste filter rules? It should be /var/vmail/sieve/domain1.com/user/dovecot.sieve.And paste related delivery log in /var/log/dovecot.log or /var/log/sieve.log?Or show us other related information about your word: "but if I send mail to user@domain2.com when "forward" doesn't work"?

So now, when I send mail to b.eimaitis@klinika.lt, then it is forwarded to eimaitis@metasite.net as expected, but if I send mail to b.eimaitis@mxmg2.metasite.net, then mail is delivered localy, but not forwarded. This is an issue..

Dovecot will try to find user's mail filter rule (file name: dovecot.sieve) under /var/vmail/sieve/ (default directory in iRedMail), so you can verify whether it finds this file or not with command 'ldapsearch'.

Dovecot will try to find user's mail filter rule (file name: dovecot.sieve) under /var/vmail/sieve/ (default directory in iRedMail), so you can verify whether it finds this file or not with command 'ldapsearch'.

And here is nothing strange, because that script is located here: /data/vmail/sieve/klinika.lt/b.eimaitis/dovecot.sieve

Please, explain how can it work and what should I doto make it work.

############################

Another very important thing (let's forget about roundcube), when I make forward via iRedAdmin it doesn't work too. Please note my fifth post, you'll see required ldifs. When I send mail to b.eimaitis@mxmg2.metasite.net it gets delivered localy, but not forwarded as it should be and this is postfix configuration problem, not dovecot.

Because 'orig@alias.com' is a user alias address, so it should point to user 'orig@a.cn', including mailbox path, sieve filter file, that's how user alias work. So it is shown as 'orig@a.cn' in /var/log/sieve.log is expected result.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

Re: forwarding issue

So, in my situation "search_base" becomes domainName=mxmg2.metasite.net,o=domains,dc=node1-iv,dc=metasite,dc=lt. Actualy, this is non existent entry, so that's why forward is not working.The question is why search_base is domainName=%d,o=domains,dc=node1-iv,dc=metasite,dc=lt ? I think it should be just o=domains,dc=node1-iv,dc=metasite,dc=lt Is it made for better performance?

You got the point, you can try to change search base to 'o=dmains,dc=node1-iv,dc=metasite,dc=lt', restart postfix and test again, it should work as expected now.

I'm sorry about this, i almost forgot postfix ldap lookup

And, Restrict search base in a small area/tree is better for performance.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?