204567Re: Forwards with MySQL
- Sep 1, 2006Alvaro Marín wrote:
> I've configured Postfix to use MySQL tables with alias or forwardings:You can use transport_maps. Forward otheruser@... via smtp
> where alias_domains table has for example:
> and the alias_maps table:
> This example runs fine, but if for example I add "otherdomain.com" to
> alias_domains table, it search for the user "otheruser" in MySQL table
> (logically) instead of send the mail to the MX.
> Is there any way to send directly the message to the "otherdomain.com"'s
> MX without searching on the table again?
to the other MX. Anyhow you should/must add this user to the table:
always looks in the table but the alias mapping is the same. It then can
take the transport_maps to forward the message to a different server.
> Other thing that I want to ask is that if the alias_maps table has onlyThis should have something to do with how you specify the MySQL-query
> 2 fields (alias and destination) I can use for example:
> @... -> ouser@...
> to forward all the accounts from @domain to other account, but if I
> create that table with 3 fields (alias_user, alias_domain and
> destination) this doesn't work...any idea?
and how you created the table. For MySQL it is a difference if you have
an empty string for alias_user or if you have NULL.
- << Previous post in topic Next post in topic >>