1

Topic: Postfix mydestination settings/warning

======== Required information ====
- iRedMail version:  0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue: /var/log/mail.warn
====

The log is filled with:

warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains

postconf -n:

mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = mydomain.com
myhostname = mydomain.com

cat /etc/hostname:

mydomain

How can this be corrected?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Postfix mydestination settings/warning

It's always a good idea to search this forum before posting new topic. Answer here: http://www.iredmail.org/forum/post24920.html#p24920

3

Re: Postfix mydestination settings/warning

ZhangHuangbin wrote:

It's always a good idea to search this forum before posting new topic. Answer here: http://www.iredmail.org/forum/post24920.html#p24920

Thanks, but it is not clear if the solution is suggesting the field should be set to blank.

It's clear here. Your server hostname cannot be the same as (one of) your virtual mail domain name.
You can change your server hostname, and update Postfix parameter "myhostname =" in /etc/postfix/main.cf.

It should also be noted that the current setup seems to be working fine; emails can be sent and received.

4

Re: Postfix mydestination settings/warning

Of course Postfix parameter "myhostname" cannot be set to blank. You just cannot set it to the one which is same as your virtual mail domain name.