Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

re move recipient address from envelope?

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


christian.schoene at vtbs

Nov 14, 2007, 9:49 AM

Post #1 of 5 (608 views)
Permalink
re move recipient address from envelope?

Hello,

is there a possibility to completely remove recipients from the envelope?
I tried the rewrite mechanism, but as the name says it can only rewrite.


complete view:
I'm using a multidrop mailbox for my company. All mails are pop3-fetched
using getmail4 and forwarded to exim, which then scans for spam using
amavisd and forwards to an MS-Exchange server.
The problem is, my isp does only save _one_ "Envelope-To" address in each
mail, whereby only one user gets the mail if there are multiple recipients
in my company. For that reason getmail delivers the mails using "exim -bm
-t". The -t option makes exim to use the TO and CC headers as envelope-TO.
This actually works, but of course, the TO CC BCC fields not only contain
valid addresses for my company. I want exim to remove all of these.

thx for reading
--
View this message in context: http://www.nabble.com/remove-recipient-address-from-envelope--tf4805954.html#a13749164
Sent from the Exim Users mailing list archive at Nabble.com.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


christian.schoene at vtbs

Nov 14, 2007, 7:45 AM

Post #2 of 5 (558 views)
Permalink
re move recipient address from envelope? [In reply to]

Hello,

is there a possibility to completely remove recipients from the envelope?
I tried the rewrite mechanism, but as the name says it can only rewrite.


complete view:
I'm using a multidrop mailbox for my company. All mails are pop3-fetched
using getmail4 and forwarded to exim, which then scans for spam using
amavisd and forwards to an MS-Exchange server.
The problem is, my isp does only save _one_ "Envelope-To" address in each
mail, whereby only one user gets the mail if there are multiple recipients
in my company. For that reason getmail delivers the mails using "exim -bm
-t". The -t option makes exim to use the TO and CC headers as envelope-TO.
This actually works, but of course, the TO CC BCC fields not only contain
valid addresses for my company. I want exim to remove all of these.

thx for reading
--
View this message in context: http://www.nabble.com/remove-recipient-address-from-envelope--tf4805954.html#a13749164
Sent from the Exim Users mailing list archive at Nabble.com.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


wbh at conducive

Nov 15, 2007, 1:02 AM

Post #3 of 5 (566 views)
Permalink
Re: re move recipient address from envelope? [In reply to]

antip wrote:
> Hello,
>
> is there a possibility to completely remove recipients from the envelope?
> I tried the rewrite mechanism, but as the name says it can only rewrite.
>
>
> complete view:
> I'm using a multidrop mailbox for my company. All mails are pop3-fetched
> using getmail4 and forwarded to exim, which then scans for spam using
> amavisd and forwards to an MS-Exchange server.
> The problem is, my isp does only save _one_ "Envelope-To" address in each
> mail, whereby only one user gets the mail if there are multiple recipients
> in my company.

That sounds as if you have only ONE account with the ISP among the 'company'
adressees that the ISP recognizes as a subscriber.

If so, it would be normal that only that addressee appear in 'envelope to'.

Ergo, anything short of subscribing the rest of the accounts to the ISP will
remain a bit of a kludge.

> For that reason getmail delivers the mails using "exim -bm
> -t". The -t option makes exim to use the TO and CC headers as envelope-TO.
> This actually works, but of course, the TO CC BCC fields not only contain
> valid addresses for my company. I want exim to remove all of these.
>
> thx for reading

I'm not sure why you don't just have Exim handle all the mail and be done with
it, as it can do a better job with less effort .. but never mind ..

Sounds as if you need TWO Exim instances. One takes the 'raw' input from
getmail, expands the To: and CC:, fowards to the second instance.

The second instance, set to 'require verify = recipient' rejects those that do
not belong to your firm.

No stripping or re-writing needed.

But you would also need errors_to = /dev/null (or yourself) on (at least) the
'up front' Exim if not both, so as to prevent backscatter non-delivery bounces
for the 'To: and 'CC: that were never intended to be yours.

For receiving, it should be simpler to change a DNS entry, cut out the ISP, and
JFDI with one Exim, even if relaying to Exchange.

