Index:
[thread]
[date]
[author]
[stats]
From: Sebastian M. Alvarez <sebastianmalvarez@gmail.com>
To : markus schnalke <meillo@marmaro.de>
Date: Wed, 22 Feb 2012 12:54:03 -0300
Re: [masqmail] Different route depending the FROM header
On Feb 22, 2012, at 12:42 PM, markus schnalke wrote:
> [2012-02-22 10:23] "Sebastian M. Alvarez" <sebastianmalvarez@gmail.com>
>> Hey..
>
> Welcome!
>
>> I have a little script resolves the piped emails coming from masqmail.
>>
>> I need to pipe to a script if the from passes a regex (or similar case)
>> and fallback to other pipe is it does not..
>>
>> I've been googling a way to do this but nothing came up. Is there
>> a way to change select a route depending on email headers?, or add
>> conditions at the default.route script to change the pipe option
>> depending on the headers?
>
> Generally, an MTA does not operate on the message headers but the
> envelope addresses. This means, masqmail (normally) does not examine
> To:, Cc:, From:, etc headers, but deals with the `MAIL FROM' and
> `RCPT TO' addresses it receives in the SMTP dialog.
>
> Often the envelope addresses match the header addresses. Maybe the
> envelope addresses are what you actually want.
>
>
> You need to set up two routes, for each of the pipes. Then you need to
> limit the routes to allowed and disallowed addresses.
>
> Do you use a 0.3.x version? There you can use `allowed recipients',
> `denied recipients', `allowed senders', and `denied senders'.
>
> If you use a 0.2.x version? There you can use `allowed mail locals',
> `not allowed mail locals', `allowed return paths', and
> `not allowed return paths'. (There are also `allowed rcpt domains' and
> `not allowed rcpt domains'.) It's not as easy in the 0.2.x versions,
> but also possible.
>
> (Return path is the MAIL FROM, and often equal to the From: header.)
>
>
> Hope that helps. Otherwise, just ask again. :-)
Well thank you!
Although i've resolved the issue in other way. I have other server runnning masqmail so I just deliver email to that server :P
So, this is not necessary anymore..
Thanks!
PS: I will send a new email with other question :P
---
Sebastian M. Alvarez
Córdoba, Argentina
http://aseba.com.ar
Index:
[thread]
[date]
[author]
[stats]