Re: exim4 -> local mailboxes

2005-07-22 Thread Csanyi Pal
Dear Wayne!

On Thu, Jul 21, 2005 at 10:34:19AM -0400, Wayne Topa wrote:
> Csanyi Pal([EMAIL PROTECTED]) is reported to have said:
> > 
> > Up to now exim4 forward the mails in to /var/mail/fetchmail mailbox. I 
> > use Mutt to read these mails, and then save them to appropriate 
> > ~Mail/mailbox.
> > 
> > My question is: how to configure exim4 to forward mails to procmail?
> > I will appreciate any suggestion! Thanks!
> > 
> 
> See /etc/exim4/exim4.conf.template   procmail_pipe:

Now I did these:
* edit /etc/exim4/update-exim4.conf.conf :
and add the line
dc_localdelivery='procmail_pipe'
* restart exim4 :
invoke-rc.d exim4 restart
* view the /var/log/exim4/mainlog (These are lines for one mail only):
[127.0.0.1] U=fetchmail P=esmtp S=8724 [EMAIL PROTECTED]
fetchmail <[EMAIL PROTECTED]> R=local_user T=procmail_pipe
Completed

It is not quit clear to me this message abowe. It seems to me that 
exim4 get the mail from fetchmail and process it forward to esmtp, 
isn't it? But I don't understand the line "fetchmail <[EMAIL PROTECTED]> 
R=local_user T=procmail_pipe". Can you explain to me that, that what for 
stand fetchmail on the front of the line?

And why I still get the mails in /var/mail/fetchmail box, instead in the 
~/Mail/mbox -es? Thanks!

-- 
Regards,
Paul 
Debian Junior Project, DebianEdu, Moodle -> :-) :-) :-) :-) :-) :-) :-)
http://www.ektf.hu/~Csanyi.Pal (Up to now, it is in Hungarian only.)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-21 Thread Wayne Topa
Csanyi Pal([EMAIL PROTECTED]) is reported to have said:
> 
> Up to now exim4 forward the mails in to /var/mail/fetchmail mailbox. I 
> use Mutt to read these mails, and then save them to appropriate 
> ~Mail/mailbox.
> 
> My question is: how to configure exim4 to forward mails to procmail?
> I will appreciate any suggestion! Thanks!
> 

See /etc/exim4/exim4.conf.template   procmail_pipe:


Wayne
-- 
The day-to-day travails of the IBM programmer are so amusing to most of
us who are fortunate enough never to have been one -- like watching
Charlie Chaplin trying to cook a shoe.
___


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-21 Thread Csanyi Pal
On Thu, Jul 21, 2005 at 04:21:26PM +1200, Chris Bannister wrote:
> > > 
> > > You shouldn't need any reference to SMTP in your procmailrc. All you have 
> > > to do
> > > is simple. Have a procmailrc and a fetchmailrc in your local user 
> > > directory. Use
> > > fetchmail via the same user that reads the e-mail.
> > 
> > I run fetchmail as a daemon. In the /etc/init.d/fetchmail stands:
> > # Defaults
> > DAEMON=/usr/bin/fetchmail
> > CONFFILE=/etc/fetchmailrc
> > OPTIONS="-f $CONFFILE"
> > PIDFILE=/var/run/fetchmail/.fetchmail.pid
> > UIDL=/var/mail/.fetchmail-UIDL-cache
> > USER=fetchmail
>   ^^
> Is USER=fetchmail correct? And you say mail ends up in
> /var/mail/fetchmail? seems suspicious.

Would You explain to me the meaning of the question
 "Is USER=fetchmail correct?"?

User fetchmail has ben created automatically when I have installed 
fetchmail. So the user fetchmail should be correct in any way.

> I dont run fetchmail as a daemon.
> 
> but 'dpkg-reconfigure -plow fetchmail' doesn't offer to allow you to
> change it. :-( (not that I want to)
> 
> I suggest reinstall fetchmail and don't have it as a daemon

Thank you for this suggestion, but don't you think that that if 
fetchmail run as daemon, it is not possible to configure the system
fetchmail -> exim4 -> procmail -> ~/Mail/mailboxes?

Up to now exim4 forward the mails in to /var/mail/fetchmail mailbox. I 
use Mutt to read these mails, and then save them to appropriate 
~Mail/mailbox.

My question is: how to configure exim4 to forward mails to procmail?
I will appreciate any suggestion! Thanks!

-- 
Regards,
Paul 
->->-> Debian Junior Project :-) :-) :-) :-) :-) :-) :-) :-) :-)
http://www.ektf.hu/~Csanyi.Pal (Up to now it is in Hungarian only.)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-20 Thread Chris Bannister
On Tue, Jul 19, 2005 at 04:18:05PM +0200, Csanyi Pal wrote:
> On Tue, Jul 19, 2005 at 09:39:17AM -0400, Steve ? wrote:
> > 
> > You shouldn't need any reference to SMTP in your procmailrc. All you have 
> > to do
> > is simple. Have a procmailrc and a fetchmailrc in your local user 
> > directory. Use
> > fetchmail via the same user that reads the e-mail.
> 
> I run fetchmail as a daemon. In the /etc/init.d/fetchmail stands:
> # Defaults
> DAEMON=/usr/bin/fetchmail
> CONFFILE=/etc/fetchmailrc
> OPTIONS="-f $CONFFILE"
> PIDFILE=/var/run/fetchmail/.fetchmail.pid
> UIDL=/var/mail/.fetchmail-UIDL-cache
> USER=fetchmail
  ^^
