Cyrus IMAP, Sendmail, Procmail, Sieve, SpamAssassin OH MY!

Cyrus IMAP, Sendmail, Procmail, Sieve, SpamAssassin OH MY!

Post by Tilman Sch » Sat, 03 Apr 2004 04:57:45



I don't think that will be possible.
Did you consider using a milter setup?
I am using amavis and I am quite satisfied with it.


Yes, that's possible. But the users who want to use procmail have to
be created as system users because procmail needs a home directory. So
you lose what is, for me, one of the biggest advantages of Cyrus IMAP:
the ability to create mail users without giving them a system account.

Anyway, if you want to go that way, the key is to have procmail
deliver the mail to the Cyrus "deliver" program. As an example, here
is a .procmailrc recipe (sanitized for privacy) which is in actual
production use with a fetchmail multidrop account on one of the
servers I manage:

--------8<--------8<--------8<--------8<--------8<--------8<--------
DOMAIN=example.com
ENV_TO=$1

:0
* ENV_TO ?? .
| formail -i "X-Envelope-To: "$ENV_TO@$DOMAIN | tail +2 |
/usr/lib/cyrus/bin/deliver -a accountname -m user/accountname

:0E
| formail -i "X-Envelope-To: UNKNOWN" | tail +2 |
/usr/lib/cyrus/bin/deliver -a accountname -m user/accountname
--------8<--------8<--------8<--------8<--------8<--------8<--------

Its purpose is to insert an X-Envelope-To header with the envelope
recipient address for fetchmail, in conjunction with a virtusertable
line:

@example.com accountname+%1

Note that the "deliver" commands should be on the same line as the
preceding "formail" commands. If you use dots as separators, replace
"user/accountname" with "user.accountname".

HTH
Tilman

--
Tilman Schmidt E-Mail: XXXX@XXXXX.COM
Bonn, Germany
- In theory, there is no difference between theory and practice.
In practice, there is.
 
 
 

1. [postfix,cyrus,spamassassin] how to use procmail filter spam into imap folder

2. sendmail & cyrus IMAP : socket map timeout hardcoded in cyrus's smmapd


*IMHO* The problem requires changes in cyrus (imap/smmapd.c) or
sendmail (sendmail/map.c) sources.

The only *UGLY* temporary fix I can think about is "intermediary" server
(e.g. perl script) relaying sendmail socket map queries to cyrus.

P.S.
Have you considered moving to LDAP based configuration of sendmail
and cyrus? Socket map (potentially) may provide only better handling of
"over quota" situations with in SMTP session rejects.

--
[pl>en Andrew] Andrzej Adam Filip : XXXX@XXXXX.COM : XXXX@XXXXX.COM
Open-Sendmail: http://www.yqcomputer.com/
Lay on, MacDuff, and curs'd be him who first cries, "Hold, enough!".
-- Shakespeare

3. Getting cyrus imapd + procmail + spamassassin to work

4. Cyrus IMAP and disabling Sieve

5. cyrus imap and SIEVE

6. cyrus imap - sieve vacation mail - empty from

7. Cyrus-IMAP authenticates - Sieve doesn't ?!?

8. sendmail + cyrus-imapd + sieve FC7

9. cyrus-imap + sieve

10. how let it sendmail + cyrus + vacation (not sieve)

11. sieve - vacation problem with cyrus-imap 2.0 on solaris

12. Sendmail, Cyrus & Sieve - X-Authentication-Warning

13. procmail vs. server-side Sieve vs. client-side Sieve

14. [sendmail,procmail] Debugging procmail script/filter [Was: Manage pending messages in sendmail queue]