![]() |
Postfix Transport(5)
Hi all, now that i have postfix installed and working in a fasion i decided that i should be checking some of its other features. The one that strikes me as most useful is the transport file. But i currently don't know how to set it up. Would someone be able to help me?
Many Thanks in Advance Dan |
Transport can do a lot of things. Here's an example.
In main.cf, you have the entry Code:
transport_maps = hash:/etc/postfix/transportNow in my transport file, I have entries like: Code:
fax.mydomain.com fax:localhostIn master.cf Code:
fax unix - n n - 1 pipeHope that makes some sense. |
Set it up to do what?
Search transport here: http://www.postfix.org/STANDARD_CONF...ON_README.html for examples. |
I'm assuming he just wants to have a play
|
So if i wanted to redirect all internal mail to one destination and then have everything external going to another address, would i just have to vi /etc/postfix/transport then add a couple of lines in to the bottom of the file? Would the following lines suffice?
my.domain.com :[Internal.my.domain.com] .my.domain.com :[external.my.domain.com] |
You would use a regexp or pcre map:
Code:
/^domain\.com$/ smtp:[Internal.my.domain.com] |
| All times are GMT -5. The time now is 04:05 AM. |