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 > Return path - Virtual domains
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Return path - Virtual domains

Réponse
 
LinkBack Outils de la discussion
Vieux 09/04/2006, 22h04   #1 (permalink)
balman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Return path - Virtual domains

Ok this is the problem I have,
I run a webserver with 2 domains hosted .. a.com and b.com

both these servers require user registrations and these are sent off
automatically
by a perl script ..

so for one i set "From => registrations@a.com'
and from the other : From => registrations@b.com

These mails are fired off via perl, using the webserver user.

the problem i have, is this, since both are fired off by the same user,

the Return-Path is both cases is webserveruser@a.com given my

myhostname = mail.b.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = b.com
mydestination = localhost.localdomain , localhost.localdomain,
localhost

and all the usual virtual domains with mysql stuff ..

I have dug and dug, and cannot find a way to make the "return-path"
from a.com to be support@a.com and that of
b.com to be support@b.com

any ideas? on how i can get this to work, i know the Return-Path is set
to $sender in sendmail or MAIL FROM
Me specifying a From as part of my mail delivery script, should there
set the Return-Path to the from address right?

This does not happen.

How can i make it work ..

  Réponse avec citation
Vieux 11/04/2006, 14h58   #2 (permalink)
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Return path - Virtual domains

balman wrote:
> Ok this is the problem I have,
> I run a webserver with 2 domains hosted .. a.com and b.com
>
> both these servers require user registrations and these are sent off
> automatically
> by a perl script ..
>
> so for one i set "From => registrations@a.com'
> and from the other : From => registrations@b.com
>
> These mails are fired off via perl, using the webserver user.
>
> the problem i have, is this, since both are fired off by the same user,
>
> the Return-Path is both cases is webserveruser@a.com given my
>
> myhostname = mail.b.com
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = b.com
> mydestination = localhost.localdomain , localhost.localdomain,
> localhost
>
> and all the usual virtual domains with mysql stuff ..
>
> I have dug and dug, and cannot find a way to make the "return-path"
> from a.com to be support@a.com and that of
> b.com to be support@b.com
>
> any ideas? on how i can get this to work, i know the Return-Path is set
> to $sender in sendmail or MAIL FROM
> Me specifying a From as part of my mail delivery script, should there
> set the Return-Path to the from address right?
>
> This does not happen.
>
> How can i make it work ..
>


You wrote:
"These mails are fired off via perl, using the webserver user.
both are fired off by the same user. these are sent off
automatically by a perl script"

I suspect that the solution will be within your perl script, and not Postfix.

The script not only needs to define the "From:" header in the message body,
as well as any other reply headers, but also needs to specify it's own sender
name for the MAIL FROM protocol (in the envelope address).

For example, depending upon which web server is doing the registration, the
script should effectively pass the mail something like this:

sendmail -f registrations@a.com < file
sendmail -f registrations@b.com < file

or whatever the syntax is for the particular package you to hand off the email.
--
Greg





  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 09h44.


É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,08916 seconds with 10 queries