| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.