SuSE 8.2 RPM based cyrus, postfix, and fetchmail (surely someone has this working)
Most of the HOWTOs that I have found do all of this from source. I have an ISP that collects mail for me for a couple of domains and dumps it all into one pop email address. I want to be able to collect those emails and sort them into mailboxes based on the name before the @. Does someone have this type of configuration working? And if so, are they able to help by listing their config files? Thanks, Tim
Most email programs supplied with SuSE can do filters. I suggest that you grab one like kmail or Evolution and read their help file on filters. Personally I like Kmail. My configuration would do you little good. On Sunday 29 June 2003 07:27 am, Tim Penhey wrote:
Most of the HOWTOs that I have found do all of this from source.
I have an ISP that collects mail for me for a couple of domains and dumps it all into one pop email address. I want to be able to collect those emails and sort them into mailboxes based on the name before the @.
Does someone have this type of configuration working? And if so, are they able to help by listing their config files?
Thanks, Tim
* Tim Penhey <tim@penhey.net> [06-29-03 07:32]:
I have an ISP that collects mail for me for a couple of domains and dumps it all into one pop email address. I want to be able to collect those emails and sort them into mailboxes based on the name before the @.
Procmail is designed to perform that function. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
I wrote:
I have an ISP that collects mail for me for a couple of domains and dumps it all into one pop email address. I want to be able to collect those emails and sort them into mailboxes based on the name before the @.
Patrick suggested:
Procmail is designed to perform that function.
Paul wrote:
Most email programs supplied with SuSE can do filters. I suggest that you grab one like kmail or Evolution and read their help file on filters. Personally I like Kmail.
My configuration would do you little good.
A little more information might help... Not all of the mail in the pop mail is for me personally, hence I don't want to download it all into one mailbox. Some of the email should be redirected to other outside email addresses (forwarding that I am handling), the other should be delivered into cyrus mailboxes. I know that postfix can deliver to cyrus using LMTP but I haven't got it working. Also the sort of configuration that I was after was most postfix stuff dealing with aliases and domain handling for delivery and forwarding. Tim
* Tim Penhey <tim@penhey.net> [06-29-03 12:26]:
I wrote:
I have an ISP that collects mail for me for a couple of domains and dumps it all into one pop email address. I want to be able to collect those emails and sort them into mailboxes based on the name before the @.
[snip ...]
A little more information might help...
Not all of the mail in the pop mail is for me personally, hence I don't want to download it all into one mailbox.
you state above that the mail is dumped into one pop address ??
Some of the email should be redirected to other outside email addresses (forwarding that I am handling), the other should be delivered into cyrus mailboxes.
man procmail man procmailrc man procmailex man procmailsc procmail will sort for delivery to the mailbox you specify on *any* information contained in the message. You will have problems with multiple addressees and cc/bcc as procmail is *not* a mda, it is designed to sort incoming mail to an individual into mail folders, and other similar actions. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
Patrick wrote:
you state above that the mail is dumped into one pop address ??
Any email for the two domains that I own get dumped into the one pop address for downloading.
man procmail man procmailrc man procmailex man procmailsc
procmail will sort for delivery to the mailbox you specify on *any* information contained in the message.
You will have problems with multiple addressees and cc/bcc as procmail is *not* a mda, it is designed to sort incoming mail to an individual into mail folders, and other similar actions.
I think that this last statement is the killer that will mean that I cannot use procmail. I read that fetchmail can deliver to local SMTP which postfix then processes using all its aliases and domain handling, which then either passes to external SMTP or local LMTP to cyrus. Has anyone got this working? Tim
I think that this last statement is the killer that will mean that I cannot use procmail. Procmail can forward the email very easily. Look at the procmailex man
On Sun, 29 Jun 2003 19:35:10 +0100 "Tim Penhey" <tim@penhey.net> wrote: page- Here is one example: Forward all mail from peter about compilers to william (and keep a copy of it here in petcompil). :0 * ^From.*peter * ^Subject:.*compilers { :0 c ! william@somewhere.edu :0 petcompil } -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
Jerry Feldman <gaf@blu.org> wrote:
Procmail can forward the email very easily. Look at the procmailex man page- Here is one example: Forward all mail from peter about compilers to william (and keep a copy of it here in petcompil).
:0 * ^From.*peter * ^Subject:.*compilers { :0 c ! william@somewhere.edu
:0 petcompil }
My problems with procmail are: - How do you handle the situation where the mail is sent to multiple people whom I need to forward the email to, or put into a cyrus mailbox. - What happens when the users email address is in a CC or BCC header There are probably more, I just can't think of them right now. Tim
Jerry Feldman <gaf@blu.org> wrote:
Procmail can forward the email very easily. Look at the procmailex man page- Here is one example: Forward all mail from peter about compilers to william (and keep a copy of it here in petcompil).
:0 * ^From.*peter * ^Subject:.*compilers { :0 c ! william@somewhere.edu
:0 petcompil }
My problems with procmail are: - How do you handle the situation where the mail is sent to multiple people whom I need to forward the email to, or put into a cyrus mailbox. - What happens when the users email address is in a CC or BCC header
There are probably more, I just can't think of them right now. First, IMHO, procmail is more complete than the filters of most other email
On Sun, 29 Jun 2003 20:08:42 +0100 "Tim Penhey" <tim@penhey.net> wrote: programs and it can be a bear to configure properly. But, you also can pipe your email through another program, like a Perl or Python script. (You will not have the BCC address). But, you can select on several different criteria and make decisions. There are many other ways to intercept mail. The .forward file can be used to pipe your incoming email to a filter. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
The 03.06.29 at 20:08, Tim Penhey wrote:
My problems with procmail are: - How do you handle the situation where the mail is sent to multiple people whom I need to forward the email to, or put into a cyrus mailbox.
I don't see the problem...
- What happens when the users email address is in a CC or BCC header
Have you read the promailrc man page? What you ask is documented: If the regular expression contains `^TO' it will be substituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)', which should catch all destination specifications containing a specific word.
There are probably more, I just can't think of them right now.
Procmail was designed for that task. Read the doc and try (with a safety net: as explained in the man). -- Cheers, Carlos Robinson
participants (5)
-
Carlos E. R.
-
Jerry Feldman
-
Patrick Shanahan
-
Paul Benjamin
-
Tim Penhey