OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: MYSQL virtual setup

From: Markus Edholm (sitemasterfro.se)
Date: Wed Jan 02 2008 - 13:45:03 CST


Wietse Venema wrote:
> Markus Edholm:
> [ Charset ISO-8859-1 unsupported, converting... ]
>> Hi List
>>
>> I?m feeling quite puzzled
>>
>> I have an "ordinary" mailserver that I now extended with an mysql table for
>> virtual mail forwarding.
>>
>> but I dont understand following error from mail.log:
>>
>> Jan 1 15:52:23 postfix postfix/trivial-rewrite[22495]: warning: do not list
>> domain orebro.example.net in BOTH virtual_mailbox_domains and relay_domains
> ...
>> relay_domains = example.net
>> virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
>
> What is the output of:
>
> $ postmap -q orebro.example.net \
> mysql:/etc/postfix/mysql_virtual_domains_maps.cf || echo not found
>
> The output should be: "not found".
>
> Wietse

OK, I see, sorry I did not told you whole story that spells "postfixadmin".
There I been forced to add new domain before add alias for that same virtual
domain. Then because it is a subdomain that I added I end up with error.
The mail works anyhow but it is not comfortable with errors and warnings in log.

If I remove the domain from postfix.domain in mysql the error is gone, but then
I loose ability to add new aliases with postfixadmin web tool.

So I made some more testing and added an other domain and alias (not subdomain
to mydomain)
with postfixadmin, and then All work without warnings for
virtual_mailbox_domains and relay_domains

How to overcome subdomain issue ? or is it an issue?

/Markus