HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1) (http://www.howtoforge.com/forums/showthread.php?t=25675)

nacef 31st July 2008 18:09

Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)
 
Hi all,

I am trying to set a mail server with this tutorial and it worked just great for me. There is although one thing that I am trying and I can't get it to work.

The virtual domain that I have configured on my server is registered at my ISP and I have some email adresses registered at the ISP on this domain. What I want to have on my server is some other email accounts with the same domain name and keep my old accounts on the ISP server, and I want them to be able to send emails to each other semlessly.
I will give an example :
on my ISP server I have these accounts : user1@mydomain.com and user2@mydomain.com
On my local server I want to have the same domain mydomain.com as a virtual domain and create user3 and user4@mydoamin.com and I want to be able to send from these local accounts to the external accounts.
When I try to send something to an external account the server tells me :Recipient address rejected: User unknown in virtual mailbox table which is quite normal as it cannot find this address on my server but is there a way to make him go external through my relayhost when it doesn't find a registered account

Thanks to all

falko 1st August 2008 13:46

You can try Postfix transports. See
Code:

man 5 transport

nacef 1st September 2008 00:01

Hi falko,

I have tried to add this transport rule in the transport table :
domain = mydomain.com
transport = smtp:my_isp_smtp_server

But it seems that it doesn't work

Any help ?

falko 1st September 2008 17:44

I think the line should look like this:

Code:

mydomain.com smtp:my_isp_smtp_server

nacef 2nd September 2008 13:03

That' waht I did, I am using Mysql as a backend for my postfix. So I had to insert these values in the transport table. But now when I try to send to some external mail address, it keeps telling me that the user account could not be found as if it were a local account.

So any clues ?


All times are GMT +2. The time now is 16:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.