Postfix server rejecting emails sent from outside the host
Hi,
I've recently followed a guide I found online [1] and installed Postfix and Courier on my server machine. I can send emails from the server to any email address but unfortunately I can only receive emails sent from the server - it's only accepting emails sent locally from the host. In other words, if I try sending myself an email from, say, GMail, it is rejected and an error email generated (see below.) /etc/postfix/main.cf Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version Code:
Delivery to the following recipient failed permanently: [1] http://www.howtoforge.com/virtual-us...l-ubuntu-11.04 |
There may be other errors, but mydestination should be blank when you are hosting virtual domains.
Like this: mydestination = |
Quote:
Any one has any other ideas? How can I troubleshoot what's wrong? |
Postfix relay configuration
belnac,
I am not a Postfix guy, but if you followed the howtoforge.com guide, you now have a MySQL database with a table called "domains". Look at that table. Is there a value, "MYHOSTHERE.com" in the table? If not, Postfix won't relay, even though it may be the only domain to which you expect to relay. I think that database key serves the same purpose as the "relay_domains" parameter in main.cf. Try this: comment out the "virtual_mailbox_domains" line in main.cf, put a line in main.cf like "relay_domains = MYHOSTHERE.com", restart Postfix, and send a test message from your Gmail account. You don't want a value in both relay_domains (in main.cf) and virtual_mailbox_domains (in your MySQL database). |
All times are GMT -5. The time now is 03:35 AM. |