Is USER=fetchmail correct? And you say mail ends up in
/var/mail/fetchmail? seems suspicious.

I dont run fetchmail as a daemon.

but 'dpkg-reconfigure -plow fetchmail' doesn't offer to allow you to
change it. :-( (not that I want to)

I suggest reinstall fetchmail and don't have it as a daemon

As a normal user:

[EMAIL PROTECTED]:~$ less .fetchmailrc
poll your.pop.server with protocol pop3
user isp-login-nane
password isp-mail-password

[EMAIL PROTECTED]:~$ ls -al .fetchmailrc
-rw---  1 chrisb chrisb 74 2005-01-18 02:48 .fetchmailrc

[EMAIL PROTECTED]:~$ less .forward
|/usr/bin/procmail

[EMAIL PROTECTED]:~$ ls -al .forward
-rw-r--r--  1 chrisb chrisb 19 2005-01-19 23:03 .forward

HTH

-- 
Chris.
==
Reproduction if desired may be handled locally. -- rfc3


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-19 Thread Steve Å
On Tue, Jul 19, 2005 at 04:18:05PM +0200 or thereabouts, Csanyi Pal wrote:
> On Tue, Jul 19, 2005 at 09:39:17AM -0400, Steve ? wrote:
> > fetchmail via the same user that reads the e-mail.
> 
> I run fetchmail as a daemon. In the /etc/init.d/fetchmail stands:
> # Defaults
> DAEMON=/usr/bin/fetchmail
> CONFFILE=/etc/fetchmailrc
> OPTIONS="-f $CONFFILE"
> PIDFILE=/var/run/fetchmail/.fetchmail.pid
> UIDL=/var/mail/.fetchmail-UIDL-cache
> USER=fetchmail

For mine to work the way I described, fetchmail doesn't run as a Daemon, but as
a cron script called by the user that reads the e-mail. I wouldn't run it as a
Daemon.

Cheers.
-- 
Steve A.
---
Tuesday Jul 19 2005 17:05:02 EDT
---
When a float occurs on the same page as the start of a supertabular
you can expect unexpected results.
-- Documentation of supertabular.sty


signature.asc
Description: Digital signature


Re: exim4 -> local mailboxes

2005-07-19 Thread Csanyi Pal
On Tue, Jul 19, 2005 at 09:39:17AM -0400, Steve ? wrote:
> 
> You shouldn't need any reference to SMTP in your procmailrc. All you have to 
> do
> is simple. Have a procmailrc and a fetchmailrc in your local user directory. 
> Use
> fetchmail via the same user that reads the e-mail.

I run fetchmail as a daemon. In the /etc/init.d/fetchmail stands:
# Defaults
DAEMON=/usr/bin/fetchmail
CONFFILE=/etc/fetchmailrc
OPTIONS="-f $CONFFILE"
PIDFILE=/var/run/fetchmail/.fetchmail.pid
UIDL=/var/mail/.fetchmail-UIDL-cache
USER=fetchmail

 
> Here is the start of my '~/home/.procmailrc' file, remember NO .forward file 
> is
> needed, you should test it without any rules other than the one shown;
> 
> MAILDIR=$HOME/Mail 
> DEFAULT=$MAILDIR/ 
> LOGFILE=$HOME/Mail/procmaillog
> FORMAIL=/usr/bin/formail 
> SENDMAIL=/usr/sbin/sendmail

Now I edit my .procmailrc like abowe. I moved the .forward file.
I restart exim4 and fetchmail daemon, but nothing new happen.

> Fetchmail should automatically hand e-mail off to Exim4. I didn't set up
> anything for that to work. If one has a .prcomailrc in their ~/home then, 
> Exim4
> should automatically hand it off to procmail.
 
> I'm assuming you're wanting a single drop ? This wouldn't work for a 
> multi-user
> setup.

Yes, I'm wanting a single drop.

-- 
Regards,
Paul 
->->-> Debian Junior Project :-) :-) :-) :-) :-) :-) :-) :-) :-)
http://www.ektf.hu/~Csanyi.Pal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-19 Thread Steve Å
On Tue, Jul 19, 2005 at 03:02:35PM +0200 or thereabouts, Csanyi Pal wrote:
> Hello!
> 
> On Tue, Jul 19, 2005 at 08:51:16AM -0400, Steve ? wrote:
> > > 
> > I have almost an identical setup with exim4/procmail/fetchmail on Sarge. I
> > don't use a '.forward' file. I simply have a '.fetchmailrc' in my ~/home 
> > and a
> > '.procmailrc' in my home. I would suggest you try a similar setup.
> 
> Have you in your fetchmailrc this setup: mda 'procmail' ?
> 
> I have this one:
> smtp localhost
> 
> and I want that that fetchmail give the mails to exim4.
> And then, I want that that exim4 forwards the mails to procmail, but I 
> don't know how to do this?

