Subject: trivial-rewrite warning although mydestination is empty

Hello Postfix users!

A few days ago I modified the configuration of my Postfix 2.6.2 mail
server. Now I am just using the virtual addressing system of Postfix
(virtual_alias* and virtual_mailbox*) and two transports for delivering
incoming mails to virtual mailboxes managed by other applications. As I
want Postfix to not deliver mails to local UNIX accounts I set
"mydestination =" and "alias_maps =" in the main.cf and removed the "local"
application out of the master.cf. Everything works great and as I expect.
But now Postfix sometimes reports the following warning in my mail logs:

Jun 14 XX:XX:XX [postfix/trivial-rewrite] warning: do not list domain
mydomain.com in BOTH mydestination and virtual_alias_domains

Why does trivial-rewrite report this warning? "mydestination" is empty. Do
I misunderstand something? Is that a misconfiguration?

Parts of my 'postconf -n' output:
alias_database = 
alias_maps = 
config_directory = /etc/postfix
disable_vrfy_command = yes
message_size_limit = 25165824
mydestination = 
mydomain = mydomain.com
myhostname = mydomain.com
mynetworks = 127.0.0.0/8 (.. my ip)
(.. smtp(d) settings)
strict_rfc821_envelopes = yes
transport_maps = (.. my transports)
virtual_alias_domains = mydomain.com (.. and other virtual domains)
virtual_alias_maps = (.. my virtual alias maps; redirects mail at
mydomain.com to mailboxn...@mailbox.mydomain.com and/or external mail
addresses)
virtual_mailbox_domains = mailbox.mydomain.com (.. and other virtual
mailbox domains)
virtual_transport = (.. my default mailbox transport)

By the way I looked into the relevant parts of the Postfix source code and
found out that line 533+534 in the file src/trivial-rewrite/resolve.c is
raising this warning.

I hope somebody here can help me to understand this warning in the case
mydestination is empty. Thanks a lot.


Best regards.

Bernd Lommerzheim

Reply via email to