Current time: 08-14-2022, 07:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
Redirect mail to another mailserver
Author Message
peman Offline
Banned

Posts: 77
Joined: May 2008
Post: #1
Redirect mail to another mailserver
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
02-17-2009 10:36 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Redirect mail to another mailserver
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
02-17-2009 10:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
peman Offline
Banned

Posts: 77
Joined: May 2008
Post: #3
RE: Redirect mail to another mailserver
(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?
02-17-2009 11:01 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Redirect mail to another mailserver
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
02-17-2009 11:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
peman Offline
Banned

Posts: 77
Joined: May 2008
Post: #5
RE: Redirect mail to another mailserver
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.
02-18-2009 12:03 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: Redirect mail to another mailserver
(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
02-18-2009 12:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
peman Offline
Banned

Posts: 77
Joined: May 2008
Post: #7
RE: Redirect mail to another mailserver
(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.
02-18-2009 12:50 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Redirect mail to another mailserver
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
02-18-2009 02:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)