You shouldn't need any reference to SMTP in your procmailrc. All you have to do
is simple. Have a procmailrc and a fetchmailrc in your local user directory. Use
fetchmail via the same user that reads the e-mail.

Here is the start of my '~/home/.procmailrc' file, remember NO .forward file is
needed, you should test it without any rules other than the one shown;

MAILDIR=$HOME/Mail 
DEFAULT=$MAILDIR/ 
LOGFILE=$HOME/Mail/procmaillog
FORMAIL=/usr/bin/formail 
SENDMAIL=/usr/sbin/sendmail

:0:
IN.inbox

Fetchmail should automatically hand e-mail off to Exim4. I didn't set up
anything for that to work. If one has a .prcomailrc in their ~/home then, Exim4
should automatically hand it off to procmail.

I'm assuming you're wanting a single drop ? This wouldn't work for a multi-user
setup.

-- 
Steve A.
---
Tuesday Jul 19 2005 09:25:02 EDT
---
I never met a man I didn't want to fight.
-- Lyle Alzado, professional football lineman


signature.asc
Description: Digital signature


Re: exim4 -> local mailboxes

2005-07-19 Thread Csanyi Pal
Hello!

On Tue, Jul 19, 2005 at 08:51:16AM -0400, Steve ? wrote:
> > 
> I have almost an identical setup with exim4/procmail/fetchmail on Sarge. I
> don't use a '.forward' file. I simply have a '.fetchmailrc' in my ~/home and a
> '.procmailrc' in my home. I would suggest you try a similar setup.

Have you in your fetchmailrc this setup: mda 'procmail' ?

I have this one:
smtp localhost

and I want that that fetchmail give the mails to exim4.
And then, I want that that exim4 forwards the mails to procmail, but I 
don't know how to do this?

-- 
Regards,
Paul 
->->-> Debian Junior Project :-) :-) :-) :-) :-) :-) :-) :-) :-)
http://www.ektf.hu/~Csanyi.Pal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: exim4 -> local mailboxes

2005-07-19 Thread Steve Å
On Mon, Jul 18, 2005 at 12:29:05PM +0200 or thereabouts, Csanyi Pal wrote:
> Hello!
> 
> I use exim4 with smarthost.
> fetchmail get for me the mails from a pop3 mailserver.
> 
> I'm subscribed on a several mailing lists and I want that exim4 
> forwards these mails in the separate mailboxes on my local system.
> 
> I try to use exim4 with procmail; I create the $HOME/.forward file with 
> pipe to procmail:
> "|/usr/bin/procmail -d csanyipal"
> 
> and create the $HOME/.procmailrc with the approppriate lines with 
> mailboxes:
> PATH=/usr/local/bin:/usr/bin:/bin
> MAILDIR=$HOME/Mail  
> DEFAULT=$MAILDIR/mbox   
> 
> LOGFILE=$MAILDIR/procmail-log



> etc. , but I still get mails in the /var/mail/fetchmail.
> 
> Please help me to configure exim4 and procmail for this task. Thanks!

I have almost an identical setup with exim4/procmail/fetchmail on Sarge. I
don't use a '.forward' file. I simply have a '.fetchmailrc' in my ~/home and a
'.procmailrc' in my home. I would suggest you try a similar setup.


-- 
Steve A.
---
Tuesday Jul 19 2005 08:40:02 EDT
---
The English have no respect for their language, and will not teach
their children to speak it.
-- G. B. Shaw


signature.asc
Description: Digital signature