From: Ivan I. <nos...@ml...> - 2007-02-21 13:14:39
|
My ISP forwards all mail for my domain at one account. I than use fetchmail to download all mail to my box, MailScanner to scan for spam and viruses (for winblows users) and sendmail distribute it to users on local network. Hire is my .fetchmailrc: # Configuration created Mon Dec 1 12:45:17 2003 by fetchmailconf set logfile "/var/log/fetchMailByIva" set postmaster "iva" # set nobouncemail set no spambounce set properties "" poll pop3.ourisp.net with proto POP3: localdomains ourdomain.org user 'ouruseratisp' there with password 'pass' is * here It's a low traffic on dial-up connection. Fedora Core 1 (about to be replaced with Debian etch). Now to the problem. Recently we started to receive a lot of (large) mail that is for the users that do not exist (do not have accounts) on local mail server. Since this takes a lot of dial-up time, I was wondering if there is a possibility for fetchmail to delete such mail. Hire is a log of (small) unwanted mail: ----------------------------------------------------------------------- fetchmail: SMTP< 250 2.0.0 l1J7MJS8002870 Message accepted for delivery fetchmail: flushed fetchmail: POP3> DELE 1 fetchmail: POP3< +OK fetchmail: POP3> TOP 2 99999999 fetchmail: POP3< +OK fetchmail: reading message something.somethingelse.org:2 of 2 (1428 \ octets) fetchmail: SMTP> MAIL FROM:<som...@so...> BODY=7BIT SIZE=1428 fetchmail: SMTP< 250 2.1.0 <som...@so...>... Sender ok fetchmail: SMTP> RCPT TO:<Non...@ou...> fetchmail: SMTP< 550 5.1.1 <Non...@ou...>... User \ unknown fetchmail: SMTP error: 550 5.1.1 <Non...@ou...>...\ User unknown fetchmail: SMTP listener doesn't like recipient address \ `Non...@ou...' fetchmail: SMTP< 220 something.somethingelse.org ESMTP Sendmail \ 8.12.10/8.12.10; Mon, 19 Feb 2007 08:22:48 +0100 fetchmail: SMTP> HELO localhost fetchmail: SMTP< 250 something.somethingelse.org Hello \ something.somethingelse.org [127.0.0.1], pleased to meet you fetchmail: SMTP> MAIL \ FROM:<FET...@so...> fetchmail: SMTP< 250 2.1.0 \ <FET...@so...>... Sender ok fetchmail: SMTP> RCPT TO:<som...@so...> fetchmail: SMTP< 250 2.1.5 <som...@so...>... Recipient ok fetchmail: SMTP> DATA fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself fetchmail: SMTP: (bounce-message body) fetchmail: SMTP>. (EOM) fetchmail: SMTP< 250 2.0.0 l1J7MmS8002892 Message accepted for delivery fetchmail: SMTP> QUIT fetchmail: SMTP< 221 2.0.0 something.somethingelse.org closing \ connection fetchmail: SMTP> RCPT TO:<iva@localhost> fetchmail: SMTP< 250 2.1.5 <iva@localhost>... Recipient ok fetchmail: no address matches; forwarding to iva. fetchmail: SMTP> DATA fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself #*fetchmail: SMTP>. (EOM) fetchmail: SMTP< 250 2.0.0 l1J7MJS9002870 Message accepted for delivery fetchmail: flushed fetchmail: POP3> DELE 2 fetchmail: POP3< +OK fetchmail: POP3> QUIT fetchmail: POP3< +OK fetchmail: 6.2.0 querying pop3.infosky.net (protocol POP3) at Mon 19 Feb 2007 08:22:49 AM CET: poll completed fetchmail: SMTP> QUIT fetchmail: SMTP< 221 2.0.0 something.somethingelse.org closing connection fetchmail: normal termination, status 0 ----------------------------------------------------------------------- As you can see mail was delivered to iva@localhost (me) as it is set in ~/.fetchmailrc. I can set postmaster to empty string, but mail still gets downloaded (which is what I am trying to avoid), it only gets discarded. -- ___ ____ /__/ / \ ** Registrovani korisnik Linuksa #291606 ** / / \/ /\ \ ** Registered Linux user #291606 ** /__/\____/--\__\ ** http://counter.li.org/ ** |