*Sending* (presuming you have no PTR RR) is where you need the ISP's help.

YMMV

Bill

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


christian.schoene at vtbs

Nov 15, 2007, 2:47 AM

Post #4 of 5 (556 views)
Permalink
Re: re move recipient address from envelope? [In reply to]

Your right. I'll try to use accounts for each user. Fortunally I only need
about 20 acoounts, what is not that much. But I hate this webform clicking
in the ISP's frontend.
Perhaps in future i gonne try to cut out the getmail pop3 stuff und use exim
directly, but I'm very affraid of doing it wrong.

thx a lot
Christian

--
View this message in context: http://www.nabble.com/remove-recipient-address-from-envelope--tf4805954.html#a13765116
Sent from the Exim Users mailing list archive at Nabble.com.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


wbh at conducive

Nov 15, 2007, 3:53 AM

Post #5 of 5 (551 views)
Permalink
Re: re move recipient address from envelope? [In reply to]

antip wrote:
> Your right. I'll try to use accounts for each user. Fortunally I only need
> about 20 acoounts, what is not that much. But I hate this webform clicking
> in the ISP's frontend.
> Perhaps in future i gonne try to cut out the getmail pop3 stuff und use exim
> directly, but I'm very affraid of doing it wrong.
>
> thx a lot
> Christian
>

Being 'afraid of doing it wrong' is a very welcome virtue in an age when sooo
many folks think all they need to do is tick a few boxes and voila! their laptop
is a mail server...

The basics:

- you will want a fixed-IP, moreover one that is NOT in a block labelled as
'dynamically allocated'. Pay no attention to the the 'dyn' services that try to
get around that, as many of us block those also on principle as
spammer-friendly. If not available, look to authorized relay thru your
upstream's submission port.

- presuming you DO have a fixed-IP, you will need that netblock-owner to publish
*at least* a PTR RR (pointer record - for reverse DNS) that ties that IP to your
MTA's domain.tld. Nice if the same entity also holds your 'A' and 'MX' records,
but those *can* be elsewhere, so long as they are correct.

- from that point on, 'mine' the web and the archives of this list for examples
of Exim configuration and discussion of the pros and cons of each.

One size does not fit all - but a great many 'sizes' have been covered here, and
more than once.

If Debian or Ubuntu is all you have, then you WILL have some 'box tick freindly'
tools - but also a different world-view than most of the rest of us have. Check
the Debian-specific mailing list for how to deal with those.

If another Linux or a *BSD or Unix, the examples on this list should fit well.

CAVEAT - few acl's, routers, or transports stand in isolation. Don't expect a
snippet to work the same for you as it did for someone else unless the general
environment is at least 'close'.

Take your time. Undoing damage is more work than avoiding it.

The default configure file is the best starting point.

Use Exim's built-in debug suite and a mini-DNS from entries in your /etc/hosts
file to test to before you even need a network connection.

Next, you can 'allow_domain_literals' and run test traffic back and forth by IP
between two boxes or two instances of Exim under separate IP on the SAME box,
over a local LAN - or just into and out of your own IP stack.

Still w/o need of any outside-world connection.

Keep your logging at full blast (log_selector = +all).

Number/code your acl's and put the codes into logwrite = <code> some message as
you adopt them, to show mere traversal, and log_message = <code> some message to
show when they actually 'trigger'. That way you will know who is doign what,
with which, at what point, and to whom.

Conditionals and their behaviour are consistent and well documented in Exim, but
there are *many* and not all work the same way.

ACl clauses are also consistent, but not 'intuitive' unless you are au fait with
forth 'case of' structures. And no, Exim was not written in forth - but it is
cleanly planned to the extent that it could have been...

In short order you will catch on to the nuances, cause, and effect - and 'gotcha's'.

Within 'minute one' of going 'live' run one or more of the publically available
open-relay tests. Fix if need be.

The rest is just paying attention to the logs and investing time. It gets more
enjoyable as problem after problem falls to the superb tools you will have at
hand - and the vast wealth of giant's shoulder's on which to stand.

Even expertise at taming the Exchange beast...

;-)


Go for it!

Bill

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.