Cyrus - Postfix - redirect mails from a special sender domain
Walter Willmertinger
willmis at gmail.com
Thu Jun 22 06:16:58 EDT 2006
Thank you for the fast answer, this redirection is working.
But as I think it over, I had another idea which I realized with procmail
before changing to cyrus.
The idea was to put a copy of the mail to a shared folder, and notify the
users of this copy.
(This was because the sent mails have most time quite large attachments!)
So we with procmail I generated a small mail to a group of users: "Hello
there is new mail from extspec.de accessible in the shared folder concerning
... <subject of real mail>...!"
Then I redirected the mail to the user imapshared which kept the mail in a
shared folder!
The problem was when I tried it with sieve that I did not find the way to
generate a small mail with a subject
Sounds complicated but with procmail its just this little script:
-------------- BEGIN ----------------------
:0
c
* ^From:.*extspec.de
* ^Subject:[
]*\/..*
| (
\
echo "Subject: New mail from EXTSPEC:$MATCH";
\
echo "To: developers at ourdomain.de";
\
echo "Attention";
\
echo "New mail arrived from EXTSPEC";
\
echo "mail was stored in #Shared Folder Extspec-Mails";
\
echo "-- "
\
) | $SENDMAIL -oi developers at ourdomain.de
-------------- END ----------------------
So the question is can I redirect also to a shared folder --> I have found
this. It is working with
---------- BEGIN ------------------------
require "fileinto";
if allof (address :contains ["From","FROM"] "extspec.de") {
fileinto "Other Users.ExtspecMail";
redirect "developers at ourdomain.de";
keep;
}
----------- END -----------------------------------
But in this sieve script the mail is filed in a shared folder, but still the
whole mail is redirected to the other users.
Still missing is the topic about the new mail to be sent!
Some Idea???
Regards Walter
On 6/22/06, Sylvain MEDEOT <symedeot at yahoo.fr> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Walter Willmertinger a écrit :
> > I am new to Cyrus and used until now UW4-Imap with postfix and procmail.
> > I need to redirect mails from a special external domain (say all mail
> > from "extspec.de <http://extspec.de>") to a group of users in our
> domain.
> > Before using cyrus, I did this wirh procmail and procmailrc. Now I use
> > cyrus with postfix.
> > /etc/postfix/main.cf: mailbox_transport = cyrus
> >
> > Now I read some documents about sieve, but I found no recipe how to
> > redirect mails from a special receiver (domain) to a group of users in
> > our local domain.
> > Can somebody give me a hint?
> >
> > Regards
> >
> > Walter
> >
> Hi,
>
> Here is what I am using...
>
> if allof (address :contains ["From","FROM"] " extspec.de") {
> redirect "myuserlist at mylocaldmain.de";
> }
>
> Hope it helps...
>
> Sylvain
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD4DBQFEmlwNG2qHcr4CDdkRAqP9AJdNp8KgU3txAItC1YMJHx0339u1AJ0R0pc3
> A6YFjIBquFlWASsocy/kBw==
> =O7uk
> -----END PGP SIGNATURE-----
>
>
>
>
>
> ___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
> interface révolutionnaire.
> http://fr.mail.yahoo.com
>
>
--
MfG
Walter Willmertinger
Auenstr. 22
82194 Groebenzell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20060622/435fdab0/attachment-0001.html
More information about the Info-cyrus
mailing list