Modify the sender BEFORE passed to a mailer?

This is a discussion on Modify the sender BEFORE passed to a mailer? within the SendMail forums in Other Technologies category; In my "LOCAL_RULE_0" if the user is a specific user, I pass like this currently to the mailer : parse returns: $# mysmtp $@ smarthost.example.com . $: destuser< @ example . com . > the Mmysmtp has a S=mysmtp to do sender processing. Is there any way I can edit the sender passed to the mailer BEFOREHAND? I know once its in Smysmtp it can do it, but I need to edit it before it gets there. What I'd really like to do is set the sender to : actualsender@example.com <!> destuser@example.com or something like that. This was in the ...

Go Back   Application Development Forum > Other Technologies > SendMail

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-24-2008, 09:10 PM
Tuc
Guest
 
Default Modify the sender BEFORE passed to a mailer?

In my "LOCAL_RULE_0" if the user is a specific user, I pass like this
currently to the mailer :

parse returns: $# mysmtp $@ smarthost.example.com . $:
destuser< @ example . com . >

the Mmysmtp has a S=mysmtp to do sender processing.

Is there any way I can edit the sender passed to the mailer
BEFOREHAND? I know once its in Smysmtp it can do it, but I need to
edit it before it gets there. What I'd really like to do is set the
sender to :

actualsender@example.com <!> destuser@example.com

or something like that. This was in the Smysmtp I might be able to
parse it up and do a lookup on it.

Thanks, Tuc
Reply With Quote
  #2  
Old 08-25-2008, 01:38 AM
Andrzej Adam Filip
Guest
 
Default Re: Modify the sender BEFORE passed to a mailer?

Tuc <tuctboh@gmail.com> wrote:

> In my "LOCAL_RULE_0" if the user is a specific user, I pass like this
> currently to the mailer :
>
> parse returns: $# mysmtp $@ smarthost.example.com . $:
> destuser< @ example . com . >
>
> the Mmysmtp has a S=mysmtp to do sender processing.
>
> Is there any way I can edit the sender passed to the mailer
> BEFOREHAND? I know once its in Smysmtp it can do it, but I need to
> edit it before it gets there. What I'd really like to do is set the
> sender to :
>
> actualsender@example.com <!> destuser@example.com
>
> or something like that. This was in the Smysmtp I might be able to
> parse it up and do a lookup on it.


You can specify "per mailer" (for mysmtp mailer) rule sets to process
envelope sender and another to process header sender(s).

--
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
The most costly of all follies is to believe passionately in the palpably
not true. It is the chief occupation of mankind.
-- H. L. Mencken
Reply With Quote
  #3  
Old 08-25-2008, 10:08 AM
Tuc
Guest
 
Default Re: Modify the sender BEFORE passed to a mailer?

On Aug 25, 1:38 am, Andrzej Adam Filip <a...@onet.eu> wrote:
> Tuc <tuct...@gmail.com> wrote:
> > In my "LOCAL_RULE_0" if the user is a specific user, I pass like this
> > currently to the mailer :

>
> > parse returns: $# mysmtp $@ smarthost.example.com . $:
> > destuser< @ example . com . >

>
> > the Mmysmtp has a S=mysmtp to do sender processing.

>
> > Is there any way I can edit the sender passed to the mailer
> > BEFOREHAND? I know once its in Smysmtp it can do it, but I need to
> > edit it before it gets there. What I'd really like to do is set the
> > sender to :

>
> > actualsen...@example.com <!> destu...@example.com

>
> > or something like that. This was in the Smysmtp I might be able to
> > parse it up and do a lookup on it.

>
> You can specify "per mailer" (for mysmtp mailer) rule sets to process
> envelope sender and another to process header sender(s).
>

Hi,

Thanks for the reply. I saw that (S=this/that), but by the time
it gets there its too late.
I'm trying to change it just before calling the "$#mysmtp". It all
goes back to trying to
change the sender depending on the recipient. In LOCAL_RULE_0 I could
have a rule that
does a map lookup to see if the recipient is in the map, but when I
call the "$#mysmtp" it
only passes the host and the destination user. By the time it gets to
the "S=" part, I've
lost context.

Maybe I'm going about it the wrong way, but the end result is I
am looking to change the
sender based on the recipient. If I look up the recipientin the
LOCAL_RULE_0, I can't modify
the sender. By the time I get to where my "S=" sends me, I have the
sender but can't modify
the recipient. I was TRYING to see if I could modify the sender to be
a concat of the sender and
recipient so I could peel off the recipient, do the map lookup, and
modify the sender to either be
what it already is, or change it.

Thanks, Tuc
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.