On Mon, Jun 20, 2005 at 12:42:01PM +0200, Marco Scholten wrote: > I am trying to fetch mail from out ISP and divide it on our lan to the > correct users. Is xs4all.nl the ISP you are talking about? That's in you email address. I'm a customer there too. If that is true you may want to post this question in the xs4all.general newsgroup if it doesn't work out in this mailing list. > We have only 1 mailbox with several aliases. > > mail to e.fox@ourdomain.nl should go to els > mail to j.jansen@ourdomain.nl should go to jan > mail to th.jansen@ourdomain.nl should go to theo > mail to info@domain.nl should go to els and jan Do these users truly exist on your system? I don't know what is the best way to check that, but you can try looking in /etc/passwd as root. > After several days of reading man pages and googling i still haven't been > succesfull. > > what i have done so far > -installed fetchmail > -installed exim4 and configured it to send using smarthost and receive > using fetchmail > -configured outlook express on client machines. That should be able to work, though the Outlook Express part seems dodgy. ;-) > .fetchmailrc: > > set postmaster "jan" I think this will work, but you could try what I have: set postmaster "postmaster" and then in /etc/aliases: postmaster: jan or maybe: postmaster: root root: jan > set no bouncemail > set no spambounce > set properties "" > poll smtp.ourisp.nl with proto POP3 interval 300 > aka ourisp.nl localdomains ourdomain.nl > user 'jan' there with password 'secret' to j.jansen=jan e.fox=els > th.jansen=theo here options keep I get the feeling you are putting too much into fetchmail that exim should really do. But I don't have an immediate solution. > All messages now go to the postmaster, when i send a mail to > th.jansen@ourdomain.nl then fetchmail gives an error 'unknown user'. > When i send a mail to theo using 'echo "test" | mail -s "testmsg" theo' > then it is received ok on the client machine. > > i have tried running fetchmail as root and as user, results are the same. > > I do not understand the relation between the various programs involved in > this very well. > Can anyone please point me in the right direction? I haven't used fetchmail in multidrop mode. But there is quite extensive info in the fetchmail manual: man fetchmail Then search for: THE USE AND ABUSE OF MULTIDROP MAILBOXES HTH, -- Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] Public GnuPG key: keyserver.net ID 0x1735C5C2 "Let your advance worrying become advance thinking and planning." - Winston Churchill
Attachment:
signature.asc
Description: Digital signature