LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2012, 10:26 AM   #1
lpacor
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
Question Postfix: how to relay mails for only one user of a certain domain


Hello there,

First of all I tell you that this is my first postfix installation so please be patient...

I have following scenario:

fetchmail --> postfix --> amavis-new --> postfix --> exchange 2010. Everything -except exchange ;-)- runs on an opensuse 12.1 box.

Now, I have a list of domains entirely managed and hosted here so I have resolved everything using the transport file (do.main.name smtp:[exchange.ser.ver]) and the entries in the main.cf file (mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, do.main.one, do.main.two, domain.diffi.cult).

So far so good, everything seems to work for the "simple" domains.

Now, I have got one user with an address at domain.diffi.cult and this domain is not hosted by me. This user has a mailbox on the exchange server and everything is working fine on that side.

How can I configure postfix to deliver the mails for myuser@domain.diffi.cult locally and all the others @domain.diffi.cult to the internet?

Any help will be much appreciated!

Thank you very much in advance,
Luca
 
Old 02-12-2012, 12:14 PM   #2
jernejp
LQ Newbie
 
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
I am not sure if it is possible to deliver emails for myuser@domain.diffi.cult locally and all the others @domain.diffi.cult to the internet.
Instead I would simply forward all emails that are sent to myuser@domain.diffi.cult (on exchange) to some other email account on your linux box...
Regards,
Jernej
 
Old 02-12-2012, 01:56 PM   #3
lpacor
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks a lot for the reply!
Maybe I wasn't clear enough... We are talking about an home network environment. I am the owner of those "simple" domains. All the managed domains are regularly polled with fetchmail, scanned for spam/viruses with amavis and then sent to the users mailboxes. Those domains can be managed locally because all user of those domains also have an exchange mailbox.
The user @ the difficult domain also has an exchange mailbox and has to send and receive mails using outlook/exchange. His address @ that domain can't be changed, it's an old known address. Exchange works fine. If he sends mails to the other users/domains it works, if the other users/domains send mails to him it works, especially within exchange.
The problem is that if I declare in postfix that domain as local, postfix tries to deliver all the mails addressed to users @ the difficult domain locally (to the exchange server) and that is wrong.
I succeeded in having a working config based on sendmail, but now for some reasons I have to switch to postfix.
Any clue anybody?

Thanks
Luca
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make postfix only relay certain domain mail? jimmyjiang Red Hat 7 02-06-2013 06:08 AM
POSTFIX - Relay Denied in other domain name cheesewizz Linux - Newbie 3 06-12-2011 09:25 PM
Postfix user@domain restricted mail relay configuration bntawil Linux - Server 1 07-22-2008 05:35 PM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration