PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.postfix.users > Forward mail from one domain but not another
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Forward mail from one domain but not another

Réponse
 
LinkBack Outils de la discussion
Vieux 16/04/2006, 22h02   #1 (permalink)
iansays@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Forward mail from one domain but not another


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

  Réponse avec citation
Vieux 17/04/2006, 01h49   #2 (permalink)
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Forward mail from one domain but not another

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





  Réponse avec citation
Vieux 17/04/2006, 15h51   #3 (permalink)
iansays@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Forward mail from one domain but not another

I give it a try, thanks!

Ian

  Réponse avec citation
Vieux 21/04/2006, 01h19   #4 (permalink)
iansays@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Forward mail from one domain but not another

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

  Réponse avec citation
Vieux 21/04/2006, 06h37   #5 (permalink)
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Forward mail from one domain but not another

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




  Réponse avec citation
Vieux 21/04/2006, 17h15   #6 (permalink)
iansays@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Forward mail from one domain but not another

That did it. Thanks, Greg. I appreciate your .

Ian

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h09.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11316 seconds with 14 queries