*) Your Postfix config file looks fine, no idea why emails were sent to root@mydomain.org, it should be sent to "postmaster@mydomain.org" (as defined in /etc/postfix/aliases) instead.

Yes, that's what I 've been thinking about. Do I have to do a "postalias /etc/postfix/aliases" to fix this problem ? Please see the line "postmaster: root" in /etc/postfix/aliases. It is weird. Why is it again forwarding to the root ?

]]>Mon, 20 May 2013 03:19:01 +0000http://www.iredmail.org/forum/post22137.html#p22137http://www.iredmail.org/forum/post22135.html#p22135
*) Mail #1 is generated by cron jobs. You should update parameter "ServerName" to use the new server hostname in Apache config file.

]]>Sun, 19 May 2013 11:01:22 +0000http://www.iredmail.org/forum/post22127.html#p22127http://www.iredmail.org/forum/post22115.html#p22115
*) Create a new mail user "root@mydomain.org" with iRedAdmin-Pro, then check the mail it received to figure out why your server generates this email everyday.

*) Please show us output of command "postconf -n" and file /etc/postfix/aliases here to help troubleshoot. Of course you should replace sensitive info before pasting.

I did that yesterday. As per DigitalOcean's advise, I have changed the DropletName, the Reverse DNS (PTR Record) and the VPS hostname (/etc/hostname) to mx.mydomain.org. They suggested that these values should be the same. Then I updated the myhostname in /etc/postfix/main.cf to mx.mydomain.org and updated mydestination too.

But the unwanted connection is still coming. Please see the report below. I have noticed that there is only one such connection per day. But it is coming everyday.

Now, Do you want me to change the hostname of the VPS to something different from the "First Virtual Domain Name" (for example abc.org) and then update the same value in 'myhostname' in /etc/postfix/main.cf ? Is that what you mean in your above reply ?

Yes.

Let's say you change the server hostname to "mx.mydomain.org", the result in Postfix main.cf should be:

* I am using the MX Record as 'mydomain.org.' in the DNS setting.* Before iredmail installation, I have set the hostname of my VPS to mydomain.org* During iredmail installation, I have set the "First Virtual Domain Name" to mydomain.org, by mistake.* As per your advise, I have already removed the 'myhostname' from the mydestination line in /etc/postfix/main.cf last week.

Now, Do you want me to change the hostname of the VPS to something different from the "First Virtual Domain Name" (for example abc.org) and then update the same value in 'myhostname' in /etc/postfix/main.cf ? Is that what you mean in your above reply ?

Please clarify. Thanks.

]]>Tue, 14 May 2013 10:40:55 +0000http://www.iredmail.org/forum/post22006.html#p22006http://www.iredmail.org/forum/post21987.html#p21987
Seems not that good to just remove server hostname in "mydestination=". Please try this:

*) Do you have both server hostname and virtual mail domain set to "mydomain.org"?

Yes they were set to mydomain.org initially. It was a mistake. But I have already fixed this by changing the following line in /etc/postfix/main.cf, as per your advise. ( Removed $myhostname ).mydestination = localhost, localhost.localdomain, localhost.$myhostname

ZhangHuangbin wrote:

*) Please show us output of command "postconf -n" here to help troubleshoot.

]]>Sat, 11 May 2013 16:32:18 +0000http://www.iredmail.org/forum/post21979.html#p21979http://www.iredmail.org/forum/post21951.html#p21951
*) Do you have both server hostname and virtual mail domain set to "mydomain.org"?*) Please show us output of command "postconf -n" here to help troubleshoot.]]>Fri, 10 May 2013 12:23:00 +0000http://www.iredmail.org/forum/post21951.html#p21951http://www.iredmail.org/forum/post21925.html#p21925
ZhangHuangbin wrote:

Did you check the email it sent out? You can add an alias in /etc/postfix/aliases, forward all emails sent to root user to an valid email address. For example:

# File /etc/postfix/aliases
root: user@domain.ltd

There is already an entry in the aliases file:root: postmaster@mydomain.org

But I checked the postmaster email account and there are no emails in the inbox. I didn't execute the postalias command, as the entry was already there in the aliases file.

Please suggest.

]]>Thu, 09 May 2013 02:50:20 +0000http://www.iredmail.org/forum/post21925.html#p21925http://www.iredmail.org/forum/post21900.html#p21900
Did you check the email it sent out? You can add an alias in /etc/postfix/aliases, forward all emails sent to root user to an valid email address. For example:

# File /etc/postfix/aliases
root: user@domain.ltd

After you modified /etc/postfix/aliases, please execute command "postalias /etc/postfix/aliases" to update its db file which used by Postfix.