ispCP - Board - Support
Redirect mail to another mailserver - 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: Redirect mail to another mailserver (/thread-5746.html)



Redirect mail to another mailserver - peman - 02-17-2009 10:36 PM

Hello

I just wonder where and how i can edit the file transport?

Its like this. i have a domain kalle.com on my ispCP then i have mail accounts on another mail server.

i need to tell it that mail should be redirected to this other mailserver in the same network. How can i do that?

i want to have ispCP log mail to support@kalle.com.

i hope you understand what i mean.

Thanks
My OS: Debian


RE: Redirect mail to another mailserver - joximu - 02-17-2009 10:41 PM

Hi

you have to setup the dns: MX point to your mail server
you setup the domain kalle.com in ispcp with "diable mail" (-1) - so there is no postfix configuration made for this domain - so the ispcp server looks up the dns and sends mail to the mailserver.

/J


RE: Redirect mail to another mailserver - peman - 02-17-2009 11:01 PM

(02-17-2009 10:41 PM)joximu Wrote:  Hi

you have to setup the dns: MX point to your mail server
you setup the domain kalle.com in ispcp with "diable mail" (-1) - so there is no postfix configuration made for this domain - so the ispcp server looks up the dns and sends mail to the mailserver.

/J

Hi and thank you for your fast reply.
Where can i find this file?


RE: Redirect mail to another mailserver - joximu - 02-17-2009 11:10 PM

which file?

the zone file on the dns is - if it's a bind on debian - in /var/cache/bind/kalle.com.db
Make sure, you also make changes on the working copy /etc/ispcp/bind/working/kalle.com.db

the disabling of any mails for kalle.com in ispcp is setup in the gui... (number of mail accounts: -1)

Hope this is what you want

/J


RE: Redirect mail to another mailserver - peman - 02-18-2009 12:03 AM

Yes thank you, this is what i want but do i need to restart anything cause i still got the same error message "550 5.1.1 <support@kalle.com>: Recipient address rejected: User unknown in virtual mailbox table"

I tried to mail support@kalle.com from another domain that is on the same server as kalle.com and it gives the that message. also the log files says the same, unkown user.

I change the mx to point to our other mailserver in both files and i have disable mail in the GUI of ispCP.


RE: Redirect mail to another mailserver - rbtux - 02-18-2009 12:18 AM

(02-18-2009 12:03 AM)peman Wrote:  "550 5.1.1 <support@kalle.com>: Recipient address rejected: User unknown in virtual mailbox table"

you still have postfix configured for this domain... check /etc/posfix/domains


RE: Redirect mail to another mailserver - peman - 02-18-2009 12:50 AM

(02-18-2009 12:18 AM)rbtux Wrote:  
(02-18-2009 12:03 AM)peman Wrote:  "550 5.1.1 <support@kalle.com>: Recipient address rejected: User unknown in virtual mailbox table"

you still have postfix configured for this domain... check /etc/posfix/domains

hmm yes but if i have disabled mail in GUI then it should be erased, right?
it is in many files for postfix.


RE: Redirect mail to another mailserver - joximu - 02-18-2009 02:38 AM

maybe ispcp does not erase the line...

comment out the line with the domain in /etc/postfix/ispcp/domains
run postmap domains (in the folder)

test

if it's ok, also comment out in /etc/ispcp/postfix/working/domains

/J