Re: Disclaimer to forwarded mails to external domain?

Vinícius Ferrão <[email protected]> Mon, 3 Sep 2012 21:07:49 +0000
Newsgroups gmane.linux.gentoo.server
Message-ID <[email protected]>
--Apple-Mail=_A6D7AB78-C452-4C11-8A65-03483934601A
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_5224ECB9-7641-433E-B8D6-952884895056"


--Apple-Mail=_5224ECB9-7641-433E-B8D6-952884895056
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

I don't know what happened to my last message but it was never =
delivered. I'm sending it again:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Answers above:

On Jul 31, 2012, at 12:33 PM, Michael Orlitzky <[email protected]>
wrote:

> On 07/31/12 01:57, Vin=EDcius Ferr=E3o wrote:
>> Hello dudes,
>>=20
>> I'm considering to implement a new feature in my Postfix Mail
>> Filtering Gateway.
>>=20
>> It would be great to add a disclaimer note to forwarded mails to an
>> external domain. Since I'm already running amavisd-new, with all his
>> friends, I was thinking to invite alterMIME to the party.
>=20
> Is this so that people won't mark those messages as spam (thus pinning
> the blame on your mail server)?
>=20
> If so, let me assure you that it will be ignored. I've even called =
some
> of our customers with forwarded addresses on the phone and personally
> asked them to stop marking stuff as spam. They still ignore me.

Actually we have user that automatic redirect messages to their personal =
accounts. And this behaviour is not 100% approved by the university. So =
I want to put a disclaimer in those people, as example: =
[email protected] redirects to [email protected]. I want to put a =
disclaimer in *ALL* messages redirected to external domains.

>=20
>> The tricky part is how to detected which messages are automatically
>> forwarded to an external domain.
>=20
> If this is a filtering gateway, I'm guessing all of your recipients =
are
> listed in relay_recipient_maps? If so, you should be able to override
> the default_transport (which defaults to smtp:).
>=20
> For example, you could set up a disclaimer-only instance of amavis on
> port 10029, and then set the default_transport to
> smtp:[localhost]:10029. I would beware of unintended consequences,
> though. You're liable to stick a disclaimer on some things by =
accident.

There's no recipient check in my mail filtering gateway. I leave this =
job to my final destination. It's not easy to get the final destination =
since we have some different end destination servers and a separate =
mailman server.

I can't really understand your example: in this situation everything =
will be "disclaimed"; and I just want to modify messages to people that =
receive their corporate emails in their personal account.

Thanks for you help and sorry about the delay to answer your message.
Vin=EDcius=

--Apple-Mail=_5224ECB9-7641-433E-B8D6-952884895056
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Diso-8859-1"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I =
don't know what happened to my last message but it was never delivered. =
I'm sending it =
again:<div><br></div><div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D</div><div><br></div><div>Answers above:<br><br>On Jul =
31, 2012, at 12:33 PM, Michael Orlitzky &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt;<br>wrote=
:<br><br><blockquote type=3D"cite">On 07/31/12 01:57, Vin=EDcius Ferr=E3o =
wrote:<br><blockquote type=3D"cite">Hello dudes,<br><br>I'm considering =
to implement a new feature in my Postfix Mail<br>Filtering =
Gateway.<br><br>It would be great to add a disclaimer note to forwarded =
mails to an<br>external domain. Since I'm already running amavisd-new, =
with all his<br>friends, I was thinking to invite alterMIME to the =
party.<br></blockquote><br>Is this so that people won't mark those =
messages as spam (thus pinning<br>the blame on your mail =
server)?<br><br>If so, let me assure you that it will be ignored. I've =
even called some<br>of our customers with forwarded addresses on the =
phone and personally<br>asked them to stop marking stuff as spam. They =
still ignore me.<br></blockquote><br>Actually we have user that =
automatic redirect messages to their personal accounts. And this =
behaviour is not 100% approved by the university. So I want to put a =
disclaimer in those people, as example:&nbsp;<a =
href=3D"mailto:[email protected]">[email protected]</a>&nbsp;redirects=
 to&nbsp;<a href=3D"mailto:[email protected]">[email protected]</a>. I want to =
put a disclaimer in *ALL* messages redirected to external =
domains.<br><br><blockquote type=3D"cite"><br><blockquote =
type=3D"cite">The tricky part is how to detected which messages are =
automatically<br>forwarded to an external domain.<br></blockquote><br>If =
this is a filtering gateway, I'm guessing all of your recipients =
are<br>listed in relay_recipient_maps? If so, you should be able to =
override<br>the default_transport (which defaults to smtp:).<br><br>For =
example, you could set up a disclaimer-only instance of amavis =
on<br>port 10029, and then set the default_transport =
to<br>smtp:[localhost]:10029. I would beware of unintended =
consequences,<br>though. You're liable to stick a disclaimer on some =
things by accident.<br></blockquote><br>There's no recipient check in my =
mail filtering gateway. I leave this job to my final destination. It's =
not easy to get the final destination since we have some different end =
destination servers and a separate mailman server.<br><br>I can't really =
understand your example: in this situation everything will be =
"disclaimed"; and I just want to modify messages to people that receive =
their corporate emails in their personal account.<br><br>Thanks for you =
help and sorry about the delay to answer your =
message.</div><div>Vin=EDcius</div></body></html>=

--Apple-Mail=_5224ECB9-7641-433E-B8D6-952884895056--

--Apple-Mail=_A6D7AB78-C452-4C11-8A65-03483934601A
Content-Disposition: attachment; filename="smime.p7s"
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIF8zCCBe8w
ggTXoAMCAQICAgVJMA0GCSqGSIb3DQEBBQUAMGsxCzAJBgNVBAYTAkJSMQ8wDQYDVQQKDAZJQ1BF
RFUxFjAUBgNVBAoMDVVGRiBCckdyaWQgQ0ExMzAxBgNVBAMMKlVGRiBCcmF6aWxpYW4gR3JpZCBD
ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xMjA4MTUyMDI3MDlaFw0xMzA4MTUyMDI3MDlaMGwx
CzAJBgNVBAYTAkJSMQ8wDQYDVQQKEwZJQ1BFRFUxFjAUBgNVBAoTDVVGRiBCckdyaWQgQ0ExDTAL
BgNVBAoTBFVGUkoxCzAJBgNVBAsTAklGMRgwFgYDVQQDEw9WaW5pY2l1cyBGZXJyYW8wggEiMA0G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