Postfix: Relay access denied
Hi all,
Sorry to be posting again in such a short amount of time, but I'm trying to solve a Postfix problem. It relates to my new installation of ispCP, a web hosting control panel. For some odd reason, I cannot send mail to my server and have it accepted and queued. It simply spits out errors saying, "smtp; 5.1.0 - Unknown address error 554-'<>: Relay access denied' (delivery attempts: 0)". I was looking over the Postfix documentation and it says you can resolve this with a "virtual_alias_domains" or "virtual_mailbox_domains" directive. I have a "virtual_mailbox_domains" directive in my config and it still gives me errors. Here is my "main.cf" file: Code:
# Thanks very much! You guys are awesome and helpful! --Todd |
I run postfix and have a line in main.cf that reads:
mynetworks = 192.168.1.0/24, 127.0.0.0/8 That covers every host on my subnet and allows me to relay from internal hosts only. |
I tried that but I figured out that adding a "relay_domains" directive makes it go away. But now it says, "mail for xetaspace.net loops back to myself". How can I fix this? My "relay_domains" variable contains "xetaspace.net" and nothing else.
|
I was skimming over the Postfix docs and it says you can disable relaying with "virtual_mailbox_domains" or "virtual_alias_domains". I have "virtual_mailbox_domains" in my config but why is Postfix still attempting to relay all mail? Is there a way to disable it completely?
|
Here is what my config looks like. With this I can relay through all hosts on my internal LAN and exclude any mail relaying attemps from the outside:
Code:
queue_directory = /opt/postfix/var/spool |
All times are GMT -5. The time now is 06:07 PM. |