This is a discussion on fetchmail multidrop within the Linux Networking forums, part of the Linux Forums category; Hello, I am trying to set up fetchmail to receive mails from an external domain www.2edalton.nl to my ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I am trying to set up fetchmail to receive mails from an external domain www.2edalton.nl to my linux redhat 7.3 server locally and want the mail be split to the existing users on the linux server. All the mails are received but deliverd to the postmaster. I have tried a lot of combinations for the .fetchmailrc config file. This is what I think should work: poll mail.2edalton.nl localdomains node11500.a2000.nl: user <userid> pass <secret> to * here I have created some users on the node11500 machine and they can receive mail from outside and I can send mail with pine to each other, so that makes me think sendmail is functioning ok. If I execute the fetchmail -a -k -v -v command I see the following: fetchmail: About to rewrite To: fred@2edalton.nl Rewritten version is To: fred@2edalton.nl fetchmail: no local matches, forwarding to postmaster fetchmail: forwarding to localhost The user fred is there and has got mail from outside. Can someone pinpoint me to the right combination of keywords? Thanks and kind regards Fred Stuurman. |
|
|||
|
Fred Stuurman wrote:
> Hello, > I am trying to set up fetchmail to receive mails from an external > domain www.2edalton.nl to my linux redhat 7.3 server locally and want > the mail be split to the existing users on the linux server. > All the mails are received but deliverd to the postmaster. > I have tried a lot of combinations for the .fetchmailrc config file. > This is what I think should work: > > poll mail.2edalton.nl > localdomains node11500.a2000.nl: > user <userid> pass <secret> to * here > change your command line in user <user> pass <secret> to <linux-user> here for multiple users something like: user <user> pass <secret> to <boxuser>=<linux-user> <next-boxuser>=<next-linux-user> etc.. hh |
|
|||
|
Thanks hh,
I tried but no difference, it refuses to match the remote user to the local user. Regards Fred On Mon, 29 Dec 2003 15:06:45 +0100, hhh <hhh@here.home> wrote: >Fred Stuurman wrote: > >> Hello, >> I am trying to set up fetchmail to receive mails from an external >> domain www.2edalton.nl to my linux redhat 7.3 server locally and want >> the mail be split to the existing users on the linux server. >> All the mails are received but deliverd to the postmaster. >> I have tried a lot of combinations for the .fetchmailrc config file. >> This is what I think should work: >> >> poll mail.2edalton.nl >> localdomains node11500.a2000.nl: >> user <userid> pass <secret> to * here >> > >change your command line in >user <user> pass <secret> to <linux-user> here > >for multiple users something like: >user <user> pass <secret> to <boxuser>=<linux-user> ><next-boxuser>=<next-linux-user> etc.. > >hh |
|
|||
|
Fred Stuurman <fc.stuurman@hccnet.nl> wrote in
news:3h11vvchr98m6nusqqv9t11e7jgedh22rp@4ax.com: [Top-posting fixed] > On Mon, 29 Dec 2003 15:06:45 +0100, hhh <hhh@here.home> wrote: > >>Fred Stuurman wrote: <snip> >>> I have tried a lot of combinations for the .fetchmailrc config file. >>> This is what I think should work: >>> >>> poll mail.2edalton.nl >>> localdomains node11500.a2000.nl: >>> user <userid> pass <secret> to * here >> >>change your command line in >>user <user> pass <secret> to <linux-user> here >> >>for multiple users something like: >>user <user> pass <secret> to <boxuser>=<linux-user> >><next-boxuser>=<next-linux-user> etc.. > > I tried but no difference, it refuses to match the remote user to the > local user. See the M1 question in the fetchmail FAQ http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html M1. I've declared local names, but all my multidrop mail is going to root anyway. PS: Please, learn to post: http://www.allmyfaqs.com/faq.pl?How_to_post -- Regards, Carles Arjona nospammer@bigfoot.com ( nospammer IS my real username ). |
|
|||
|
On Tue, 30 Dec 2003 01:23:38 +0000, Carles Arjona
<nospammer@bigfoot.com> wrote: >Fred Stuurman <fc.stuurman@hccnet.nl> wrote in >news:3h11vvchr98m6nusqqv9t11e7jgedh22rp@4ax.com : > >[Top-posting fixed] > >> On Mon, 29 Dec 2003 15:06:45 +0100, hhh <hhh@here.home> wrote: >> >>>Fred Stuurman wrote: ><snip> >>>> I have tried a lot of combinations for the .fetchmailrc config file. >>>> This is what I think should work: >>>> >>>> poll mail.2edalton.nl >>>> localdomains node11500.a2000.nl: >>>> user <userid> pass <secret> to * here >>> >>>change your command line in >>>user <user> pass <secret> to <linux-user> here >>> >>>for multiple users something like: >>>user <user> pass <secret> to <boxuser>=<linux-user> >>><next-boxuser>=<next-linux-user> etc.. >> >> I tried but no difference, it refuses to match the remote user to the >> local user. > >See the M1 question in the fetchmail FAQ >http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html > >M1. I've declared local names, but all my multidrop mail is going to root >anyway. > >PS: Please, learn to post: >http://www.allmyfaqs.com/faq.pl?How_to_post Carles, Thanks for pointing me to the faq, I have missed that one and it solved an error but the final result is the same. Here is the .fetchmailrc which I have now: poll mail.2edalton.nl aka falcon.graficom.com localhost localdomains node11500.a2000.nl localhost: no dns user <user> pass <password> to info=info fred=fred rene=rene pieter=pieter here Here are the messages from fetchmail: fetchmail: reading message 1 of 26 (1117 header octets) fetchmail: About to rewrite Return-path: <geukema_logtens@hotmail.com> Rewritten version is Return-path: <geukema_logtens@hotmail.com> fetchmail: analyzing Received line: Received: from [65.54.245.137] (helo=hotmail.com) by falcon.graficom.com with esmtp (Exim 4.14) id 1AWb6b-0000dq-JM for info@2edalton.nl; Wed, 17 Dec 2003 13:48:45 +0100 fetchmail: line accepted, falcon.graficom.com is an alias of the mailserver fetchmail: found Received address `info@2edalton.nl' fetchmail: About to rewrite From: "Arjen/Jolanda Geukema/Logtens" <geukema_logtens@hotmail.com> Rewritten version is From: "Arjen/Jolanda Geukema/Logtens" <geukema_logtens@hotmail.com> fetchmail: About to rewrite To: info@2edalton.nl Rewritten version is To: info@2edalton.nl fetchmail: About to rewrite Bcc: Rewritten version is Bcc: fetchmail: no local matches, forwarding to postmaster Kind regards Fred. |
|
|||
|
Fred Stuurman wrote:
<<skip>> > Here is the .fetchmailrc which I have now: > poll mail.2edalton.nl > aka falcon.graficom.com localhost > localdomains node11500.a2000.nl localhost: > no dns > user <user> pass <password> > to info=info > fred=fred > rene=rene > pieter=pieter here > <<skip>> > fetchmail: found Received address `info@2edalton.nl' > fetchmail: About to rewrite From: "Arjen/Jolanda Geukema/Logtens" > <geukema_logtens@hotmail.com> > Rewritten version is From: "Arjen/Jolanda Geukema/Logtens" > <geukema_logtens@hotmail.com> This mail was send to info@2edalton.nl. IMO after 'aka' there should be '2edalton.nl; thats in fact the domain name of your mail address. If more are used add them too. Skip all entries you have now after 'aka'. The line with localdomains makes no sense to me. Do not know the meaning. Try without this line. I also presume that info, fred, rene and pieter are names of users on your linux server. hh |
|
|||
|
hhh wrote:
> Fred Stuurman wrote: > <<skip>> > >>Here is the .fetchmailrc which I have now: >>poll mail.2edalton.nl >>aka falcon.graficom.com localhost >>localdomains node11500.a2000.nl localhost: >>no dns >>user <user> pass <password> >>to info=info >>fred=fred >>rene=rene >>pieter=pieter here >> > > > <<skip>> > >>fetchmail: found Received address `info@2edalton.nl' >>fetchmail: About to rewrite From: "Arjen/Jolanda Geukema/Logtens" >><geukema_logtens@hotmail.com> >>Rewritten version is From: "Arjen/Jolanda Geukema/Logtens" >><geukema_logtens@hotmail.com> > > > This mail was send to info@2edalton.nl. IMO after 'aka' there should be > '2edalton.nl; thats in fact the domain name of your mail address. If more are > used add them too. Skip all entries you have now after 'aka'. > The line with localdomains makes no sense to me. Do not know the meaning. Try > without this line. > I also presume that info, fred, rene and pieter are names of users on your > linux server. > > hh > HH, yes that did the trick, maybe you can explain to me why AKA should be used instead of localdomains keyword. in the manual it says: AKA = Specify alternate DNS names of mailserver I thought that localdomains was telling fetchmail which domains he should treat as local. 2edalton.nl is the remote host so I put it after localdomains. Thanks and kind regards Fred Stuurman. |
|
|||
|
Fred Stuurman <fc.stuurman@hccnet.nl> wrote in
news:3ffa83b0_4@news3.prserv.net: > hhh wrote: <snip> >> This mail was send to info@2edalton.nl. IMO after 'aka' there >> should be '2edalton.nl; thats in fact the domain name of your <snip> > yes that did the trick, maybe you can explain to me why AKA should > be used instead of localdomains keyword. > in the manual it says: > AKA = Specify alternate DNS names of mailserver As far as I know, 'localdomains mydomain.com' allows to consider any *.mydomain.com host as local. 'aka' allows to declare a list of individual DNS aliases for a server: 'aka host1.mydomain.com host2.mydomain.com' . More info: man fetchmail > I thought that localdomains was telling fetchmail which domains he > should treat as local. 2edalton.nl is the remote host so I put it > after localdomains. Please, consider reading again your previous postings. None of your previous .fetchmailrc files posted before hhh's <3FF2BC74.29A3C0A1@here.home> contained neither 'localdomains 2edalton.nl' nor 'aka 2edalton.nl' Your might try yourself if 'localdomains 2edalton.nl' does work also for you. -- Regards, Carles Arjona nospammer@bigfoot.com ( nospammer IS my real username ) |
|
|||
|
Fred Stuurman wrote:
> > <<skip>> > HH, > yes that did the trick, maybe you can explain to me why AKA should be > used instead of localdomains keyword. > in the manual it says: > AKA = Specify alternate DNS names of mailserver Out mail is send to your mail account (f.e. info@2edalton.nl). The (pop) mailserver is named in the DNS at the Internet as '2edalton.nl'. That is the part after the @ sign. For example: After a take over of an ISP by another ISP the mail systems can be integrated, which means that at that time al accounts can receive mail with different mail domains (f.e. as has been happend with planet.nl and wxs.nl). Accounts of the former wxs.nl ISP now receive mail on both <account>@planet.nl and <account>@wxs.nl. All mail to this accoutn will be stored in the same pop box. In this case both domains are listed after aka (planet.nl and wxs.nl) and all mail fetched by fetchmail (no matter the domain) is send to the local user <account>. Thus aka is a list of all names a mail server is named in the DNS. hhh |