From: =?iso-8859-1?Q?K=F6rner=2C_Uwe?= on
Hi all,

i'm runing a postfix server as gateway on a local network just for routing between different backends and the DMZ systems. I have to delete some special lines in the mail body (auto-generated by a backend) for a sms gateway. its pretty easy doing this global using the body_checks option, but how can i do this just for the defined sms gateway domain?

any help is appreciated

uwe
From: Magnus =?iso-8859-1?Q?B=E4ck?= on
On Tuesday, July 13, 2010 at 09:58 CEST,
"K�rner, Uwe" <UWE.KOERNER(a)T-SYSTEMS.CH> wrote:

> i'm runing a postfix server as gateway on a local network just for
> routing between different backends and the DMZ systems. I have to
> delete some special lines in the mail body (auto-generated by a
> backend) for a sms gateway. its pretty easy doing this global using
> the body_checks option, but how can i do this just for the defined
> sms gateway domain?

How does messages from the SMS gateway enter your Postfix system? If
they can enter via a different SMTP listener (different IP address
and/or port) you can set up an additional cleanup(8) service that uses
other body_checks expressions.

--
Magnus B�ck
magnus(a)dsek.lth.se

From: =?iso-8859-1?Q?K=F6rner=2C_Uwe?= on
Hi Magnus,

the messages will be send to the SMS gateway via postfix.

a user is sending a mail (for example) to +41123456789(a)sms -> postfix is doing a rewriting to +41123456789(a)examplesmsgateway.ch and delivers the mail.

Cheers

Uwe

Am 13.07.2010 um 10:32 schrieb Magnus Bäck:

> On Tuesday, July 13, 2010 at 09:58 CEST,
> "Körner, Uwe" <UWE.KOERNER(a)T-SYSTEMS.CH> wrote:
>
>> i'm runing a postfix server as gateway on a local network just for
>> routing between different backends and the DMZ systems. I have to
>> delete some special lines in the mail body (auto-generated by a
>> backend) for a sms gateway. its pretty easy doing this global using
>> the body_checks option, but how can i do this just for the defined
>> sms gateway domain?
>
> How does messages from the SMS gateway enter your Postfix system? If
> they can enter via a different SMTP listener (different IP address
> and/or port) you can set up an additional cleanup(8) service that uses
> other body_checks expressions.
>
> --
> Magnus Bäck
> magnus(a)dsek.lth.se

From: Magnus =?iso-8859-1?Q?B=E4ck?= on
On Tuesday, July 13, 2010 at 10:44 CEST,
"K�rner, Uwe" <UWE.KOERNER(a)T-SYSTEMS.CH> wrote:

> Am 13.07.2010 um 10:32 schrieb Magnus B�ck:
>
> > How does messages from the SMS gateway enter your Postfix system? If
> > they can enter via a different SMTP listener (different IP address
> > and/or port) you can set up an additional cleanup(8) service that
> > uses other body_checks expressions.
>
> the messages will be send to the SMS gateway via postfix.
>
> a user is sending a mail (for example) to +41123456789(a)sms -> postfix
> is doing a rewriting to +41123456789(a)examplesmsgateway.ch and delivers
> the mail.

Create a transport table entry that routes messages to the SMS gateway
domain to a special SMTP delivery agent. Define that delivery agent in
master.cf and override the smtp_body_checks parameter to specify the
IGNORE expressions you need to remove the offending lines from the body.

Please do not top-post.

--
Magnus B�ck
magnus(a)dsek.lth.se