|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
There is some way to redirect mail based on "to:" subject of a message? for example take this header: Delivered-To: system@somewhere.com Received: localhost Message-ID: <552070214145.B9B1CFAD99@KRWN> From: "Luz" <adaptationcrises@royaloilandgas.com> To: <someuser@somewhere.com> Subject:Unlike other products! Date: Tue, 31 Oct 2006 17:53:07 +0300 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-Index: wklefcbkmdfMl8n4iz6rHFoC Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 so, based on the fileds "Delivered-To:" and "To:" can i redirect this message to special_account@mydomain.com? In this way, all messages coming to somewhere.com are redirected to a special account. Note that somewhere.com is not my domain. I can not simply block the messages, too. Thanks in advance! Marco. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
MarcoMoller wrote: > Hi, > > There is some way to redirect mail based on "to:" subject of a > message? milter You may need to write one, cause I dont know which offhand is targeted exactly at this. check milter documentation for smfi_addrcpt() and smfi_delrcpt() Or if you like perl, David Skoll's mimedefang would probably be the one to try. > for example take this header: > > Delivered-To: system@somewhere.com > Received: localhost > Message-ID: <552070214145.B9B1CFAD99@KRWN> > From: "Luz" <adaptationcrises@royaloilandgas.com> > To: <someuser@somewhere.com> > Subject:Unlike other products! > Date: Tue, 31 Oct 2006 17:53:07 +0300 > MIME-Version: 1.0 > X-Mailer: Microsoft Office Outlook, Build 11.0.5510 > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 > Thread-Index: wklefcbkmdfMl8n4iz6rHFoC > Content-Type: text/plain; > charset="Windows-1252" > Content-Transfer-Encoding: 7bit > X-Virus-Scanned: by AMaViS perl-11 > Please be aware that the envelope sender and the envelope recipients may have something or nothing to do with the Headers in the body of the message. For a milter approach that could mean you need to take into consideration the data passed to the xxfi_envrcpt() callback. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
>
> You may need to write one, cause I dont know which offhand is targeted > exactly at this. > > check milter documentation for smfi_addrcpt() and smfi_delrcpt() > > Or if you like perl, David Skoll's mimedefang would probably be the one > to try. > > Please be aware that the envelope sender and the envelope recipients > may have something or nothing to do with the Headers in the body of the > message. > > For a milter approach that could mean you need to take into > consideration the data passed to the xxfi_envrcpt() callback. Thanks very much! I will check it. |
|
![]() |
| Outils de la discussion | |
|
|