Re: Cyrus - Postfix - redirect mails from a special sender domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx"; \                                             
echo "Attention"; \                                                              
echo "New mail arrived from EXTSPEC"; \                                      
echo "mail was stored in #Shared Folder Extspec-Mails"; \                        
echo "-- " \                                                                   
) | $SENDMAIL -oi developers@xxxxxxxxxxxx      
-------------- 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@xxxxxxxxxxxx";                     
    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@xxxxxxxx> 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@xxxxxxxxxxxxxxx";
}

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
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux