Topic: smtp_generic_maps what am I missing?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? Yes
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
I am in that process of two domains in the same server and I had made a good advance. As soon as I finish it, teste it well and see that it is really working, I'll post here what I did, step by step so others will have the chance to have a solution, too
Now I am stuck at the smtp_generic_maps - it works (kind of).
I'll try to detail what has been done without too much hustle.
Edited the file /etc/postfix/main.cf and changed the following line:
virtual_mailbox_domains = currentdomain.com.br newdomain.com.br
This way I can add the new domain to the mailboxes aliases in AD using the othermailbox attribute.
When I try to send e-mail to email@example.com or to firstname.lastname@example.org both arrive to the same inbox, i can reply or write new mails to email@example.com or firstname.lastname@example.org, which is correct. It works both internally and externally (I use an ISP webmail to make the external tests).
Still in main.cf file, added the following line:
smtp_generic_maps = hash:/etc/postfix/generic
Content of /etc/postfix/generic content:
then fire up a postmap /etc/postfix/generic to create the database.
The e-mail gets to the destination like email@example.com, which is what I expected.
But when I try to reply it, postfix says that the mailbox doesn't exist (firstname.lastname@example.org). It happens both if I send the e-mail internally or externally. Even if I try to write a new mail internally to the email@example.com it gives me the "Undelivered Mail Returned to Sender" mail.
it looks like as if Postfix is "seeing" the newdomain.com.br as external, but it isn't. I set my DNS to resolve the newdomain.com.br hosts as internal address.
Now, when I disable the smtp_generic_maps everything returns to its normal, but I can't make the mail go out with @newdomain.com.br
I don't know where to look for. What I am missing? Do I have to deactivate something? Any clue will very welcome.