Hi,
I've configured my Zimbra system in this way:
- All local addresses are rewriten from
user@local.domain to
userintheisp@isp.com with a smtp_generic_maps option in main.cf
- The mail is fetched from the ISP with fetchmail:
Code:
poll pop3.isp.com user userintheisp@isp.com with password pass is user@local.domain
Everything works as expected: users can send mail as
user@local.domain and receive mail as
userintheisp@isp.com. Local mail between
user1@local.domain and
user2@local.domain works well.
The problem starts when the AS/AV option is started:
- Local users can send mails
- Local users don't receive mails fetched from fetchmail because amavisd gets the MX record of the rewrited address (userintheisp@isp.com) as the relay.
How can I tell amavis to not relay some addresses and deliver locally? Is it possible to rewrite the recipient address before scanning/antispamming?
Thanks!