Filter for incoming mail from External servers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Filter for incoming mail from External servers

Matteo Cazzador-2
Hi, i need to apply a filter (a script) on every email incoming from
external to my mail server.

I need to apply this filter on "from" field.

Only for incoming mail from external server.

Some one can help me please.

Thanks

--

Rispetta l'ambiente: se non ti è necessario,  non stampare questa mail.


Le informazioni contenute in questa e-mail e nei files eventualmente
allegati sono destinate unicamente ai destinatari della stessa
e sono da considerarsi strettamente riservate.
E' proibito copiare, salvare, utilizzare,  inoltrare a terzi e diffondere
il contenuto della presente senza il preventivo consenso, ai sensi
dell'articolo 616 c.p. e della Legge n. 196/2003.
Se avete ricevuto questo messaggio per errore siete pregati di comunicarlo
immediatamente all'indirizzo mittente, nonché di cancellarne il contenuto
senza procedere ad ulteriore o differente trattamento.


******************************************
Ing. Matteo Cazzador
NetLite snc di Cazzador Gagliardi
Corso Vittorio Emanuele II, 188 37069
Villafranca di Verona VR
Tel 0454856656
Fax 0454856655
Email: [hidden email]
Web: http://www.netlite.it
******************************************

Reply | Threaded
Open this post in threaded view
|

Re: Filter for incoming mail from External servers

Enrico Morelli
On Wed, 29 Nov 2017 18:05:38 +0100
Matteo Cazzador <[hidden email]> wrote:

> Hi, i need to apply a filter (a script) on every email incoming from
> external to my mail server.
>
> I need to apply this filter on "from" field.
>
> Only for incoming mail from external server.
>
> Some one can help me please.
>
> Thanks
>

I'm not a Postfix expert, but how about header_checks?
http://www.postfix.org/header_checks.5.html
http://mattshaw.org/news/how-to-filter-mail-with-postfix-header_checks/

--
-----------------------------------------------------------
  Enrico Morelli
  System Administrator | Programmer | Web Developer

  CERM - Polo Scientifico
  via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY
------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

R: Re: Filter for incoming mail from External servers

Matteo Cazzador-2
Thanks i follow your suggest

Inviato da smartphone Sony Xperia™

---- Enrico Morelli ha scritto ----

On Wed, 29 Nov 2017 18:05:38 <a href="tel:+0100">+0100
Matteo Cazzador <[hidden email]> wrote:

> Hi, i need to apply a filter (a script) on every email incoming from
> external to my mail server.
>
> I need to apply this filter on "from" field.
>
> Only for incoming mail from external server.
>
> Some one can help me please.
>
> Thanks
>

I'm not a Postfix expert, but how about header_checks?
http://www.postfix.org/header_checks.5.html
http://mattshaw.org/news/how-to-filter-mail-with-postfix-header_checks/

--
-----------------------------------------------------------
  Enrico Morelli
  System Administrator | Programmer | Web Developer

  CERM - Polo Scientifico
  via Sacconi, <a href="tel:6 - 50019">6 - 50019 Sesto Fiorentino (FI) - ITALY
------------------------------------------------------------