LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Fetchmail Multi-drop (https://www.linuxquestions.org/questions/linux-server-73/fetchmail-multi-drop-614235/)

Proxx 01-17-2008 06:03 AM

Fetchmail Multi-drop
 
i have a problem receiving mails with fetchmail (milti-drop)
there are 100 local mail boxes on my system
and every mail goes to administrator@localhost. is there a possibility to change the @localhost to @my.domain ?
and that every mail would go to the TO: address instead of admin..@localhost

i have tryed to use:
fetchmail -m -e -Q my.domain -f '/home/marco/.fetchmailrc'

but if i do so the fetchmail log tells me:
sh: -c requires an argument


Code:

fetchmail: 6.3.8 querying spa**op.***.nl (protocol POP3) at do 17 jan 2008 12:48:08 CET: poll started
Trying to connect to 194.***.**.**/666...connected.
fetchmail: POP3< +OK xs-pop3d (1.61 16-Apr-2007) at mailpop1*.***.nl starting
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Kappa 10-4
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< LAST
fetchmail: POP3< RESP-CODES
fetchmail: POP3< .
fetchmail: spampop.***.nl: opportunistic upgrade to TLS failed, trying to continue.
fetchmail: POP3> USER *****
fetchmail: POP3< +OK Password required for ***.
fetchmail: POP3> PASS *
fetchmail: POP3< +OK 1427 messages for ***.de**n.nl
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1427 5124880
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
1427 messages for ***** at sp***op.***.nl (5124880 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1977
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message ***@***.nl:1 of 1427 (1977 octets)
sh: -c requires an argument
fetchmail: writing RFC822 msgblk.headers
fetchmail: POP3> QUIT
fetchmail: POP3< This is a multi-part message in MIME format.
fetchmail: MDA error while fetching from ***@sp**op.***.nl
fetchmail: 6.3.8 querying sp***op.***.nl (protocol POP3) at do 17 jan 2008 12:48:09 CET: poll completed
fetchmail: Query status=6 (IOERR)
fetchmail: normal termination, status


Proxx 01-17-2008 07:50 AM

i was to quick.. i found the awnser on the forum...

Code:

Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 ****.com ESMTP Postfix (Ubuntu)
fetchmail: SMTP> HELO LiSe.***
fetchmail: SMTP< 250 ***ab.com
fetchmail: SMTP> MAIL FROM:<>
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<administrator>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: SMTP: (bounce-message body)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as D2475258280
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: SMTP> RCPT TO:<administrator@localhost>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: no address matches; forwarding to administrator.
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>

im at work so it has to be quick...

if somebody is interested reply on this than i will post the solution later this day!

controloye 03-30-2009 05:26 AM

fetchmail multidrop
 
hi dear,

I am looking for same solution. would you please tell me the code to fix this problem.

AFC.

Quote:

Originally Posted by Proxx (Post 3025776)
i was to quick.. i found the awnser on the forum...

Code:

Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 ****.com ESMTP Postfix (Ubuntu)
fetchmail: SMTP> HELO LiSe.***
fetchmail: SMTP< 250 ***ab.com
fetchmail: SMTP> MAIL FROM:<>
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<administrator>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: SMTP: (bounce-message body)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as D2475258280
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: SMTP> RCPT TO:<administrator@localhost>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: no address matches; forwarding to administrator.
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>

im at work so it has to be quick...

if somebody is interested reply on this than i will post the solution later this day!



All times are GMT -5. The time now is 05:02 AM.