It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.
Verwijderd
man procmail
of anders www.nedlinux.nl bij documentatie
of www.linux-nl.cx en dan documentatie
succes
Ik heb net gezien dat .forward wel werkt, maar niet optimaal. Wat voor regel moet ik daar inzetten zodat ie het naar sendmail stuurt, en het domein er afhaalt?
It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| [root@guus mail]# fetchmail -v -v -a -k fetchmail: 5.9.0 querying mail.mijndomein.nl (protocol POP3) at Tue 06 Nov 2001 11:58:53 PM CET fetchmail: POP3< +OK Qpopper (version 4.0.3) at mailhost5.ladot.com starting. fetchmail: POP3> USER fhp06409-00 fetchmail: POP3< +OK Password required for fhp06409-00. fetchmail: POP3> PASS * fetchmail: POP3< +OK fhp06409-00 has 1 visible message (0 hidden) in 1559 octets. fetchmail: selecting or re-polling default folder fetchmail: POP3> STAT fetchmail: POP3< +OK 1 1559 1 message for fhp06409-00 at mail.mijndomein.nl (1559 octets). fetchmail: POP3> LIST fetchmail: POP3< +OK 1 visible messages (1559 octets) fetchmail: POP3< 1 1559 fetchmail: POP3< . fetchmail: POP3> RETR 1 fetchmail: POP3< +OK 1559 octets reading message 1 of 1 (1559 octets) About to rewrite Return-Path: <een@ander.emailadres> Rewritten version is Return-Path: <een@ander.emailadres> About to rewrite From: "Mij Zelf" <een@ander.emailadres> Rewritten version is From: "Mij Zelf" <een@ander.emailadres> About to rewrite To: <admin@mijndomein.nl> Rewritten version is To: <admin@mijndomein.nl> fetchmail: SMTP< 220 guus.DUCK ESMTP Sendmail 8.11.6/8.11.6; Tue, 6 Nov 2001 23:58:57 +0100 fetchmail: SMTP> EHLO localhost fetchmail: SMTP< 250-guus.DUCK Hello localhost.localdomain [127.0.0.1], pleased to meet you fetchmail: SMTP< 250-ENHANCEDSTATUSCODES fetchmail: SMTP< 250-8BITMIME fetchmail: SMTP< 250-SIZE fetchmail: SMTP< 250-DSN fetchmail: SMTP< 250-ONEX fetchmail: SMTP< 250-ETRN fetchmail: SMTP< 250-XUSR fetchmail: SMTP< 250 HELP fetchmail: forwarding to localhost fetchmail: SMTP> MAIL FROM:<een@ander.emailadres> SIZE=1559 fetchmail: SMTP< 250 2.1.0 <een@ander.emailadres>... Sender ok fetchmail: SMTP> RCPT TO:<root@localhost> fetchmail: SMTP< 250 2.1.5 <root@localhost>... Recipient ok fetchmail: SMTP> DATA fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself #**************************fetchmail: SMTP>. (EOM) fetchmail: SMTP< 250 2.0.0 fA6MwvK02206 Message accepted for delivery not flushed fetchmail: POP3> QUIT fetchmail: POP3< +OK Pop server at mailhost5.ladot.com signing off. fetchmail: not swapping UID lists, no UIDs seen this query fetchmail: SMTP> QUIT fetchmail: SMTP< 221 2.0.0 guus.DUCK closing connection fetchmail: Deleting fetchids file. fetchmail: normal termination, status 0 fetchmail: Deleting fetchids file. |
Ik denk zelf dat de fout bij het laaste stukje zit, waar de RCPT TP: root@localhost wordt, dit moet worden admin@localhost. Maar hoe doe ik dit, en waar zet ik dit in?
Dit doet ie trouwens bij elke gebruiker, en de gebruiker admin bestaat.
En als ik in mijn mailtje kijk zie ik:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| From een@ander.emailadres Wed Nov 7 00:05:04 2001
Return-Path: <een@ander.emailadres>
Received: from localhost (localhost.localdomain [127.0.0.1])
by guus.DUCK (8.11.6/8.11.6) with ESMTP id fA6N54K02245
for <root@localhost>; Wed, 7 Nov 2001 00:05:04 +0100
Received: from mail.mijndomein.nl [212.72.51.222]
by localhost with POP3 (fetchmail-5.9.0)
for root@localhost (single-drop); Wed, 07 Nov 2001 00:05:04 +0100 (CET)
Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13])
by mailhost5.ladot.com (8.11.4/8.9.3) with ESMTP id fA6Msfo29044
for <admin@mijndomein.nl>; Tue, 6 Nov 2001 23:54:41 +0100 (CET)
Received: from bambi by smtp.hccnet.nl
via huppelepup.dsl.hccnet.nl [xx.xx.xx.xx] with SMTP for <admin@domein.nl>
id XAA22568 (8.8.8/1.13); Tue, 6 Nov 2001 23:56:42 +0100 (MET)
From: "Mij Zelf" <een@ander.emailadres>
To: <admin@mijndomein.nl>
Subject: Test
Date: Tue, 6 Nov 2001 23:59:43 +0100
Message-ID: <000001c16716$b9a7fc20$02d7a8c0@bambi>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0001_01C1671F.1B6DEAC0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-UIDL: [$j!!_o?"!'8M!!EWI!!
Status: RO
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C1671F.1B6DEAC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
------=_NextPart_000_0001_01C1671F.1B6DEAC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0001_01C1671F.1B6DEAC0-- |
It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.
Verwijderd
Oftewel: mail opgehaald met fetchmail komt terecht in het postbakje van de user die fetchmail heeft gerund.
Correct me if I'm wrong..
Das met verschillende POP3 boxen.Op woensdag 07 november 2001 00:47 schreef edwinv het volgende:
Volgens mij was het zoiets dat de user naar wie de mail moet gestuurd worden (admin@localhost), zelf een fetchmail-configfile in z'n homedir moet hebben en zelf fetchmail moet runnen.
Oftewel: mail opgehaald met fetchmail komt terecht in het postbakje van de user die fetchmail heeft gerund.
Correct me if I'm wrong..
You can't have everything. Where would you put it?
Verwijderd
1
2
3
4
5
6
7
8
9
| poll pop.mijndomein.nl with proto POP3 user "mijnmailaccount", with password "mijnpassword" is gebruikersnaam here Uitleg : pop.mijndomein.nl = POP3-server mijnmailaccount = accountnaam (tussen "" zetten) mijnpassword = wachtwoord (tussen "" zetten) gebruikersnaam = lokale gebruiker (geen "" gebruiken) |
Volgens mij moet 'ie het zo gewoon doen. Hiermee bepaal je welke pop3 account in welke lokale mailbox terecht moet komen. Je kunt de bovenstaande regel net zo vaak herhalen tot dat je alle mailaccounts leegtrekt en de optie
1
| set daemon 300 |
zorgt ervoor dat fetchmail als daemon op de achtergrond blijft draaien en elke 5 minuten je mail controleert.
Korte suggestie voor de volgende keer :
1
| man fetchmail |
says it all
1
2
| poll mail.mijndomein.nl with proto POP3 user "mijnmailaccount", with password "mijnpassword" is root here |
Ik heb ipv root ook wel eens mail ingevult, en dan komt alles in de mailbox van de mail account.
Ik las op een configuratiepagina van sendmail dat fetchmail het automatisch doorstuurt naar sendmail die op de achtergrond draait. Misschien dat de configuratie van sendmail anders moet, maar waar zou ik dan naar toe moeten.
Ik ben er al best veel meebezig geweest, maar ik kom toch telkens op dit probleem. En ik ga over 1 maand naar australie en ik wil het toch voor die tijd klaar hebben, als dit niet lukt wordt het toch windows
It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.
Verwijderd
Dat klopt inderdaad, fetchmail dropt de mail af bij de MTA (mail transport agent) en die zorgt er voor dat de mail in de bijbehorende mailspool-dirs terecht komt (/var/spool/mail/user op mijn eigen systeem). Wil je de mail die fetchmail ophaalt nu laten sorteren naar user moet sendmail dat dus regelen. Hier staat dat redelijk beschreven volgens mij (zelfde link als hierboven).Ik las op een configuratiepagina van sendmail dat fetchmail het automatisch doorstuurt naar sendmail die op de achtergrond draait. Misschien dat de configuratie van sendmail anders moet, maar waar zou ik dan naar toe moeten.
Een andere optie is het installeren van procmail, een filter dat je vanuit sendmail aan kan roepen en dat dan zorgt dat de mail naar aanleiding van een kenmerk (bijvoorbeeld to: veld, maar ook andere mailheaders) op de goede plek komt. Een algemene beschrijving vind je hier: http://www.ota.be/linux/workshops/19990417/fetchmail_procmail.pdf
Nog wat meer informatie: http://www.northernjourney.com/opensource/newbies/newb024.html
/edit: url toegevoegd
Hope this helps
Verwijderd
Het is alleen een echte hetze als het uit Hetzerath komt, anders is het gewoon sprankelende ophef.
1
2
3
4
5
| MAILDIR=/var/spool/mail :0: * ^TOadmin@mijndomein.nl admin |
Maar het wordt netjes gesorteerd op de naam, maar de gebruiker admin krijgt geen bericht dat hij nieuwe mail heeft, moeten zijn mailtje toevallig in een andere directory komen te staan?
It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.
Als ik een mailtje stuurt naar iemand@mijndomein.nl en een CCtje naar iemandanders@mijndomein.nl. Komt het mailtje alleen aan bij iemand en niet bij iemand anders.
Is er misschien een optie zodat procmail het mailtje bewaart, alle regels afloopt en'm dan verwijderd?
It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.