LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 08-03-2012, 11:11 AM   #1
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Rep: Reputation: 27
[postfix] transport 1 specific email address to another server


Hi,

I was looking at mailbox_transport_maps = hash:/etc/postfix/transports to transport 1 specific email address to another server.

setup:
postfix mta with antispam etc. => fwd to postfix mta for local imap delivery.

The second postfix has a domain @domain.test (example) and local users (passwd) with imap directories.

Now, I have one other mailserver for a testcase and I want to forward exactly 1 email address to this new server. But this email address also exists on the postfix-imap-server.

I tried with the mailbox_transport_maps which should do this but I seem to err somewhere there.

the transports is just a file like this:
support@domain.test smtp:[192.168.1.10]

it has been transformed to db with "postmap /etc/postfix/transports" and the transports.db exists.

How can I forward one email address? I know how to transport a virtual domain but this I cannot find.

postfix info: http://www.postfix.org/postconf.5.ht...transport_maps
...
Optional lookup tables with per-recipient message delivery transports to use for local(8) mailbox delivery, whether or not the recipients are found in the UNIX passwd database
...
for me this looks like it should work but instead the mail is only delivered locally on the postfix-imap-server and not forwarded to the testcase server.

thanks,
Lieven

note: if I do a telnet mailtest from the postfix-imap-server to the testcase server and try a mail, it works. support@domain.test is deliverable on the testcase server.

Last edited by lievendp; 08-03-2012 at 11:12 AM.
 
Old 08-06-2012, 02:59 AM   #2
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Original Poster
Rep: Reputation: 27
anybody got an idea? Or do I have to use procmail for this one?
 
Old 08-06-2012, 03:50 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364

Rep: Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189
Hi,

Use a ~/.forward file containing:
Code:
support@testcase.domain.net
assuming that your postfix server can resolve the testcase.domain.net hostname

Regards
 
Old 08-27-2012, 02:51 AM   #4
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Original Poster
Rep: Reputation: 27
In the end, I just created a new domain to forward the mails to this test-server.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dropping all email for specific email address DebianUser Linux - Server 4 06-13-2011 11:20 AM
Deny specific address from at Postfix maceee Linux - Server 1 07-08-2010 06:40 PM
run a shell script/cronjob when any email arrive to specific email address ikillu Linux - General 3 05-30-2009 08:18 AM
how to Blacklist specific email in postfix nhansense Linux - Server 19 08-22-2008 03:00 PM
About blocking specific email address alucard001 Linux - Server 1 12-17-2006 07:48 AM


All times are GMT -5. The time now is 07:37 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
Open Source Consulting | Domain Registration