View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Mon Aug 09, 2004 8:03 pm Post subject: [CLOSED] forward mail thru main server (Postfix) |
|
|
Is it possible to set up Postfix so that if any mail comes thru the box attached with a certain FQDN, the box will immediately pass that email onto another server for processing as neither standard nor virtual users reside on that server?
The server is already permitted as an outgoing relay for two mail servers.
Last edited by trossachs on Wed Oct 06, 2004 6:15 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grimm26 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/77136029440c8ec5dde412.png)
Joined: 23 May 2004 Posts: 313 Location: Chicagoland, IL
|
Posted: Mon Aug 09, 2004 9:14 pm Post subject: |
|
|
By "attached with a certain FQDN" to you mean _to_ a certain FQDN, like joe@FQ.DN? If so, an mx entry in DNS is what you want. _________________ "Blessed is he who finds happiness in his own foolishness, for he will always be happy". |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Tue Aug 10, 2004 3:17 am Post subject: |
|
|
I don't quite understand what you mean. Do you mean that I should just add an MX record for that particular FQDN at the ISP end? This can be done anyway, but I would rather one site and then to divert mail from that location. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Aug 10, 2004 5:06 am Post subject: |
|
|
If I'm reading your question correctly you'd want to do the following.
Set your MX to point all your domains at server.domain.com. You'll need to do this for each server as you can not do a wildcard MX record.
Next configure your MTA to accept mail for all these domains. Then build a smtproute table, format depends on MTA, to send them to the proper server.
An example of /etc/postfix/tranport would be
Code: |
server1.domain.com :smtp:mail1.domain.com
www2.domain.com :smtp:mail2.domain.com
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Aug 11, 2004 10:18 pm Post subject: |
|
|
This is exactly correct thank you. A slight concern is that the transport protocol you make mention of is not currently in use with my configuration of Postfix. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Aug 12, 2004 9:27 pm Post subject: |
|
|
IIRC you'll want to add the follow to your config, but I'd doublecheck with Postfix's docs just to make sure.
transport_maps = hash:/etc/postfix/transport
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Sat Aug 14, 2004 10:41 am Post subject: |
|
|
Will investigate and advise. Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|