Re: [exim] R: Exim4 And outgoing Filters

Góra strony
Delete this message
Reply to this message
Autor: W B Hacker
Data:  
Dla: exim users
Temat: Re: [exim] R: Exim4 And outgoing Filters
Davide wrote:

> Thx Bill ... but in debian where is conf file for implement your
> configuration ?
>
> Thx ;)
>
> BR
>
> Razi


Will come back to that...

First, transport code added that works with the routers previously posted. See
below. The 'remote_smtp' transport is unchanged from Exim default.


> -----Messaggio originale-----
> Da: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] Per
> conto di W B Hacker
> Inviato: martedì 29 agosto 2006 1.42
> A: exim-users@???
> Oggetto: Re: [exim] Exim4 And outgoing Filters
>
> Davide Minardi wrote:
>
>
>>Hi, I have debian sarge installed . I have installed Exim 4 as outgoing
>
> mail server and incoming by fetchmail.
>
>>I want to save, for backup event, outgoing message in a Maildir subfolder
>
> named "backup" . I connect on my server with IMAP Client (courier-imap is
> server side) .
>
>>When i send a message from another host in my LAN, Exim4 shuold be save
>
> outgoing mail in a subfolder. I have read on Internet that is possible. I
> must write a filter rules but ...how and where ?
>
>>Any ideas ?
>>
>>Best regards ...
>>
>>Raziel
>
>
> No filter needed. Use 'unseen' to chain two routers:
>
> This works:
>
> The routers:
>
> =====================
>
> # Route 2_C normal remote DNS lookup
> #
> dnslookup:
>    driver = dnslookup
>    domains = ! +local_domains
>    transport = remote_smtp
>    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
>    unseen

>
> # ROUTE_2D REMOTE: archiving of outbound traffic.
> #
> sentarchiver:
>    driver = dnslookup
>    domains = ! +local_domains   ### Note - this is optional...
>    transport = sent_archive_delivery
>    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8

>
> =====================
>
> The remote_smtp transport is default/'conventional.
>
> The 'sent_archive_delivery' transport should store mail in either a
> common-systemwide, common-source-domain-wide (virtual hosting?), or
> by-destination-domain structure, depending on your environment and expected
> manner of analysis/recovery.
>
> Bill
>
>


# TRANSPORT_3A REMOTE delivery archiving
#
sent_archive_delivery:
driver = appendfile
user = exim
group = mail
delivery_date_add
envelope_to_add
return_path_add
maildir_format = true
mode = 0770 ## modify perms to your needs
directory = /data/mail/archiver/Maildir/.Sent/ ## modify path to your needs.

create_directory = true
directory_mode = 0770 ## modify perms to your needs
no_mode_fail_narrower


The user and group may be different on your server.

Now - the Debian issue:

Either: Take it all to the Debian Exim list, learn to love and live with the
special world of Debian and all its contrarian ways.

Nothing wrong with that - Debian will certainly keep you out of the pubs at
night - you won't have *time* to socialize or pick up any bad habits. May also
teach you humility and patience. Bigtime!

What it will NOT do is teach you anything useful about Unix.

Else: Install FreeBSD, install exim, edit the configure file, per *Exim* docs,
and go off and have a life of your own in your now-plentiful spare time.

Younger women, older whisky, faster horses, and more money highly recommended.
Sadly, I'm putting new flooring this week...

You *may* miss being told you can't do anything to gain experience until you
gain more experience - and have read all the Debian-specific documentation.

Which, BTW, have nothing to do with Unix. Or even other Linux distros.
Or even, necessarily, Exim, as we know it.

Your server, your life, your choice.

I'm too lazy to run a Linux, even a 'conformist' one.

YMMV,

Bill