![]() |
Website local, mailserver external - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: Website local, mailserver external (/thread-1294.html) Pages: 1 2 |
RE: Website local, mailserver external - rbtux - 09-07-2007 09:51 PM you can do that on you own. you must do the following steps: 1. add the domain to relay_domains 2. add a transport in form of domain.tld relay:[ipoftheremoteserver] 3. add a list with valid recipients to the relay_recipient_maps. thats how we do spam checking for exchange servers (without ispcp) RE: Website local, mailserver external - hendry - 09-09-2007 05:34 PM rbtux Wrote:you can do that on you own.First step I already tried. There is no relay_domains in the Postfix config when freshly installed. When adding it manually the Postfixserver doesn't accept mail at all. I'm sure there must be a way to solve this, but I do not know how. Can it be because something is missing? Is there a way you past a example main.cf in here? RE: Website local, mailserver external - rbtux - 09-09-2007 07:09 PM main.cf Quote:transport_maps = hash:/etc/postfix/transport_map.hash/etc/postfix/transport_map.hash Quote:domaintorelay.tld relay:[ipofservertorelayto]/etc/postfix/relay_domains.hash Quote:domaintorelay.tld OK/etc/postfix/relay_recipient_maps.hash Quote:user1@domaintorelay.tld OK postmap /etc/postfix/transport_map.hash postmap /etc/postfix/relay_domains.hash postmap /etc/postfix/relay_recipient_maps.hash postfix reload you must ensure that for the other domains you want to receive mails appropriate entrys in the transportmap exists! RE: Website local, mailserver external - hendry - 09-18-2007 05:26 AM I did what is standing above but receiving a message now within the webmail: Recipient address rejected: User unknown in virtual mailbox table I entered the emailaddress in the files as stated above RE: Website local, mailserver external - rbtux - 09-18-2007 05:43 AM can you please post the output of postconf -n and transport_map RE: Website local, mailserver external - rbtux - 09-25-2007 01:31 AM the problem is the entry for the domain in virtual table... this entrys always comes before relay... A domain in postfix must not be in more than one of the following classes: virtual local relay I mentioned in the german corner that it would be great to have an option in ispcp to turn off the mailhandling for an entire domain... RE: Website local, mailserver external - meph137 - 03-05-2009 12:02 AM I just wrote up my own small guide on how to od this, having come from a total postfix newbie hopefully this helps someone in my position who is faced with this rather long winded task. Before I actually put the code in, is this sometrhing that is planned for IspCP? I've used cpanel and exim to do this before and it is SO much easier...you just remove a domain from local_domains and put it in remote_domains, this took me so long to do ![]() Also, every time I want an e-mail forwarded I'm going to have to add it to /etc/postfix/relay_recipient_maps.hash which is a huge pain! Quote:Set the domain to have external mx by changing /var/cache/bind/domain.name.db and duplicating changes to /etc/ispcpbind/working/domain.name.db Well, damn! I didnt have to go thruogh all this after all, I saw http://www.isp-control.net/forum/thread-4961.html which seemed much shorter, and that is all thats needed. I removed all my changes and put -1 on the domain to not handle email and removed the domain from /etc/postfix/domains and did postmap /etc/postfix/domains and postfix reload and all worked fine. Still though, disabling mail should remove the line from domains ![]() |