LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-21-2009, 03:25 AM   #16
bandad
LQ Newbie
 
Registered: Dec 2005
Location: Surrey, UK
Distribution: slackware, ubuntu, and ipcop
Posts: 25

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by Berhanie View Post
Since domain2 is in the virtual mailbox class, postfix will reject mail to recipients not listed in vmaps. The solution is either 1. to list all valid recipients in vmaps (this includes users on both the local machine and the remote domain2 MX), or 2. have a catchall entry in vmaps. The mailbox that you list is just a dummy, since transport_maps determines the final transport in the end.
This looks like a good idea. Are you saying that Postfix checks the recipient first and then selects the transport? If that is the case then this could work. How do you put a catch-all in vmaps?

I should explain the domain1 & 2 issues a bit more clearly.
Domain1 is the local domain. Domain2 is a replica of the actual domain2 which is managed by the second company. We are duplicating it here so that my client can have his own copy of all incoming and outgoing mail on his own server, which is a specified requirement. However, when he sends emails to his colleagues he wants them forwarded to the real domain2 and not have them intercepted by the replica version locally. Is that clearer?

Can you explain why the local sendmail message was routed correctly even though the recipient was not in the vmaps?
 
Old 05-21-2009, 03:33 AM   #17
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The example you gave the recipient is in vmaps isn't it?.

For a catchall, just use "@domain2.co.uk /path/tp/dummy/mailbox" I think is the format.
 
Old 05-21-2009, 04:01 AM   #18
bandad
LQ Newbie
 
Registered: Dec 2005
Location: Surrey, UK
Distribution: slackware, ubuntu, and ipcop
Posts: 25

Original Poster
Rep: Reputation: 15
OK, I have changed the vmaps as suggested. The local test works fine (as before). I have asked my client to send another email to test if it has solved the problem.
Will update you when that has happened.

thanks
 
Old 05-21-2009, 04:05 AM   #19
bandad
LQ Newbie
 
Registered: Dec 2005
Location: Surrey, UK
Distribution: slackware, ubuntu, and ipcop
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
The example you gave the recipient is in vmaps isn't it?.
Sorry, that is my slack use of name/director/boss coded terminology!
The vmaps now includes something like the following:

director@domain1.co.uk /domain1.co.uk/director/
director@domain2.co.uk /domain2.co.uk/director/
@domain2.co.uk /domain2/dummy
 
Old 05-21-2009, 11:45 AM   #20
bandad
LQ Newbie
 
Registered: Dec 2005
Location: Surrey, UK
Distribution: slackware, ubuntu, and ipcop
Posts: 25

Original Poster
Rep: Reputation: 15
Success!
Using a catch-all for the domain2 destination in vmaps has enabled postfix to accept the mail, and the transport file routes it to the correct relay host (domain2's mx).

Thanks Berhanie and billymayday for your assistance.

Next problem is to now route all mail to the right relay based on originator. Expect a new thread if I can't get that working.
 
Old 05-21-2009, 05:30 PM   #21
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not quite sure what you are trying to achieve, but I think you may want to look at access maps. See man 5 access
 
  


Reply

Tags
postfix, transport


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
postfix mail transport problem ayush1440 Linux - Server 3 03-17-2008 05:45 AM
how to forward mail to postfix virtual user justkeny2k Linux - Networking 7 12-22-2006 12:43 AM
mail filtering with Postfix and virtual mailboxes pembo13 Linux - Networking 2 09-17-2004 07:09 AM
No Incoming postfix mail, virtual domains geokker Linux - Software 0 06-22-2004 06:09 AM
Is virtual user for mail (postfix) and ftp (proftpd) possible pembo13 Linux - Software 0 01-11-2004 03:30 PM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration