|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
I have a postfix server, "Server." It is acting as the SMTP server for 2 domains, domain1.com and domain2.com. I need "Server" to relay mail from domain1.com to another SMTP server, "RealSMTPServer," while distributing domain2.com mail as usual. Alternatively, I could also relay domain2.com to "RealSMTPServer2." Any on how to do this would be appreciated. Thanks very much. Ian |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
iansays@gmail.com wrote:
> I have a postfix server, "Server." > > It is acting as the SMTP server for 2 domains, domain1.com and > domain2.com. > > I need "Server" to relay mail from domain1.com to another SMTP server, > "RealSMTPServer," while distributing domain2.com mail as usual. > > Alternatively, I could also relay domain2.com to "RealSMTPServer2." > > Any on how to do this would be appreciated. Thanks very much. > > > Ian > The Snapshot version of Postfix at www.postfix.org has a new feature called sender_dependent_relayhost maps: sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps --< /etc/postfix/relaymaps >-- domain1.com RealSMTPServer The feature should be in the next release of Postfix. But some people are running the Snapshot version in production with no problems. -- Greg |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
ok. I've got a 2.3 snapshot 20060418 installed and it's running fine.
However, I can't get sender_depedent_relayhost_maps to actually *do* anything. I've got: sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps in my main.cf along with domain1 <whitespace> RealSMTPServer domain2 <whitespace> RealSMTPServer2 in the relaymaps file. Regardless of the sending address, the server processes the email as usual, and delivers it, rather than passing it on to the servers specified in relaymaps. I'm not sure what I'm missing..... Ian |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
iansays@gmail.com wrote:
> ok. I've got a 2.3 snapshot 20060418 installed and it's running fine. > However, I can't get sender_depedent_relayhost_maps to actually *do* > anything. > > I've got: > > sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps > > in my main.cf > along with > > domain1 <whitespace> RealSMTPServer > domain2 <whitespace> RealSMTPServer2 > in the relaymaps file. > > Regardless of the sending address, the server processes the email as > usual, and delivers it, rather than passing it on to the servers > specified in relaymaps. > > I'm not sure what I'm missing..... > > > Ian Put an @ in front of the domain: @domain1 RealSMTPServer @domain2 RealSMTPServer2 -- Greg |
|
![]() |
| Outils de la discussion | |
|
|