archiving rules

Nerijus Baliunas nerijusb at dtiltas.lt
Wed Jan 21 22:20:56 GMT 2015


On Wed, 21 Jan 2015 09:51:10 +0100 Glenn Steen <glenn.steen at gmail.com> wrote:

> Problem is that MS cannot make a difference between To: and Cc: (or even
> Bcc:) recipients... In the envelope (SMTP conversation) they are all RCPT
> TO:...  So you'd need something else to do t ge distinction... SpamAssassin
> rule and the SA rule hit thing in MS should be sble to do the trick.

My problem is not a difference between To or Cc, but "subdirs are created even for external users".
I don't want subdirs for external users.

Thanks,
Nerijus

> Den 23 dec 2014 15:43 skrev "Nerijus Baliunas" <nerijusb at dtiltas.lt>:
> 
> > On Tue, 23 Dec 2014 15:11:32 +0200 Nerijus Baliunas <nerijusb at dtiltas.lt>
> > wrote:
> >
> > > Messages are archived correctly. The problem is, when the message is
> > sent like this:
> > > To: user1 at externaldomain.lt
> > > Cc: user2 at domain.lt
> > >
> > > The message is sent to both user1 at backup.domain.lt and
> > user2 at backup.domain.lt.
> > > Is it possible TOUSER in above rule to be used only if recipient domain
> > is local, i.e. domain.lt?
> >
> > I use postfix and have in main.cf:
> > virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/
> > mysql_virtual_domains_maps.cf, backup.domain.lt
> > virtual_transport = dovecot
> > dovecot_destination_recipient_limit = 1
> > backup_destination_recipient_limit = 1
> >
> > transport:
> > backup.domain.lt           backup:
> >
> > master.cf:
> > dovecot   unix  -       n       n       -       -       pipe
> >   flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f
> > ${sender} -d ${user}@${nexthop}
> >
> > backup   unix  -       n       n       -       -       pipe
> >   flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f
> > ${sender} -d backup at domain.lt -m ${user}
> >
> > So all the backup email goes to backup at domain.lt mailbox and subdirs
> > (named as
> > expanded TOUSER) are created because of -m ${user}. The problem is, that
> > subdirs are created even for external users, if a message is sent To:
> > user1 at externaldomain.lt
> > and Cc: user2 at domain.lt.



More information about the MailScanner mailing list