LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2005, 06:29 AM   #1
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Rep: Reputation: 0
Question POP3 to CYRUS catchall user? Not bounced mail.


I get the idea (cyrus)sieve and procmail are equivalent?
I used to get mail for unrecognized users to collect in a master account, rather than bounce. How do I achieve this in cyrus? - now that I've gone all modern.
(Or can I mix procmail and cyrus)


Previous setup :-

pop3->fetchmail->sendmail->procmail to decode->user inboxes->imap

In detail -
- fetchmail - single-mailbox pop3 pickup
- into sendmail
- into one master account,
- then procmail rules would decode the proper local recipient account (rule below) and redirect it there. Or leave other general mail to my domain in the master account.

* for <username@something.net>;*
{
:0
! username
}

Lovely. Nothing bounced back, no mails dissappeared (unless I wanted them to ).


------------------------------------------------------------

New setup :- (with new FC3 standard services)

pop3->fetchmail->sendmail->cyrus->imap


Magically - it seems that intended recipients are being decoded automatically - which is nice. (By cyrus/sieve?)
However - mail for unrecognised users is being bounced, rather than kept in my catchall account.

Does anyone have any pointers?

Many thanks.

Last edited by mechos; 01-24-2005 at 06:32 AM.
 
Old 01-24-2005, 07:10 AM   #2
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Original Poster
Rep: Reputation: 0
more -

Here is the LOCAL_RULE_0 at foot of my sendmail.mc

(pasted from the cyrus howto)

MAILER(local)dnl
MAILER(cyrus)dnl
define(`confLOCAL_MAILER',`cyrus')dnl
LOCAL_RULE_0
R$=N $: $#local $: $1
R$=N < @ $=w . > $: $#local $: $1
Rbb + $+ < @ $=w . > $#cyrusbb $: $1


Who, if anyone, can read this stuff?? I don't have much hope that they can speak English.
What is this doing? - Is it deriving the correct recipient? - Is it bouncing the mail?
Is it recalibrating the Mass of Jupiter.

I dunno!
 
Old 01-24-2005, 10:05 AM   #3
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Lightbulb Keeping procmail - for now

Until I work this one out (I need to know a lot more about Sieve), here is the workaround I'm going to use.

- Keep PROCMAIL as my local mailer in the Sendmail config (remove references to cyrus)
- Let procmail derive the recipient address as before
- Get the mail to cyrus by using /usr/lib/cyrus-imapd/deliver -a username -m "user/username"
(My cyrus folder sperarator character is '/' - see imapd.conf - unixhierarchysep = yes)

Here is the procmail rule

* for <username@something.net>;*
{
:0
| /usr/lib/cyrus-imapd/deliver -a username -m "user/username"
}

Now to try it.
This is turning into a blog. Sorry!

Edit:
Hang on - Doesn't work yet.

Last edited by mechos; 01-24-2005 at 11:36 AM.
 
Old 01-25-2005, 04:58 AM   #4
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs down Stuff it.

I don't need virtualised users. There are only three of us here!

Things are working nicely - now that I've stopped cyrus, and started dovecot instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't log into the cyrus pop3 mail server. soulwatcher1974 Linux - Software 1 03-18-2005 01:09 AM
cyrus pop3 problem razor7300 Linux - Software 1 08-31-2004 07:41 AM
PHP mail gets bounced from yahoo.. legendaryfox Linux - General 4 04-20-2004 12:02 PM
exim/fetchmail no mail from POP3 server --->> local user ! help required! realos Linux - Networking 0 04-03-2003 04:43 PM
pop3 access for root user mail not working amanik Linux - Networking 1 03-03-2003 02:49 PM


All times are GMT -5. The time now is 07:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration